Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!

FEATURE REQUEST: Ability to manually set cookieDomain in Web SDK

Avatar

Level 1

8/7/24

Hi Adobe Team,

 

It would be great to have the ability to manually set the cookieDomain in WebSDK (noting that there was previous functionality in Adobe Analytics that allowed for this).

 

We have noticed that in our implementation in some environments the AMCV and kndctr cookies are being placed on the incorrect domain.

 

Adobe Engineering Support has explained that it is because the Web SDK does a guess and check approach that finds the shortest set of subdomains that will accept cookies (based on the publicsuffix list). If a domain is on the list, you cannot write cookies for any of it's sub-domains as the cookies will be incorrectly placed on the main domain, rather than the sub-domain.

 

This is problematic if you require separate cookies to be placed on each separate sub-domain. 

 

Currently there appears to be no way to manually set the cookieDomain, as mentioned in the following documentation:

"The Web SDK can determine the correct cookie storage domain without this variable". 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/cookiedomain

 

It would be great if this feature was re-enabled for Web SDK to rectify these issues.

 

Thank you.

1 Comment