Skip to main content
zloi_dvornik
Level 2
Jun 29, 2016 11:15 AM UTC
Solved

Data Layer placement for DTM

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParitMittal
ParitMittalAccepted solution
Level 10
Jul 4, 2016 11:35 AM UTC

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.

4 replies

ParitMittal
Level 10
Jun 30, 2016 1:02 PM UTC

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

Translate
Level 4
Jul 1, 2016 1:45 PM UTC

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.

Translate
ParitMittal
ParitMittalAccepted solution
Level 10
Jul 4, 2016 11:35 AM UTC

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.

Translate
zloi_dvornik
Level 2
Jul 6, 2016 12:01 PM UTC

Thanks, guys. Sorry for no having replied earlier. 

Translate