Skip to main content
Contributor I
July 13, 2021
Solved

"Added to Cart" isn't showing in analytics

  • July 13, 2021
  • 3 replies
  • 709 views

 

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? 

    This topic has been closed for replies.
    Best answer by David To

    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

    3 replies

    Contributor I
    July 13, 2021

    Here is another screenshot of my metrics page: 

     

     

    David To
    Klaviyo Employee
    David ToAnswer
    Klaviyo Employee
    July 13, 2021

    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

    Contributor I
    July 20, 2021

    Is working! Thanks for solving my problem!!!