Hi! I am trying to add the “add to cart” snippet and have followed the instructions:
However, I am using Shopify Impulse theme and every Add to Cart button has it’s own button ID that includes the product number. Should I add a line for every product?
I tried both methods in the hyperlink above. I also tried:
<script type="text/javascript">
var _learnq = _learnq || l];
document.querySelector('add-to-cart').addEventListener('click',function (){
_learnq.push(_'track', 'Added to Cart', item]);
});
</script>
None of these work. When I try to add a new abandoned cart flow using “added to cart”, Klaviyo does not recognize that the snippet is installed.
Thank you!