How the data layer works
This article explains how the data layer works for websites.
The following terms are related to a website data layer and your installation of utag.js
:
-
Universal Data Object (
utag_data
)
The Universal Data Object (UDO) is the JavaScript object that represents the data layer on your site. You populate this object across all the pages of your site with dynamic values that describe the page and visitor interactions.
Learn more about how the UDO works. -
Variable types
Data available directly from your web page (other than your customized UDO) via DOM data, query strings, meta data tags, cookies, and JavaScript variables.
Learn more about the data layer variable types. -
utag.data
The final data object that combines variables from the UDO with all other variable types from the page. This data is used to evaluate load rules.
Learn more about the built-in variables available in the UDO. -
b
object
A JavaScript object used by functions withinutag.js
. Theb
object is a copy ofutag.data
that is used for each vendor tag. Theb
variable can be referenced in JavaScript extensions.
Learn more about theb
object and how it’s used.
The following graphic shows how individual variables come together to create your Data Layer and how that data flows out to your vendor tags.
Data layer flow
When you install Tealium on a web page, the data layer object behaves as follows:
- All variables defined in Tealium iQ Tag Managment are identified.
- Variables are combined into
utag.data
. utag.data
is copied to the locally-scopedb
object as needed.- Extensions run, which might modify the
b
object. - Load rules evaluate variables to determine which tags to load and fire.
- Load rules evaluate whether to load event listeners.
- Variable values are mapped to destinations in vendor tags.
- Vendor tags fire and pass variable values according to your data mappings.
Learn more about the order of operations of the Tealium Javascript library.
This page was last updated: September 13, 2023