Event Tracking API

Website Theme/Blueprint Required Changes

XConnect Hawksearch provides the following API to send tracking events to Hawksearch:

POST api/xconnect/v1/events/track 
{ 
  "eventType ": "<Event Enum Value>", 
  "eventData ": "<Base64 Encoded Event Data>", 
}

The following are the values for the Event Enum Value:

  • ClickEvent
  • RateEvent
  • BannerClickEvent
  • BannerImpressionEvent
  • RecommendationClickEvent
  • AutocompleteClickEvent
  • BannerImpressionBulkEvent
  • AutocompleteTrendingCategoryClickEvent
  • AutocompleteTrendingItemsClickEvent

See Known Limitations below.

For the Base64 Encoded Event Data, see the Hawksearch documentation on events (https://developerdocs.hawksearch.com/docs/event-tracking-api#tracking-event-types) for the event data object properties. The event JSON object should then be base64 encoded and sent in the “eventData” parameter as a string.

EventType Values

The following table lists the event types supported by HawkSearch Analytics and indicates whether each event is tracked automatically by the Opti Connector or requires additional implementation. A yes indicates that the event is tracked out of the box, while a no indicates that custom event tracking must be implemented by your Systems Integrator (SI).

EventType CodeEventType CodeEventType ValueOut-of-Box?
Page Load EventPageLoad1Yes
Search EventSearch2Yes
Click EventClick3No
Add To Cart EventAdd2Cart4Yes
Rate EventRate5No
Sale EventSale6Yes
Banner Click EventBannerClick7No
Banner Impression EventBannerImpression8No
Tracking Member Login EventIdentify9Yes
Recommendation Click EventRecommendationClick10No
Autocomplete Click EventAutoCompleteClick11No
Add To Cart Multiple EventAdd2CartMultiple14Yes
Banner Impression Bulk EventBannerImpressionBulk16No
Autocomplete Trending Category Click EventAutoCompleteTrendingCategoryClick17No
Autocomplete Trending Items Click EventAutoCompleteTrendingItemsClick18No

Known Limitations

There is a current bug where the “Recommendation RequestID” is not returned from the recommendation API call. This is needed for the RecommendationClickEvent. This will be added in a future release of XConnect.

There is a current bug where the “IsRecommended” is not returned by the Autocomplete API call. This is needed to choose when the Autocomplete Trending events should be sent or not. This will be added in a future release of XConnect.

Banners are currently not supported by XConnect, but will be supported in a future release of XConnect.


Did this page help you?