Get started with Recommend analytics
To use Recommend analytics, include the parameters that link recommendation results to click and conversion events in your Recommend requests.Enable events collection
Set theclickAnalytics parameter to true when making Recommend requests.
This adds the queryID parameter to the Recommend response, which you need to link events to recommendations.
JavaScript
Send user tokens
User tokens are strings that uniquely identify users in your app. They link click and conversion events to user profiles. For more information, see User token.JavaScript
Add analytics tags (optional)
You can use analytics tags to create different suggestions for different environments, such as mobile or desktop users, or for different geographical regions.JavaScript
You can use
clickAnalytics, userToken and analyticsTags parameters with
all API clients
and UI libraries. Pass these parameters in the Recommend
request.Send click and conversion events
After you enableclickAnalytics and send a userToken with your Recommend requests,
use the standard event flow to send click and conversion events.
- If you use InstantSearch, see Send events (with InstantSearch).
- If you use an API client, see Send events (with an API client).