Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

First Party Cookie CNAME in test environments

Avatar

Level 2

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

Avatar

Correct answer by
Community Advisor

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

Avatar

Correct answer by
Community Advisor

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.

Avatar

Level 2

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) ? 

Avatar

Community Advisor

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.