Skip to main content

Hi, 

I would like to setup “Viewed Product” tracking with Google Tag Manager. I have already implemented the “global website tag” which I can also see in my activity feed. Now, I just don’t find the code snippet to fire when a user visits a product page. 

Where can I find that code snippet?

I will need the same for “checkout started”, “placed order” and “ordered product”. So if someone could send me the links or the code snippets, I will be very grateful for that.

I have to use Google Tag Manager since we are not running on Shopify or any other supported platform.

Many thanks in advance!

Hi @chris1707

 

Welcome to the Community! Happy to share here!

 

Yes when using Google Tag Manager, the snippets you need aren’t in the normal help center documentation because you’re not using an eccomerce integration for this. You can access the necessary snippets to add Active on Site and Viewed Product tracking, Checkout started etc in our documentation  this documentation in our developer portal. You may need to make some adjustments to the variables given in this example if they do not work as expected out of the box, but the base structure should be the same!

 

Thanks for participating in the Community!

-Taylor


Hi! These two guides below are up-to-date on how to accomplish this:

https://developers.klaviyo.com/en/docs/guide_to_integrating_a_platform_without_a_pre_built_klaviyo_integration

https://medium.com/klaviyo-developers/solution-recipe-18-send-google-ecommerce-events-to-klaviyo-via-google-tag-manager-eb03040e1814


Reply