Replies: 1 comment 2 replies
-
This would indeed be classed as a bug, however I can't reproduce it, the only query I see happening is the one one set with an explicit user token: https://codesandbox.io/s/clever-agnesi-5brum9?file=/index.html:1255-1300 Do you have a sandbox of how your setup is done? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Per https://www.algolia.com/doc/api-reference/widgets/insights/js/, I've configured the insights middleware in order to track some basic usage and conversion events. However, after doing so, I noticed duplicate queries happening on page load. The first is typically for an anonymous user (e.g.
userToken: anonymous-957a8f35-8aca-41e4-b397-30f87ca448dd
), and the second is for a logged-in user (e.g.userToken: 12345
). Is this expected behavior? I was a bit surprised by it, as I assumedinstantsearch.js
would continue to only execute a single query on page load. If it's not expected, I'm happy to file a bug report...just thought I'd ask the question first.Beta Was this translation helpful? Give feedback.
All reactions