Hi @Kimmy42!
Is there a reason you want the Klaviyo-tracked Added to Cart metric firing? I believe that would require some development to get it working again.
Klaviyo’s “How to enable onsite tracking for Shopify” guide mentions this: “Added to Cart, Viewed Collection, and Submitted Search events are tracked via a Shopify pixel.”
Without knowing any additional information, I would recommend relying on the Shopify-tracked Added to Cart metric (which you said “works perfectly”
) and updating any related flows to those, rather than trying to keep the redundant Klaviyo-tracked Added to Cart alive, which would likely require some development to get the Klaviyo app embed working again.
Let me know if you have any questions here.
Cheers,
Paul
Hi @Kimmy42 !
I agree with everything @Paul808 has said above! It is recommended that you use the new Shopify Added to Cart moving forward.
There are many reasons to migrate, including:
- The new Shopify-branded event syncs server-side, meaning site visitors are more likely to be identified and track events.
- The new event includes more top-level metadata than the snippet event, including variant info, SKUs, item quantity, and links to the variant added to the cart.
- The new event will be actively maintained by Klaviyo going forward, with future enhancements added directly.
- Enabling the new event does not require a code snippet.
If you currently have flows that are triggered by the old ‘Added to Cart’ event, I would suggest cloning these flows and selecting the Shopify ‘Added to Cart’ event as the new trigger! Let me know if you have any additional questions.
@Paul808 @emma.owens
Thanks again for the helpful insights!
I'm still curious—do you happen to know what exactly causes the Klaviyo “Added to Cart” event to stop working after a Shopify theme update? I'm trying to understand if something in the new theme typically disables or removes the Klaviyo snippet or event trigger.
If we did want to restore the Klaviyo-tracked event, even temporarily, what specific steps or files should we check or update?
Appreciate your guidance!
Best regards,
Kim
Hi @Kimmy42,
I believe the theme update just wipes out the code snippet that was installed on the previous theme. If you have that snippet, you may just be able to reinstall it.
I no longer see any documentation on the code snippet and how to install it, but you may be able to reverse-engineer the code snippet install by following the Remove your Added to Cart snippet section of the How to migrate to our automatic Added to Cart event for Shopify guide. (FWIW, as the title states, that article could also help guide you to update your flows, etc. to reference the Shopify-tracked event.)
There are some screenshots in there that may really help. If you need the exact code snippet, you may be able to ask Klaviyo Support to provide it.
Note: That article also states this:
Are you using your existing Added to Cart event in a Klaviyo product feed? This means that you selected Products a customer has added to cart in the feed builder.
If so, you should not remove your snippet. This is because we currently recommend using the old event with product feeds. You can use the new event for flows, segments, etc.
Since it still has some benefits, Klaviyo may indeed be able to provide some more info on how to reinstall the old snippet.
Let us know how it goes!
Cheers,
Paul
@Paul808 Thanks for the heads-up! It’s all updated now. Appreciate your help!