Can I set cookies against the domain in DTM via _satellite.setCookie?

Avatar

Avatar
Validate 1
Level 3
jeromerichard
Level 3

Likes

31 likes

Total Posts

28 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jeromerichard
Level 3

Likes

31 likes

Total Posts

28 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jeromerichard
Level 3

15-10-2015

Hi guys,

I'd like to set a cookie using DTM's _satellite.setCookie function, however it seems that I can only set a cookie against the specific subdomain of the site it's set on, rather than the domain.

I'm tying to write a member id cookie on signup.domain.com based on a completed signup, and pick up that cookie value on community.domain.com, however when I look at the cookie itself I can see it's set against signup.domain.com, and is therefore not seen by community.domain.com.

Is there a way I can set this cookie against .domain.com using _satellite.setCookie?

Cheers, Jez

Replies

Avatar

Avatar
Validate 1
Level 2
julià_pujol_ar1
Level 2

Likes

6 likes

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
julià_pujol_ar1
Level 2

Likes

6 likes

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
julià_pujol_ar1
Level 2

15-10-2015

Good question,

I've encountered with the same dilema, I need that my cookies can be set/read across subdomains?,There is any way to do this?

Documentation talk about this, but it refers options that there are not on DTM... 

https://marketing.adobe.com/resources/help/en_US/dtm/web_property.html

Thank you,

Julià.

Avatar

Avatar
Validate 1
Employee
Ben_Bytheway
Employee

Likes

40 likes

Total Posts

62 posts

Correct reply

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

Avatar
Validate 1
Employee
Ben_Bytheway
Employee

Likes

40 likes

Total Posts

62 posts

Correct reply

22 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Ben_Bytheway
Employee

15-10-2015

Hi Jerome,

Unfortunately, you cannot use _satellite.setCookie to set a cookie on a user specified domain.  The function doesn't explicitly define domain when setting the cookie.  Therefore, the default domain is used which corresponds to the current hostname (domain and subdomain both).  

Thanks,

Ben