The events debugger logs events, not queries. You therefore need to ensure you are sending a userToken with each query, i.e. whenever a user searches so Algolia can match the users' events with their search queries.
For Personalization to work effectively, the same userToken must be sent with both search requests and events. This is because:
- The
userTokensent with events is used to build user profiles. - The
userTokensent with search queries is used to retrieve and apply those profiles at query time.
You can inspect your queries in the API Monitoring section pf your dashboard:
- Go to the Algolia dashboard and select your Algolia application.
- On the left sidebar, select API Monitoring
- Open the Search API Logs page: https://www.algolia.com/apps/YOUR_APP_ID_HERE/monitoring/logs
Here, you can monitor requests and operations as they occur on Algolia’s servers.
If a userToken is sent using the userToken parameter, it will appear in the request body. Alternatively, if it’s sent using the x-algolia-usertoken request header, it will appear in the request headers.
For a full list of common userToken issues, troubleshooting topics and best practices, see our summary article here.