At first glance, nothing stands out to me on setup. The Added to Cart event only triggers for cookied users. Users are typically cookied if they subscribe through a Klaviyo signup form or click through a Klaviyo email to your website. Are you cookied in your account when you go to test this? If not or you’re unsure, you can follow these instructions to cookie yourself. Once you see that there was a viewed product event associated with your email address you’ll know you’re cookied and you can go through the motions of testing out the added to cart event to see if you can trigger that.
At first glance, nothing stands out to me on setup. The Added to Cart event only triggers for cookied users. Users are typically cookied if they subscribe through a Klaviyo signup form or click through a Klaviyo email to your website. Are you cookied in your account when you go to test this? If not or you’re unsure, you can follow these instructions to cookie yourself. Once you see that there was a viewed product event associated with your email address you’ll know you’re cookied and you can go through the motions of testing out the added to cart event to see if you can trigger that.
Thanks for writing into this thread with your question! I’d be happy to help with the issue you are running into.
However, I am trying to understand what you may need assistance with. It seems like you added the code snippets to the product.liquid section. Were you looking to create an abandoned cart flow?
The abandoned cart flow uses the added to cart metric from your site to be used as a trigger. In our doc, Guide to Creating an "Added to Cart" Event for Shopify it fleshes out how to add this code onto your liquid file so that you can properly setup the flow.