Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-domain tracking and clearing of LocalStorage #706

Open
mschoenlaub opened this issue Dec 1, 2022 · 1 comment
Open

Cross-domain tracking and clearing of LocalStorage #706

mschoenlaub opened this issue Dec 1, 2022 · 1 comment
Assignees

Comments

@mschoenlaub
Copy link

mschoenlaub commented Dec 1, 2022

We are seeing ajs_anonymous_id diverging between our subdomains, and as far as I know all subdomains use the default configuration with V1.46.1

When trying to reproduce the issue, we noticed that analytics-next seems to look for the ajs_anonymous_id in the following order:

Local Storage => Cookies for TLD => In-Memory

That seems to lead to breaking cross-domain tracking for users that at some point deleted their Local Storage and Cookies for our landing page subdomain, closes the window and surfs to it again.

We then end up with both subdomains having different ajs_anonymous_id in Local Storage and the cookie value for the TLD seemingly switching between these values as you navigate between the pages.

Are we doing something fundamentally wrong or is there a way to make analytics-next prefer the value in the Cookie over the Local Storage value?

@chrisradek chrisradek self-assigned this Dec 6, 2022
@egmatwebmaster
Copy link

@chrisradek we are also facing this issue.
This is urgent, as this can break our websites tracking. Some of our subdomain apps do not have explicit logout buttons.

Please see this video - https://drive.google.com/file/d/1XGcHUDJpaKcJPAyChVSaZvjjZzHGO69O/view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants