Skip to content

Default targeting context for browser application #123

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zhiyuanliang-ms
Copy link
Contributor

@zhiyuanliang-ms zhiyuanliang-ms commented May 29, 2025

Why this PR?

Application Insights JS SDK will automatically set ai_user cookie. The cookie value is the same as context.user

If we treat anonymous users as userId="", then when doing percentile targeting/variant allocation, then all anonymous users will get the same percentile. We want to utilize the user id cookie to distinguish anonymous users.

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