Track Ad Clicks

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

Requirements

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

Trigger

Ad Click event should be fired when a user clicks on an ad

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
_osAdClick({
    "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