Skip to main content
Solved

How to set "Viewed Product" with Google Tag Manager?


Forum|alt.badge.img+2

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!

Best answer by Taylor Tarpley

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • Answer
  • June 29, 2022

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


Forum|alt.badge.img+3
  • Klaviyo Employee
  • 1 reply
  • April 12, 2024