Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

cookieDomain setup in Marketing Cloud ID Service via DTM

Avatar

Avatar
Validate 1
Level 2
andrey_osadchu1
Level 2

Likes

15 likes

Total Posts

15 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
andrey_osadchu1
Level 2

Likes

15 likes

Total Posts

15 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
andrey_osadchu1
Level 2

02-02-2016

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
andrey_osadchu1
Level 2

Likes

15 likes

Total Posts

15 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
andrey_osadchu1
Level 2

Likes

15 likes

Total Posts

15 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
andrey_osadchu1
Level 2

03-02-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.

Answers (2)

Answers (2)

Avatar

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct Reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct Reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile
AlexisCazes
MVP

03-02-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

Avatar

Avatar
Validate 1
Level 1
adam_king1
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
adam_king1
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
adam_king1
Level 1

11-05-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