Clicks vs. conversions
Click events measure engagement with search results. Conversion events measure whether search actually drives outcomes. Together, they give you a complete picture of search quality.
Define your conversions
Before implementing tracking, decide what actions count as conversions for your use case:
Pick the action that best represents a successful search outcome for your business.
Send a conversion event
When a user completes a conversion action, send aconversion event to the POST /events endpoint:
Required and recommended fields
The
queryUid links the conversion back to the original search request. You can find it in the metadata field present in search query responses.
It is not possible to associate multiple
conversion events with the same query. If a user converts on the same query twice, only the first event is recorded.When to fire conversion events
Conversion events should be sent at the moment the user completes the action, not when they first view the result. In a typical e-commerce flow:- User searches for “wireless headphones” (search request)
- User clicks on a product (click event)
- User reads the product page (no event)
- User adds the product to their cart (conversion event)
Best practices
- Track the most meaningful action. If you track too many conversion types, the conversion rate metric becomes less useful. Focus on the action that best represents search success.
- Preserve the
queryUidacross pages. Store it in session storage or pass it as a URL parameter so you can associate conversions with the search that led to them. - Use consistent user IDs. The same user should have the same
userIdacross all searches and events. - Do not send duplicate conversions. Only one conversion event per query is recorded, so avoid sending the same event multiple times.
Next steps
Getting started with analytics
Set up click and conversion tracking from scratch
Events endpoint reference
Full reference for the
/events endpoint fields and behaviorTrack click events
Record which search results users click on
Bind events to a user
Learn how to associate analytics events with specific users