Is it possible to create third party cookies with Tealium?

Gold Contributor
Gold Contributor
I'd like to create a third party cookie from one domain, and read it from another domain. Is there a way to do this with Tealium?
6 REPLIES 6

Is it possible to create third party cookies with Tealium?

Tealium Employee
Hi Javier, Not with using the Tealium Persist Data extension. The extension is hardcoded to use utag.cdg.domain. If you wanted to do this you would need to write custom code.

Is it possible to create third party cookies with Tealium?

Moderator
Moderator
Hi Javier, Actually, there's no way to set 3rd party cookies at all from Tealium. This is not a restriction of Tealium, but a security restriction in the browser. If Tealium (or any other Javascript) is loaded on www.domain1.com, it can only set cookies on that domain. If you wanted to set cookies on a 3rd party domain, you would have to request a resource (an image, for example), and configure the server to send back a "Set-Cookie" directive in the response header. This cookie would not be available to Tealium because the browser only gives Javascript access to cookies located on the primary domain (www.domain1.com). This prevents 3rd party scripts from "stealing" cookies from other sites. For example, I can't read a cookie located on "www.yourbank.com" and steal your login details, because the browser wouldn't allow it. Another way of thinking about it is that 3rd party cookies don't really exist. 3rd party cookies are simply first party cookies that belong to another domain than the one you are visiting. For example, any cookies set on www.domain2.com are 3rd party cookies to www.domain1.com, but they are first party cookies to www.domain2.com. If www.domain1.com requests a resource from www.domain2.com, the browser would send all www.domain2.com's cookies with the request, but a script on www.domain1.com would not have access to the contents of those cookies - they are effectively "private" as they belong to www.domain2.com. In summary, there is no way of setting 3rd party cookies at all in Tealium, and there never will be, but this is exactly the same as any other Javascript-based solution. I hope my explanation helps and isn't too confusing. Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Is it possible to create third party cookies with Tealium?

Gold Contributor
Gold Contributor

Hi all,

Along the same lines - is it possible to utilize the TEalium domain that we're pulling the utag file from to set cookie and local storage files? (as opposed to some 3rd party to our and tealiums?)

Is it possible to create third party cookies with Tealium?

Tealium Employee

@Michael_Kim_shc

 

Are you suggesting to use the tags.tiqcdn.com domain for setting cookies and local storage? What would be the need for this? This isn't currently possible as it's simply a file hosting service and not a site domain.

Is it possible to create third party cookies with Tealium?

Gold Contributor
Gold Contributor

Hey @dan_george, that's exactly what i was hoping for (bieng able to use tealium as our site's 3rd party cookie space for doing some unauthenticated x-site stiching without having to rely on inter-site links, etc.  Would be useful for a number of other things as well, but sounds like it won't be possible.

Is it possible to create third party cookies with Tealium?

Tealium Employee

Hey @Michael_Kim_shc

 

I think what you'd be interested in is feature our Customer Success team built called "First party cookie sync". What is allows you to do is share data across domains, as along as those domains are managed by the same Tealium account. For example, for demo purposes we on the Solutions Consulting team have tealiumecommerce.com, tealiumlead.com, and tealiummedia.com. They are all managed under the "tealiumlabs" account and we are able to set cookies between domains to be able to x-site stitch visitors.

 

localStorage can only be set on the current working domain so you can't set it like a cookie, so you'd be limited there.

 

If this is what you're looking for, ask you Account/Deployment manager about this and they'll get you in touch with a Customer Success Engineer who can get you more details.

Public