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

APEX-156: User tracking improvements #30

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

ede-somogyi-algolia
Copy link
Contributor

@ede-somogyi-algolia ede-somogyi-algolia commented Apr 25, 2023

Since SeachInsights v2 changed the default value of useCookie to false, a randomly-generated session-persistent userToken is no longer generated and saved to the _ALGOLIA cookie.
This also means that a userToken needs to be explicitly set in the code when useCookie is set to false, otherwise events without a userToken will not be forwarded and will raise an HTTP 422 error.

Added a page-persistent randomized userToken to each call in order to prevent the HTTP 422 errors.

…order to prevent HTTP 422's in the Event Debugger when useCookie is set to false
Copy link
Collaborator

@bsuravech bsuravech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ede-somogyi-algolia ede-somogyi-algolia merged commit 39517f5 into develop Apr 25, 2023
@ede-somogyi-algolia ede-somogyi-algolia deleted the feature/APEX-156 branch April 25, 2023 16:07
@ede-somogyi-algolia ede-somogyi-algolia mentioned this pull request Aug 2, 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.

3 participants