/events, the endpoint you should use to submit analytics events to Meilisearch Cloud. It also describes the accepted event objects and the data you must include in them.
The /events endpoint
The /events endpoint is only available for Meilisearch Cloud projects with analytics and monitoring activated.
Send an event
click and conversion events.
By default, Meilisearch associates analytics events with the most recent search of the user who triggered them. Include the same
X-MS-USER-ID header in your search and event requests to manually bind analytics events to a user.Example
Response: 201 Created
The click event object
The click event must deliver an object with the following fields:
eventType: a string indicating this is aclickeventeventName: a string describing the eventindexUid: a string indicating the clicked document’s indexobjectId: a string indicating the clicked document’s primary keyposition: an integer indicating the clicked document’s position in the list of search results
The conversion event object
The conversion event must deliver an object with the following fields:
eventType: indicates this is aconversioneventeventName: a string describing the eventindexUid: the document’s indexobjectID: the document’s primary keyposition: the document’s position in the list of search results