Where should I put the utag_data and the call of utag.js on our website ?

Silver Contributor
Silver Contributor

Dear Community, 

 

I have a question regarding where we should put utag_data and the call of utag.js on our websit ? 

 

I see that in documentation, we recommande putting  the call of utag.js in the begenning of the <body>, what about the utag_data ? 

 

What's your recommandation to have the best performence ? 

 

Than you for your help 

1 REPLY 1

Where should I put the utag_data and the call of utag.js on our website ?

Tealium Expert
Tealium Expert

Hi @ABK,

 

The utag_data object is the "data layer" and should be placed immediately after the <body> tag and before the utag.js tag manager load script.

 

In the Code Center where you get the snippit to implement, there is a Sample HTML tab that shows where the code should be placed.

 

https://community.tealiumiq.com/t5/iQ-Tag-Management/Code-Center/ta-p/13631#toc-hId--2078203178

 

Thanks!

Steve

Steve Terjeson | Director | Analytics | WUNDERMAN THOMPSON DATA | t: 972-664-3532 c: 214-929-3960
Public