Tealium Cookies

Tealium Cookies

by on ‎03-04-2015 08:53 PM - edited on ‎06-25-2018 04:43 PM by (8,437 Views)

The JavaScript library utag.js creates and maintains several cookies. This article explains how those cookies work and how to work with your own cookies within iQ Tag Management. All cookies created using Tealium are first-party cookies.

Table of Contents Placeholder

Tealium Cookie

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 A 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.

Additionally, you may 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_" eg. "utag_main_mycookie".

Add Variable_utag_main_mycookie.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 a variable's value, you can create a new cookie or use an existing cookie. You may persist a variable's value in the utag_main cookie by prefixing "utag_main_" to the name of the Cookie Variable, e.g. "utag_main_mycookievar".

Split Segmentation

The Split Segmentation extension's purpose 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 a visitor's privacy settings for the next time they visit your site. The settings you select in the 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 a cookie called utag_env_{account}_{profile}, where {account} and {profile} are the names of the Tealium iQ profile you use to manage your site's implementation. If you clear your browser's cookies, Web Companion will not remember which publish environment you were viewing, requiring you to re-select the environment to view.