Tracking events
The two main events collected by the platform are impression events and click events. These events are useful for measuring the performance indicators of sponsored product campaigns.
Use of datas- * attributes
To trigger the impression and click events, simply add the data-vzbl-id
attribute to the HTML tag surrounding the sponsored ad blocks, with the value being the tracking ID of the ad returned by the API.
<div data-vzbl-id="fa32460f-3593-430b-87b0-1a1c6098efb2">
HTML5 allows you to associate data directly with an HTML element using data-*
attributes. This approach makes it easier to store data within the document, directly within the HTML elements.
The JavaScript library will automatically send the events to the Veasybl server.
Dernière mise à jour