chexton
2/19/2013 - 1:08 AM

timed-event-tracking.js

timed-event-tracking.js

<script>
$(document).ready(function(){
  var delay1 = 22*60*1000;
  var delay2 = 45*60*1000;
  
  // Fire after 22 mins
  setTimeout(function(){
    _veroq.push(['track', 'watched 22 minutes of video']);
  }, delay1);
  
  // Fire after 45 mins
  setTimeout(function(){
    _veroq.push(['track', 'watched 45 minutes of video']);
  }, delay2);
});
</script>