Solved

Having trouble getting the Add to cart metric to work

  • 6 August 2021
  • 1 reply
  • 78 views

Badge

Hi,

 

I’ve followed both the View Product Tracking and the tutorial for Create a Custom "Added to Cart" Event for Shopify as I want to run a Abandoned Cart email. 

 

However even though I’ve added the code and followed the tutorial it’s still not working, any advice?

 

Thanks!

 

 

My code on store (id);

 

My code on the product.liquid page;

 

 

icon

Best answer by stephen.trumble 6 August 2021, 20:51

View original

1 reply

Userlevel 4
Badge +4

Hey @HeartCure ,

Happy to help you with this! Thank you for reaching out to the Klaviyo Community for help!

It looks as though your Add to Cart Button is using a Class notation. Because your button is using Class notation you will need to use an alternative Add to Cart code snippet. This alternate code snippet will allow your button to communicate with your Add to Cart tracking.

@david.to  shared some very useful post and Help Center articles on the following Community post that you can read through for additional information!

Thank you so much for being part of the Klaviyo Community! 

Reply