Skip to main content

Send an event

Send an analytics event to Meilisearch.

Body

You must provide a string identifying your user if you want Meilisearch to track conversion and click events.You may do that in two ways:
  • Specify the user ID in the payload, using the userId field
  • Specify the user ID with the X-MS-USER-ID header with your /events and search requests

Example

Response: 201 Created

Next steps

Get started with analytics

Set up analytics and start collecting search data.

Bind events to a user

Associate analytics events with specific users for accurate tracking.

Track click events

Configure your application to send click events to Meilisearch.