Skip to main content

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 ?

  

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 || n];” 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.  


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