Solved

Track event for "Viewed Product" is not working with Quick view Popup feature

  • 21 November 2020
  • 2 replies
  • 658 views

Badge +2

Hi, 
We have properly working “Viewed Product” track event on Product page in Shopify site. But.. out there have Quick View on collection page. So I have added code for it.  It does not tracking & does not display on Klaviyo admin side.  

But.. If I execute SAME code on Browser console, it DOES track it and it displays on Klaviyo admin side. 

 

please help.  Why it does not work from js file ? And why it properly work from browser console ?

  

icon

Best answer by sannket 23 November 2020, 04:50

View original

2 replies

Badge +2

Hi, 
We have properly working “Viewed Product” track event on Product page in Shopify site. But.. out there have Quick View on collection page. So I have added code for it.  It does not tracking & does not display on Klaviyo admin side.  

But.. If I execute SAME code on Browser console, it DOES track it and it displays on Klaviyo admin side. 

 

please help.  Why it does not work from js file ? And why it properly work from browser console ?

  

Fixed. I was adding  “var _learnq = _learnq || [];” this line again there while In console I was not using this code line.

 

Sorry, I don’t find DELETE this post option. So I added this comment as this is solved now.  

Userlevel 6
Badge +9

Hi @sannket - thanks so much for following up with the solution you found for your original post! This is particularly helpful, as other users may run into a similar problem as well. 

Thanks for being a part of our Klaviyo Community! 
-Cass. 

Reply