Skip to content
Gallery
nytgames
CreativeTech Wiki (internal)
Share
Explore
Reference

Adding Time-Based Tracking to video ads

Our video players now have a built in time tracking for 2 and 6 seconds, in addition to Quartile trackings. These time tracking gets captured in our Event Tracking system along with all other interaction tracking. You may also override and add your own time-based tracking following the recipes below.

CustomJS Recipes

OVERRIDE the default time-based tracking

<!-- Only track the 2-second mark -->
<script>
window.trackingSeconds = [2];
</script>

ADD NEW time-based tracking

<!-- Track the 2, 6, 7 marks -->
<script>
window.trackingSeconds = [2,6,7];
</script>

REMOVE time-based tracking

<!-- Removes all time-based marks -->
<script>
window.trackingSeconds = [];
</script>
megaphone

Modifying the window.trackingSeconds variable will remove the existing time-based tracking. You must add the “2” and “6” in the array if you would like to continue 2- and 6-second tracking.


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.