big-art-65238
08/22/2023, 7:18 PMwww.example.com and the app having a url like app.example.com .
However when a user visits the website for the very first time they get assigned a certain anonymous_id, and when they click the link to go to the webapp, their anonymous_id changes. This is making it near impossible for us to measure the effectiveness of marketing sources and landing pages.
Also interesting that when a user later goes back from the webapp to the website, the anonymous_id no longer changes, so doesn't seem to be any issue with the fact that it is across subdomains.
Reading this from your documentation, this shouldn't happen
By default, the SDK stores all cookies in the top-level domain. It helps you to identify the users visiting websites hosted under a particular sub-domain. For example, if you include the JavaScript SDK in bothandadmin.samplewebsite.com, the SDK will store the cookie inapp.samplewebsite.com.samplewebsite.com
millions-activity-52391
08/22/2023, 7:18 PMbig-art-65238
08/22/2023, 7:19 PMlemon-balloon-16076
08/22/2023, 7:35 PMhelpful-daybreak-79835
08/23/2023, 5:45 AMsetCookieDomain load option in the web app's RS SDK instrumentation is set to a different domain name. By default, the SDK uses the website's TLD.
⢠reset API of the SDK is called in your webapp when a user navigates from the website.
⢠Query string API with a custom anonymous ID is used to trigger events on the webapp load.
⢠Anonymous ID is overridden by calling the setAnonymousId API somewhere in your web app's instrumentation.
Could you please confirm that you're not doing any of the above things in your instrumentation?big-art-65238
08/23/2023, 8:00 AMhelpful-daybreak-79835
08/23/2023, 8:25 AMbig-art-65238
08/23/2023, 2:41 PMbig-art-65238
08/23/2023, 2:42 PM. domain. See the screenshot belowbig-art-65238
08/23/2023, 2:43 PMhelpful-daybreak-79835
08/23/2023, 3:02 PMbig-art-65238
08/23/2023, 3:15 PMhelpful-daybreak-79835
08/24/2023, 5:45 AMbig-art-65238
08/24/2023, 7:52 AMbig-art-65238
08/24/2023, 7:55 AMhelpful-daybreak-79835
08/24/2023, 10:20 AMbig-art-65238
08/24/2023, 1:51 PMHi Jan
Your hunch was correct. Osana consent manager meddles withfunctionality on the browser and gates the cookies to be set on a domain.document.cookie
I don't know how this is configured in Osana, but even if you set the cookie domain name in load options, the issue might still remain.
Can you please check Osana?In case anyone else faces a similar issue using a cookie consent manager