cookieDomain setup in Marketing Cloud ID Service via DTM | Community
Skip to main content
andrey_osadchu1
Level 2
February 2, 2016
Solved

cookieDomain setup in Marketing Cloud ID Service via DTM

  • February 2, 2016
  • 3 replies
  • 1744 views

Could you please help me understand how to properly set up Marketing Cloud ID Service if the site spans multiple domains like shown below
domain.com
domain.com.tr

While for the first domain the MCVID setup can be left as it is, for the second one an extra configuration has to be applied:

cookieDomain:"domain.com.tr"

It is not clear how to dynamically add the cookieDomain setting when the DTM is serving pages on domain.com.tr. I presume a Data Element should be built and used as shown in screenshot, but I am not sure what values to pass in case if cookieDomain is not required. Could you clarify this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by andrey_osadchu1

Thank you Alexis for the support on this topic!

I think it will be better to return a blank value in case of top-level domains where either of last 2 parts of the URL are > two characters.

3 replies

Alexis_Cazes_
Level 10
February 3, 2016

Hi Andrey,

Yes it is correct that it is required to use cookieDomain for multi-part, top-level domains where either of last 2 parts of the URL are > two characters. The "www" prefix is not required when instantiating this variable.

if you do not put cookieDomain = domain.com.tr then the cookie will be set on com.tr

You DTM configuration seems to be correct.

For the data element I will suggest you to specific custom value if domain like domain.com.tr else return default base domain. you can also return "", it will put the cookie to the default base domain, I tested and it works.

Best regards.

Alexis Cazes

Lead Technical Support Engineer

andrey_osadchu1
andrey_osadchu1AuthorAccepted solution
Level 2
February 3, 2016

Thank you Alexis for the support on this topic!

I think it will be better to return a blank value in case of top-level domains where either of last 2 parts of the URL are > two characters.

adam_king1-1
May 12, 2016

Hi Alexis,

I have setup cookieDomain with DTM. I am finding that the MID isn't always carried to the other domain and is reset with a new one. 

Is this due to load order? IE: Cloud ID Service is done before the data element is available? 

Cheers,

Adam