How to make sure that tag fires before the page load

Gold Contributor
Gold Contributor
We are launching a Liveperson tag across the site and there is a concern that the tag will not be loaded before the page load. I believe this has already been taken care after by Tealium as there is a LivePerson tag template available. Can somebody direct me where I can find some information on how fire tags before page load, especially in this particular case. Thanks in advance.
6 REPLIES 6

How to make sure that tag fires before the page load

Employee Emeritus

Hi Alla, Here is a link which explains the Order of Operations in regards to Tealium's 'utag.js' and when a vendor tag might fire: https://community.tealiumiq.com/t5/Getting-Started/utag-js-Order-of-Operation-White-Paper/ta-p/326 Settings in Tealium iQ to consider are the "Wait Flag Set: ON or OFF" and "Bundled vs. Non-bundled" in the vendor tag configuration. In most use cases though, you may not need to change any of these default settings.

How to make sure that tag fires before the page load

Employee Emeritus
Hi Alla, When you refer to to 'page load' are you talking about DOM ready or document complete? The biggest factor to whether or not Tealium can fire a tag quickly is where utag.js is inserted on the page. Our best practice is to place the utag.js at top of the 'body'. If we are there, we can make adjustments as Meng pointed out to hasten the firing of some or all tags to increase the likelihood it will fire before the desired event.

How to make sure that tag fires before the page load

Gold Contributor
Gold Contributor
Thanks a lot, Lim.

How to make sure that tag fires before the page load

Gold Contributor
Gold Contributor
I mean DOM ready. Our current configuration is utag.sync.js in the 'head' section (because of Target Standard) and utag.js just before the end of the 'body' section. Do you reckon we have to move it higher to the beginning of the 'body' to make sure tag fires before DOM ready?

How to make sure that tag fires before the page load

Employee Emeritus
If you have utag.js at the end of the body and it is async, it'll likely never fire before DOM ready. Moving it to the top of body would increase your options and likelihood of being able to fire a tag at the desired time.

How to make sure that tag fires before the page load

Gold Contributor
Gold Contributor
Thanks for your reply
Public