Skip to main content
Contributor I
December 29, 2022
Solved

_learnq push returning false

  • December 29, 2022
  • 1 reply
  • 254 views

_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?
 

 

    This topic has been closed for replies.
    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. 

     

    1 reply

    BrownieDev
    Problem Solver II
    Problem Solver II
    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.