How can i track ad impression using videojs vast-vpaid plugin? Ad impression will always be fired when the ad started? Is there a way to track ads duration events? (first-quartile,second,etc) Will it be different tracking event for VPAID ads?
This is an example of my code:
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin"
controls="" preload="none" width="300" height="300"
poster="http://vjs.zencdn.net/v/oceans.png">
</video>
<script>
var player;
$(document).ready(function() {
player = videojs('example_video_1', {
techOrder: ['html5','flash'],
//autoplay: true,
sources: [{
type: "video/mp4",
src: "http://vjs.zencdn.net/v/oceans.mp4"
}],
plugins: {
vastClient: {
adTagUrl: "http://ssp.lkqd.net/ad?pid=2000&sid=20497&env=3&format=1&width=[WIDTH]&height=[HEIGHT]&dnt=[DO_NOT_TRACK]&output=vast&rnd=[CACHEBUSTER]&pageurl=[URL_ENCODED_PAGEURL]",
adsCancelTimeout: 3000,
adsEnabled: true
}
}
});
player.on('vast.adStart', function () {
});
player.on('vast.contentEnd', function () {
});
});
</script>
</body>
</html>