Data Layer stackThe data layer is the foundation of tag management.. The data layer defines attributes about your website, such as site language or page name, as well as important user behaviors that you want to track, such as purchases and logins. Defining the attributes of your data layer is the first step in implementing tag management. Adding a data layer to your website page code is the primary development effort required for tag management.

How It Works

Before we add your first data layer variable, let's review how it works:

  • JavaScript Object
    Most data layer variables created in TiQ will also be added to your page code in a JavaScript object named utag_data, also known as the Universal Data Object (UDO).
  • Consistent Names
    The data layer variable names defined in TiQ must match the names of the variables populated in your page code. For example, a data layer variable named "page_name" in TiQ would be populated in your page code as utag_data = { "page_name" : "My Home Page" };
  • User-Friendly Variables
    Data layer variables should have user-friendly names that are vendor-neutral and easy to understand across all of your business units, e.g. "order_id" instead of "oid".
  • Additional Page Data
    In addition to the variables you define, the data layer can also make use of the following data from your web pages: meta data tags, URL components, query string parameters, cookies, and other global JavaScript variables.

Click Next to see how to add data layer variables to your account.