Solved

"Added to Cart" isn't showing in analytics

  • 13 July 2021
  • 3 replies
  • 492 views

Badge +2

 

Hey there! 

 

So like many others, I also have the problem that "Added to Cart" is not showing up in my Analytics. 

 

Our Shopify site’s add to cart button code is here:

The code that I have inserted into product.liquid is here:

 

The code that. I have also inserted into product.liquid is here:

 

As you can see, there is no “added to cart” metric.  The “viewed product” metric is there, but not working. 

 

What do I have to do? 

icon

Best answer by David To 13 July 2021, 20:48

View original

3 replies

Badge +2

Here is another screenshot of my metrics page: 

 

 

Userlevel 7
Badge +60

Hello @MelvynWittwer,

Thanks for sharing your question with the Klaviyo Community!

Since it actually looks like your button is also using a Class notation, I would recommend, instead of using the ID installation method, to be using the alternate installation method as detailed in the Alternate Code Snippet for "Add to Cart" Button with Class Notation subsection of the How to Create a Custom "Added to Cart" Event for Shopify article. In fact, it appears that the Class used for your button within your Shopify theme is the exact example highlighted in this alternate installation method in the help article. 

I would also suggest taking a look at some similar Community posts on this same topic which can be found below:

Thanks for being a member of the Klaviyo Community! Have a great day!

David

Badge +2

Is working! Thanks for solving my problem!!!

Reply