Default Order of operations

astharawal
Bronze Contributor
Bronze Contributor astharawal

Hi Team,
I want to understand how does the default order of operation works. I read through the document : https://community.tealiumiq.com/t5/iQ-Tag-Management/Order-of-Operations/ta-p/326
and understood that utag_data combines with other page elements to create utag.data.
However , in the diagram given below in that link , I understand that utag.data is created at the time of DOM ready.
Can you please help me to identify the correct sequence.
Please let me know if below sequence is correct for default order of operation
1. Extensions scoped to Pre Loader
2. utag_data collated with utag.data
3. Extensions scoped to DOM ready are run.

 

3 REPLIES 3

Default Order of operations

Tealium Expert
Tealium Expert

Hi @astharawal

The order is this:

  1. utag.sync tag code runs (synchronously)
  2. utag.js is loaded
  3. Preloader extensions run (in order of UI)
  4. Data layer from page (utag_data) is combined with cookies, DOM, etc to create utag.data object
  5. "All Tag" extensions set to Before Load Rules are run (in order of UI) (using a locally scoped version of utag.data, called b)
  6. Load Rules are processed (using a locally scoped version of utag.data, called d)
  7. "All Tag" extensions set to After Load Rules are run (in order of UI) (using a locally scoped version of utag.data, called b)
  8. Vendor tags are run
    1. locally scoped extensions are run  (in order of UI) (using a locally scoped version of utag.data, called b)
  9. DOM Ready extensions are run (b is not valid, have to use utag.data)

Remember the tags are all loaded async, so you can't guarantee the order of the code, so if you update utag.data from within a tag scoped extension you may affect other tags.

Hope that helps...

 

Default Order of operations

astharawal
Bronze Contributor
Bronze Contributor astharawal

Many thanks for your help @BenStephenson. This is very useful.

I am assuming , the tags with wait flag enabled would be the last in the order. ie they would execute after DOM ready extensions are run.

Default Order of operations

Tealium Employee

@astharawal

It might be worth reading this TLC article if you haven't already https://community.tealiumiq.com/t5/iQ-Tag-Management/Order-of-Operations/ta-p/326

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.