All Collections
Using NEXD Campaign Manager
HTML Ads
Sending events to Nexd dashboard in HTML Ad
Sending events to Nexd dashboard in HTML Ad

You want to track extra events in your HTML Ad? Use simple Javascript interface to succeed in it

Updated over a week ago

Tracking users' actions in ads are crucial to understanding how your advertisement performs against previous ones and gives us a chance to learn how to improve the brand experience.

Nexd by default tracks in HTML ads:

Viewability
Impressions
Load rates
Engagement (via touches/hovers/swipes)
Clicks
Video analytics (VTR)

To add more granularity to the tracking, use the Javascript interface anywhere in your ad like this. Please note that You can track any category/ event you like and name it as you like it. We have no limitations on that. We do recommend avoiding doubling the above-mentioned events we track by default to avoid confusion.

When adding a new category/ event this will send an event to Nexd's dashboard:

window.nexd.sendEvent({
category: 'Navigation',
name: 'User swiped to card',
value: '1' // or any other variable or input
});

This function is added to the HTML environment scope, so it can be accessed in any JS/HTML file needed.

If you need to initiate 3rd party trackers based on your events, you can easily do it:

If you have an event:

window.nexd.sendEvent({
category: 'Navigation',
name: 'User swiped to card',
value: '1' // or any other variable or input
});

This can be tracked in tag if needed:

<ins class="adcads"
data-adc-id="LIVEID"
data-unit="LIVEID"
...
data-onevent-User-swiped-to-card-1="URL"
>
<script src="https://media.adcanvas.com/LIVEID/adtag.js" type="text/javascript"></script>
</ins>

or

If you have an event:

window.nexd.sendEvent({
category: 'Interaction',
name: 'Click'
});

This can be tracked in tag:

<ins class="adcads"
data-adc-id="LIVEID"
data-unit="LIVEID"
...
data-onevent-Click="URL"
>
<script src="https://media.adcanvas.com/LIVEID/adtag.js" type="text/javascript"></script>
</ins>

or if you want to gather all category events

window.nexd.sendEvent({
category: 'Interaction',
name: 'Click'
});

This can be tracked in tag:

<ins class="adcads"
data-adc-id="LIVEID"
data-unit="LIVEID"
...
data-onevent-Interaction="URL"
>
<script src="https://media.adcanvas.com/LIVEID/adtag.js" type="text/javascript"></script>
</ins>

Did this answer your question?