Utag loading on page and delaying the TAG firing to avoid Gomez page load time going up due to TAG.

Silver Contributor
Silver Contributor

Our application pages are monitored by Gomez and the Gomez measures all assets and AJAX calls made from page as a part of page load time. We started missing our MDO because of TAG firing time adds up to page load time. I wanted to see if there are any option, if we can delay the page load TAG firing till Gomez completes the page load measurement.

 

2 REPLIES 2

Utag loading on page and delaying the TAG firing to avoid Gomez page load time going up due to TAG.

Employee Emeritus

Hi @amit_ranjan I am happy to help with this inquiry outside the forum and will follow up in a separate email.

Utag loading on page and delaying the TAG firing to avoid Gomez page load time going up due to TAG.

Tealium Employee

 If you wanted your analytics to load after any performance measuring tool, I believe it will measure up to document complete.

 

In release v: 4.34 and above there is a override flag to "delay tags until the DOM readyState "complete" (aka "load") event -- this flag provides a delay that might make page display time speed up by pushing all tags (with Wait = Yes setting) to execute even later // Preloader JS Extension to set the flag to wait for readyState "complete"

 

 

 

//scoped “Preloader” JS extension

var utag_cfg_ovrd = {}; 
utag_cfg_ovrd.dom_complete = true;


An extra delay until readyState "complete" is added for older IE browsers by default. This is a fix for IE browser bug that reports DOM readyState "interactive" before it is really true. "

 

 

 

If you wanted to have the entire Tealium library from loading untill you can always could also wrap our standard async script injection in DOM ready code or use an EventListener to trigger loading utag.js at document complete. 

 

 

jQuery( window ).load(function() { ...})

 

 

 

One caveat is that any of these measures will have an impact an analytics performance.

 

Public