Highlighted

accessing first party cookie across multiple domians

Silver Contributor
Silver Contributor

Hi

 

Wondering if this is possible using a single Tealium Profile. I have two domain.

 

www.company.com - for browse products

www.companyshop.com - for cart/checkout/confirmation

 

www.companyshop.com is a legacy system and user gets a cookie once the purchase a product e.g. cookie name = buyer, value = yes. We have added Tealium JS code in www.companyshop.com and I have created a first party cookie variable in Tealium so in browser console utag.data gives me :

cp.buyer : "yes"

also to add 3rd party marketing systems are using the above cookie. Unfortunately no change can be made to the cookie and it gets set at domain level  ".companyshop.com" 

 

How can I create an exactly identical cookie (Presist Data Extension) under the ".company.com" domain? Any thoughts? 

 

8 REPLIES 8
Highlighted

accessing first party cookie across multiple domians

Tealium Employee

Hi @zhaque

 

So to start with let me point you towards:  https://community.tealiumiq.com/t5/iQ-Tag-Management/Cross-Domain-Tracking-Using-First-Party-Cookie-...

 

There are other options if this doesn't work using some of the technology mentioned above.

This would involve, fingerprinting the device that is being used, by getting information from the browser like:

navigator.connection

navigator.plugins

navigator.platform

navigator.appCodeName

navigator.appName

navigator.appVersions

navigator.userAgent

navigator.productSub

navigator.cookieEnabled

navigator.language

navigator.languages

navigator.mimeTypes

navigator.deviceMemory

navigator.javaEnabled()

And maybe some others like browser height & width.

 

Using all of these details you can create a unique ID for the browser which will be the same in every instance. You can then use the cookie sync service with this ID to set/get and data. 

 

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Highlighted

accessing first party cookie across multiple domians

Silver Contributor
Silver Contributor

Thanks @adrian_browning

 

I read the article unfortunately it's not going to work for me as it requires two tealium profile. 

 

Navigator/fingerprinting sounds like a long workaround. It doesn't feel like we will be able to do this via Tealium

 

Cheers

Highlighted

accessing first party cookie across multiple domians

Silver Contributor
Silver Contributor

I meant to say it's not possible in Tealium using a single profile.

Highlighted

accessing first party cookie across multiple domians

Tealium Employee

If I understand correctly, @zhaque, need to effectively synchronise a 1st party cookie from one domain to another? 

 

Sorry, I don't know if you have AudienceStream or not, but if that's the case and you have AudienceStream you could store the cookie value as a visitor attribute on site A, and then reproduce the cookie using Data Layer Enrichment and a custom javascript extension on site B. 

 

 

Highlighted

accessing first party cookie across multiple domians

Silver Contributor
Silver Contributor

Hi Steve,

 

We don't have audience stream unfortunately. So won't work. I guess audience stream allows you to store - data captured on Tealium servers and pass it back to US.. wish we had :)

 

+1 for a free light weight version for all :)

 

thanks for your reply.

Highlighted

accessing first party cookie across multiple domians

Tealium Employee

AudienceStream does do that, yes. 

 

Just a thought, @zhaque - If you have full dev control over both domains, you could create a custom tag to send the cookie to an iframe page based on the other domain's server which, in turn, writes the cookie - it will then be 1st party on the other domain.    The server-side component would have to be something that you create, but you could use TiQ to implement the tag. 

Highlighted

accessing first party cookie across multiple domians

Silver Contributor
Silver Contributor

Hi all, 

 

I have found a work around but the solution doesn't use Tealium. However the prototype so far seems to be working. but once I have some more data - i will update the thread. Solution is using Adobe products. Will get back to you guys shortly.

Highlighted

accessing first party cookie across multiple domians

Employee Emeritus

Sounds fascinating @zhaque. Let us know what you came up with. 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.