Solved

Inconsistencies with _learnq.push

  • 2 March 2021
  • 2 replies
  • 14 views

Badge

I have a popup on my site that a lot of people sign up through as their first interaction with us. With it, I am also updating some properties about them based on which URL they are on. I’m playing with the code, but its roughly something like this...

window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'submit') {
_learnq.push(['identify', {'code' : 'x'}]);
}
});

For some reason, some people are coming in beautifully, with the code, as well as the “Where they first found you” data and everything. Others are not.

 

What would break the “Where they first found you” … 

  • is this all dependent on cookies or something?
  • are there specific issues with first time visitors?
icon

Best answer by sarah.lauden 2 March 2021, 17:26

I got my code working!

View original

2 replies

Badge

I got my code working!

Userlevel 4
Badge +4

Hi @sarah.lauden,

Happy to hear you were able to get your code working! Would you be able to share what change(s) you made? This information will be super helpful to other Klaviyo users who may stumble upon this post in the future.

Best,

Caroline

Reply