Skip to main content
Solved

_learnq push returning false

  • December 29, 2022
  • 1 reply
  • 207 views

Forum|alt.badge.img+2

_learnq push function is returnig false to me and myData is not getting pushed to the dataLayer. What issue may be in this? 
Please See the screenshot of the issue. Let me know what should I do in this?
 

 

Best answer by BrownieDev

This is a shot in the dark but are you identifying the profile first?  

On my site, we often identified the profile for the first time on the Started Checkout page since login redirects to it. The profile has to be identified first else the Started Checkout will not know who has started checkout.  Consequence was that the event failed until the identity was known.  

 

We were able to get around this by first pushing the identity event, then calling the Started Checkout event after a 2 second timeout.  This gave the identity call time to be downloaded and the _learnq object updated. 

 

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

1 reply

BrownieDev
Problem Solver II
Forum|alt.badge.img+3
  • Problem Solver II
  • 5 replies
  • Answer
  • December 29, 2022

This is a shot in the dark but are you identifying the profile first?  

On my site, we often identified the profile for the first time on the Started Checkout page since login redirects to it. The profile has to be identified first else the Started Checkout will not know who has started checkout.  Consequence was that the event failed until the identity was known.  

 

We were able to get around this by first pushing the identity event, then calling the Started Checkout event after a 2 second timeout.  This gave the identity call time to be downloaded and the _learnq object updated. 

 


Reply