Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

@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.

2 participants