CANDDi can track Youtube videos so that you can record everyone who has started, paused, completed watching a video

This requires custom javascript to be added on to each page with a video on it


The demo here is good too-

How to track Youtube:

* This assumes you have jQuery on your site

"Get the dom element" which contains the YouTube video

 If the video code looks like this 

<iframe id="ytplayer" type="text/html" src="//" frameborder="0" allowfullscreen>

Add an event listener for the onstatechange event and trigger events to CANDDi

$( document ).ready(function() {
  function(newState) {
   if(window.canddi) {


NOTE: Replace [VideoName] with a unique identifier for this video, Replace start with the action you wish to track (start / stop / pause etc...)

Have more questions? Submit a request
Was this article helpful?
Thank you!