X-MS-USER-ID
HTTP header to manually link analytics events to specific users.
This is useful if you’re searching from your back end, as all searches would otherwise appear to come from your server’s IP address, making it difficult to accurately track the number of individual users.
Requirements
- A Meilisearch Cloud project with analytics and monitoring enabled
- A working pipeline for submitting analytics events
Add X-MS-USER-ID
to your search query
Include the X-MS-USER-ID
header in your search requests:
MEILISEARCH_USER_ID
with any value that uniquely identifies that user. This may be an authenticated user’s ID when running searches from your own back end, or a hash of the user’s IP address.