Skip to content

Commit

Permalink
Added user agent reserved attribute https://docs.developers.optimizel…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mullaney committed Jul 27, 2021
1 parent 50730bb commit b2e5df7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public UserAttributes GetUserAttributes(HttpContextBase httpContext, bool includ
else
userAttributes.Add(DefaultKeys.UserLoggedIn, false);

httpContext.Items.Add("$opt_user_agent", httpContext.Request.UserAgent);
httpContext.Items.Add("ExperimentationUserData-" + includeVisitorGroups.ToString(), userAttributes);
return userAttributes;
}
Expand Down

0 comments on commit b2e5df7

Please sign in to comment.