Track Impressions

You can use the OnlineSales.ai pixel to track your ad impressions.

Requirements

The pixel's base code must already be installed on every page where you want to track conversions.

Trigger

AdImpression event should be fired when a user visits a category page.

JS API

All events are tracked by calling one of the library's function with a JSON object as it's parameters.

Following is a function call to track when a visitor has viewed a product on the website:

// with minimum required parameters
_osAdImpression({
    "uclids": ["as123234198laskdnasd", "pq1we4198laskdnasd"]
})

List of all the standard events can be found here.

Object Properties

You can include the following predefined object properties with any events that support them. Format your parameter object data using JSON.

Last updated