How do I create a separate cookie/parameter with the Tealium ses_ID?

Bronze Contributor
Bronze Contributor

Hello,

I am trying to create a cookie (or separate parameter within utag_main) for the Tealium Session ID (ses_id). I would like to output the following into a cookie:

{

....

"ses_id":"3209424834"

....

},

NOTE: 3209424834 is an example value of the ses_id, which should be dynamic to each session.

Currently, ses_id is output into utag_main cookie in a consolidated format under the "value" parameter. I want to create a separate parameter for the ses_id so that it can be easily consumed by external systems.

Thank you for any help.

2 REPLIES 2

How do I create a separate cookie/parameter with the Tealium ses_ID?

Employee Emeritus

@tedrem,

I am not sure I understand your question, the utag_main session id is accessible through the data layer and you can simply create a variable in the data sources tab like so:

Tealium iQ - Tag Management 2016-10-25 13-06-29.png

Or, if you wanted this cookie outside of Tealium, you could use Javascript to extract the cookie on your site. Another option is to use a Tealium Javascript Code extension to create a seperate cookie with the value:

Tealium iQ - Tag Management 2016-10-25 13-16-39.png   

How do I create a separate cookie/parameter with the Tealium ses_ID?

Bronze Contributor
Bronze Contributor

@christina_schel Thank you for your help. The custom Java extension is what I was looking for and works great.

Public