Skip to main content
Solved

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

  • November 21, 2020
  • 2 replies
  • 675 views

Forum|alt.badge.img+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 ?

  

Best answer by sannket

sannket wrote:

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.  

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

2 replies

Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • November 23, 2020
sannket wrote:

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.  


cassy.lee
Forum|alt.badge.img+9
  • Klaviyo Alum
  • 271 replies
  • November 27, 2020

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.