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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

First Party Cookie CNAME in test environments

joeyh8365667
Level 1
Level 1

Hi, 

I have begun the process for the recommended first party cookie implementation using CNAME entries. Those are in place and Adobe has purchased the certificates. However, I'm wondering how this implementation will work correctly in test environments. For example, I test my implementation on  www.mywebsites.test  however the CNAME is setup with the domain  smetrics.mywebsites.com  so the first party cookies would not work because the domains are different, correct? 

Is there a recommended way to implement this for non-production environments? 

1 Accepted Solution
PratheepArunRaj
Correct answer by
Moderator
Moderator

Dear Joey,

For Production and Non-Production environments, the implementation is the same.

Check out my blog: https://terrynwinter.com/adobe-analytics-google-announcement-and-cross-domain-tracking/

It has the answer to track Cross Domains: Using appendVisitorIDsTo.

But by default cross domains work with Third-Party Cookie and through ID sync. Above is needed only if the browsers block third-party cookies.

Thank You, Arun.

View solution in original post

3 Replies
PratheepArunRaj
Correct answer by
Moderator
Moderator

Dear Joey,

For Production and Non-Production environments, the implementation is the same.

Check out my blog: https://terrynwinter.com/adobe-analytics-google-announcement-and-cross-domain-tracking/

It has the answer to track Cross Domains: Using appendVisitorIDsTo.

But by default cross domains work with Third-Party Cookie and through ID sync. Above is needed only if the browsers block third-party cookies.

Thank You, Arun.

joeyh8365667
Level 1
Level 1

Thanks Arun, your blog post was very helpful!

My only remaining question, is for test environments do I need still point the recording to my smetrics.mywebsite.com ?  Or do I need to setup CNAME entries and have Adobe purchase certs for my test environments as well (i.e. smetrics.mywebsite.test,  smetrics.mywebsite.dev) ? 

PratheepArunRaj
Moderator
Moderator

Dear Joey, If your CNAME points to smetrics.mywebsite.com, then there is no need to have individual certificates for test.mywebsite.com or dev.mywebsite.com i.e. Subdomains. But if you have different domains, then you need to use the most common domain. If there is no common domain to use for the data collection domain, there is no cross-domain benefit to maintaining a CNAME for the data collection domain. Check out the link: https://docs.adobe.com/content/help/en/id-service/using/reference/analytics-reference/cname.html. If you still having trouble in understanding, you can reach me offline, will connect to explain in detail. Thank You, Arun.