Back

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

Additional reading: How Tealium Uses Cookies

In this article:

Table of Contents Placeholder

How It Works

The Tealium Universal Tag (utag.js) creates and maintains several first-party cookies.

The utag.js script 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.

Built-In Cookies

The built-in cookie variables are:

Cookie Variable Description
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 add custom values to the utag_main cookie by creating a new variable of type First Party Cookie with the prefix utag_main_ for example: utag_main_mycookie. This keeps cookies associated with your Tealium installation separated from the global cookie namespace, which helps to avoid name collisions reduces the overall number of cookies used for your site.

WhiteUI_TiQ_Tealium Cookies_Add First Party Cookie variable.jpg

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 named 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, where {account} and {profile} are replaced with your account and profile:

utag_env_{account}_{profile}

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.