Skip to content

Default targeting context for browser application#123

Open
zhiyuanliang-ms wants to merge 4 commits intomainfrom
zhiyuanliang/cookie-targeting
Open

Default targeting context for browser application#123
zhiyuanliang-ms wants to merge 4 commits intomainfrom
zhiyuanliang/cookie-targeting

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.

1 participant