Enable events collection
Set theclickAnalytics 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.