This guide shows you how to manually differentiate users across search analytics using the X-MS-USER-ID HTTP header.
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.
X-MS-USER-ID
to your search queryX-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.
X-MS-USER-ID
to the analytics event