Hi,
for some reason even though we our users are identified via `_learnq.push([identify, '$email' : '{{ customer.email }}' ]) none of the data is coming through, we have events for: Viewed item, Added to cart, Added to wishlist and more.
Even when I manually type the code on the console to identify my email address and try to push an event it just doesn’t show up on klaviyo.
Anyone else had problems with this before?
Why are our events not coming through
Best answer by cbarley
Hey
- When you paste the code
_learnq.push([identify, '$email' : '{{ customer.email }}' ]);
be sure to add quotes around “identify” - When you test that code in the console, are you replacing
{{ customer.email }}
with an actual email address? If not, you should do that for testing purposes. The Javascript console doesn’t know how to to parse the{{ }}
characters since those are particular to Shopify and aren’t native Javascript characters. - A possible easier way to “identify” yourself in the browser if you’re looking to test to see if you’re getting properly cookied, which is the equivalent to pasting in that _learnq.push code you provided is to actually just add your email into your own URL with the Klaviyo tracking code on it like this: https://yourwebsite.com?utm_email=youremailgoeshere
Corresponding article here - Finally, do you happen to have the page that you’re looking at to test so that I can take a look here?
Thanks!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.