This describes explains how Tealium cookies work and how to work with your own cookies within iQ Tag Management (TiQ).

In this article:

Table of Contents Placeholder

How it Works

The JavaScript library utag.js creates and maintains several cookies. All cookies created using Tealium are first-party cookies.

The utag.js library creates and maintains a single cookie called utag_main. Within that cookie are several built-in values that keep track of the visitor session. These variables can be easily added to your data layer using the Tealium Built-In Data Bundle.

The built-in cookie variables are defined as:

ses_id A unique identifier for the session.
_st The Unix/Epoch time stamp, in milliseconds.
v_id A unique identifier for each visitor.
_ss A Boolean that indicates if the page viewed is the first in a session. A value of 1 means yes and 0 means no.
_pn  The number of pages viewed during the current session.
_sn The number of sessions for this visitor.

You can optionally add custom values to the utag_main cookie. Add a new variable of type First Party Cookie to your data layer and prefix its name with utag_main_, for example: utag_main_mycookie.

WhiteUI_TiQ_Tealium Cookies_Add First Party Cookie variable.jpg

Using the utag_main cookie to store custom name-value pairs has the benefit of consolidating and reducing the overall number of cookies used for your site.

Cookies from Extensions

The Persist Data Value, Split Segmentation, and Privacy Manager extensions create and leverage cookies when used.

Persist Data Value (Cookie)

The Persist Data Value extension allows you to create a cookie in which you can persist the value of a variable. To persist the value for a variable, you can create a new cookie or use an existing cookie. You may persist the value for a variable in the utag_main cookie by prefixing utag_main_ to the name of the cookie variable, for example: utag_main_mycookievar.

Split Segmentation

The purpose of the Split Segmentation extension is to divide visitors into segments you specify. The extension stores the segment data in the cookie variable you create.

If this extension is scoped to Preloader, you must use a cookie other than utag_main.

Privacy Manager

The Privacy Manager extension uses a cookie called OPTOUTMULTI to save the privacy settings for a visitor for the next time they visit your site. The settings you select in Privacy Manager are saved as parameters in the cookie.

Cookies from Web Companion

Web Companion uses a cookie to remember which publish environment (Prod, QA, Dev, or Custom) you were viewing when you last visited your site. Viewing the default publish environment for your site does not set a cookie.

The last viewed publish environment is saved in the following cookie:

utag_env_{account}_{profile}

Where:

{account} and {profile} are the names of the TiQ profile you use to manage your site's implementation.

If you clear your browser's cookies, Web Companion does not remember which publish environment you were viewing, requiring you to re-select the environment to view.