Migration Launch | Community
Skip to main content
New Participant
Jul 28, 2020 5:24 PM UTC
Solved

Migration Launch

Hi Team,

 

We are doing Migration from DTM to Launch for one of portal and interestingly we are getting dataLayer is undefined error with Launch scripts and same is working with DTM scripts (entire set up was same and no change from DTM to Launch code, all library code && data elements && direct call rules are same).

 

Can any one please explain us is there any thing that we are missing and why exactly issue coming in Launch not in DTM for the same code snippets.

 

Regards

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
khurshid
khurshidAccepted solution
Employee
Jul 29, 2020 7:00 PM UTC

This will require looking at the DTM rules and data elements. I will advise reaching out to Customer Care to troubleshoot the issue.

3 replies

vijju1989Author
New Participant
Jul 31, 2020 6:49 AM UTC
@ The second method is already tried with keeping DOM ready but not working...
Translate
kevalytics
Level 2
Jul 30, 2020 7:11 PM UTC

Do you deploy Launch asynchronously or synchronously? It sounds like you are running into a race condition where the Launch rule executes before the data layer is ready. 

 

Ideally, your data layer code is populated in the <head>, above the Launch script. If that's not feasible and your data layer code is written in the <body> below your Launch script, you need to fire your page view rule at least "DOM Ready". 

 

Translate
khurshid
khurshidAccepted solution
Employee
Jul 29, 2020 7:00 PM UTC

This will require looking at the DTM rules and data elements. I will advise reaching out to Customer Care to troubleshoot the issue.

Translate