Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Migration Launch

Avatar

Avatar
Level 1
vijju1989
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vijju1989
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vijju1989
Level 1

28-07-2020

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Level 1
vijju1989
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vijju1989
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vijju1989
Level 1

30-07-2020

@ The second method is already tried with keeping DOM ready but not working...

Avatar

Avatar
Contributor
Level 2
kevalytics
Level 2

Likes

16 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Contributor
Shape 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Contributor
Level 2
kevalytics
Level 2

Likes

16 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Contributor
Shape 1
Boost 5
Boost 3
Boost 10
View profile
kevalytics
Level 2

30-07-2020

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". 

 

Screen Shot 2020-07-30 at 9.10.46 PM.png

Avatar

Avatar
Affirm 25
Employee
Khurshid_Alam
Employee

Likes

55 likes

Total Posts

188 posts

Correct Reply

41 solutions
Top badges earned
Affirm 25
Boost 50
Affirm 10
Boost 25
Affirm 5
View profile

Avatar
Affirm 25
Employee
Khurshid_Alam
Employee

Likes

55 likes

Total Posts

188 posts

Correct Reply

41 solutions
Top badges earned
Affirm 25
Boost 50
Affirm 10
Boost 25
Affirm 5
View profile
Khurshid_Alam
Employee

29-07-2020

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