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.