Solved

Having trouble with Add To Cart Metric

  • 17 January 2023
  • 3 replies
  • 147 views

Badge +1

I have watched multiple Youtube videos and looked at the article showing how to set up the Add To Cart metric, but it still won’t pop up in m Metrics tab. I first tried putting the snippet in my theme.liquid file because my Add To Cart button uses the ID notation, but that didn’t work. Then I saw a video where I noticed I needed to use the first snippet since my Add To Cart button doesn’t redirect. So, I followed what the video showed and I put it in a custom liquid on my default product page like the article said. The Add To Cart metric still hasn’t popped up for me to use. I don’t know what else to do. Any help is greatly appreciated. My website is EmbryOutdoors.com if that helps.

 

 

icon

Best answer by David To 19 January 2023, 19:49

View original

3 replies

Userlevel 7
Badge +60

Hello @EmbryOutdoors,

Welcome to the Klaviyo Community!

Since from your screenshot it seems like the theme you’re using does supply a custom liquid block, instead of installing the first add to cart snippet option in your theme.liquid, I would suggest installing it in a custom liquid block as mentioned in the Where should I paste my snippet? section of the How to create an "Added to Cart" event for Shopify Help Center article.

When it comes to using both the second and third add to cart snippet options, keep in mind you’ll need to adjust those snippets to align with your add to cart button’s ID or class notions respectively for them to function correctly. The first option on the other hand would not need any adjustments.

I would also call out that a common misunderstanding users have is that they’re under the assumption that simply installing those snippets will automatically trigger an add to cart event/metric to appear in their Klaviyo account. As it’s mentioned in the Before you begin section, the add to cart event will only track and trigger for users who are previously cookied. This means that to verify if you’ve installed the snippet correctly, you’ll want to cookie your browser and attempt to manually trigger the event. Only if you’ve successfully installed the code and testing it will you see the event/metric appear in your account. 

You can test your add to cart tracking by taking the steps mentioned in our Troubleshooting Added to Cart tracking article:

To test that your Added to Cart tracking is set up properly, follow these steps:

  1. Navigate to your website
  2. On your homepage, add the following to the end of the URL, replacing example@gmail.com with your email address:
    ?utm_email=example@gmail.com
    After modifying the email address used in the example, add it to the end of your site's URL and visit your site in any browser.
  3. Reload the page
  4. Navigate to a product page on your site with a product that is in stock
  5. Click the “Add to Cart” button on the page
  6. Search in Klaviyo for the email address you used in step 2
    The searchbar can be found in the top right of Klaviyo where you can search for profiles by email address.

You should see that a Klaviyo profile has been created for you (if one didn't exist already) and that an Added to Cart event has been tracked on your activity feed.

To see a feed of all Added to Cart metrics over time:

  1. Navigate to the Analytics tab of your account 
  2. Click into Metrics
  3. Filter by Added to Cart to view tracked data in an activity feed, activity map, charts, best people, and cohort reports
    At the top of the Metrics page there is a searchbar where you can search for different metric by name.

Once you’ve reviewed the troubleshooting scenarios below and made changes, you should test your tracking again to make sure it’s working correctly. 

There’s also a number of posts on this topic in our Community that I would encourage you looking into. I’ve included some below that other members have found helpful:

I hope this helps!

David

Badge +1

Hey David, thank you for the reply. I did do the custom liquid and tested the store by doing exactly what that article said, and still no luck. Really have no idea what I’m doing wrong. 

Userlevel 7
Badge +60

Hey @EmbryOutdoors,

If you’ve tried and tested all three of the codes properly and none of them work, this suggests there may be something more going on that could potentially be preventing this code from firing. 

I would recommend working alongside a developer to review your site code and to provide more hands on assistance to installing the add to cart code. We also offer a wonderful Klaviyo Partner program that excels at development and site code assistance which you can collaborate with from our Klaviyo Partner Directory.

David 

Reply