Restrict Cookies to current hostname?

Gold Contributor
Gold Contributor

Hi all

 

Is there a way to restrict cookies to the current domain? With cookies I mean anything that gets set by the profile such as utag_main as well as those from tags like Webtrends, Doubleclick, GA.

 

By default, cookies are set to *.domain.xy What we would like to achieve is that cookies are restricted to www.domain.xy if the user is on that hostname. If the user is on sub.domain.xy, cookies would only be set to sub.domain.xy.

 

I hope this makes sense.

Kind regards...Jean-Marc

3 REPLIES 3

Restrict Cookies to current hostname?

Employee Emeritus

@jmbolfing This not possible without custom coding and then that would also require some testing to make sure it works as expected. I would encourage thinking about the question to see if there is another way to solve the issue at hand.  Feel free to reach out to your Tealium Account Manager to have a Solutions Engineer come up with a custom solution for you. 

Restrict Cookies to current hostname?

Gold Contributor
Gold Contributor

Thanks so far @brian_kranson. But is there no way to limit the scope of cookies in the "Publish Settings"? There is a field for "Domain". Wouldn't that be an option?

Restrict Cookies to current hostname?

Bronze Contributor
Bronze Contributor

Hello, 

I do have the same question in fact :). The impact is that all our applications (in the company) have the same domain (.domain.xy) and the cookie is sent to other apps even if they didn't ask it.

I tried to add a js code to update the config like mentioned here and to force the domain to the whole hostname (global.utag_cfg_ovrd.dom_complete = true;) but it does not work. Any idea? 
Thks a lot for your help
(Version utag.loader ut4.0.201812141608)

 

Public