Analytics

Analytics for Personalized Search can be captured on certain events, but how you capture them differs by event.

For a SearchClicks event, you must make an additional API call when you trigger the event. This directs the relevant analytics data to be captured.

For a Purchase event, certain data must be included upon triggering the event. Analytics are then automatically captured.

SearchClicks Analytics

When you trigger a SearchClicks event, you must make an API call to the following endpoint:

SearchClicks Event Endpoint


Pass the search click token with the call shown in the following example. Replace the sample token with your own token.

search_click_token Example


The possible response codes are as follows:

  • 200 Success.
  • 400 Bad Request. Your request included a parameter that is unsupported.
  • 500 Error. An unknown error has occurred. Please try again or contact your account manager for more information.

Purchase Analytics

Purchase events are triggered by the addPurchaseRows method. When using Personalized Search, both the productId and sku parameters are required.

Personalized Search analytics are automatically captured when you use this call. You don't need to make any additional API calls.