Skip to main content
Recommend analytics uses the same Insights API and event model as Search analytics. Add analytics parameters to your Recommend requests to link click and conversion events to recommendations. For the concepts behind event tracking, see Click and conversion events. For other implementation paths, see Choose how to send events.

Enable events collection

Set the clickAnalytics parameter to true when making Recommend requests. This adds the queryID property to the Recommend response. Include this query ID when sending click and conversion events for those 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

Optional: Add analytics tags

Use analytics tags to group your analytics data. For example, to compare events from mobile and desktop users.
JavaScript
Pass the clickAnalytics, userToken, and optional analyticsTags parameters in the queryParameters object of each Recommend request.

Send click and conversion events

Use the query ID from the Recommend response to link events to that request:
Last modified on September 28, 2026