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

Data Layer placement for DTM

Avatar

Avatar
Validate 1
Level 2
zloi_dvornik
Level 2

Likes

3 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
zloi_dvornik
Level 2

Likes

3 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
zloi_dvornik
Level 2

29-06-2016

Hi guys

I just wanted to clarify about the best placement of the data layer for DTM.

If Ensighten should have data layer placed above the Ensighten tag, data layer for DTM should be placed in between the code snippets. I can hardly imagine any other place as fist DTM code snippet is placed in the <head> section. Am I right?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

04-07-2016

Hi Mike & Alla, 

@Mike Thanks for correcting .

@ Alla  If there are DTM rules firing at the top of the page , then place or move rich data objects before the DTM header embed code. Hence Ideally keeping in mind all scenarios  best placement for  the data layer  is above DTM header code

Thanks & Regards

Parit Mittal.

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 2
zloi_dvornik
Level 2

Likes

3 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
zloi_dvornik
Level 2

Likes

3 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
zloi_dvornik
Level 2

06-07-2016

Thanks, guys. Sorry for no having replied earlier. 

Avatar

Avatar
Validate 1
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct Reply

14 solutions
Top badges earned
Validate 1
Shape 1
Shape 10
Boost 50
Boost 5
View profile

Avatar
Validate 1
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct Reply

14 solutions
Top badges earned
Validate 1
Shape 1
Shape 10
Boost 50
Boost 5
View profile
mikethompson
Level 4

01-07-2016

If you put the data layer below the DTM header, I do not think you can trigger Top of Page rules based on the values in the data layer.

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

30-06-2016

Hi Alla ,

If the all DTM rules are firing at bottom of the page, we recommend to place data layer between the DTM code snippets i.e. Header & Footer code i.e. it should be in <head>  section of the HTML document below the header code of the DTM . 

 

Thanks & Regards

Parit Mittal