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

Prefer ajs_anonymous_id from cookies to LocalStorage #1

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

QoLTech
Copy link
Collaborator

@QoLTech QoLTech commented Dec 17, 2023

Addresses the issue I'm having segmentio#46.

If the file we're trying to grab from LocalStorage is userInfo, also try to grab the browser cookies and parse out the "ajs_anonymous_id". If it's not null, replace LocalStorage.anonymousId with the value from the cookie. This allows us to keep our anonymousId tracking consistent across Analytics.js and analytics_flutter.

@QoLTech QoLTech merged commit ab6f29b into main Dec 17, 2023
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

Successfully merging this pull request may close these issues.

1 participant