One of the ways you can implement Netcore Unbxd Analytics is with the help of APIs. Our API provides effortless, anonymous tracking of visitor behavior, enabling personalized search and category page results based on individual preferences. Additionally, the API powers comprehensive, site-level reporting.
Add the common and event-specific attributes
To ensure a successful API implementation, it’s essential to cross-verify or create the necessary attributes. You can get a detailed understanding of the API call here. These attributes fall into two categories:
user ID
, timestamp
).product ID
for click events).Both common and event-specific attributes are mandatory. Attribute names and types must EXACTLY match those provided in the documentation.
Add Autosuggest attributes
If your autosuggest widget is powered by Netcore Unbxd, then you’ll have to fire a few additional events. These will help improve autosuggest accuracy and provide necessary reports.
Pass the Request with the Following HTTP Headers
Parameter | Description | Significance |
---|---|---|
user-agent | Browser identification information is passed to the webserver with every HTTPS request. | If not passed, device-based merchandising campaigns will not work. |
X-Forwarded-For | Signifies the IP address of the end-user. This is required primarily if the integration is a backend process since Unbxd doesn’t get the IP of the end-user from the browser. | If not passed, segmentation, A/B testing, and personalization will not work. |
Example API URL:
The query string following the ?
includes various parameters needed to track a search event. Each of these parameters is a key-value pair separated by &
.
Endpoint: http://tracker.unbxdapi.com/v2/1p.jpg
.jpg
serves as a tracking pixel, used to capture the visitor’s data while maintaining anonymity.Understand the required parameters, their values, and purpose from this section.
http://tracker.unbxdapi.com/v2/1p.jpg
.data
parameter contains information about the search query, the page URL, the referrer, and the session.UnbxdKey
associates the request with the correct Unbxd account.action
specifies that this request is for tracking a search event.uid
and t
parameters track the user and the timestamp, respectively.Each parameter provides essential context about the user’s interaction with the site and ensures the right data is tracked for analytics purposes.