AnsweredAssumed Answered

Tracking Video Plays w/ Munchkin clickLink

Question asked by 30491 on Jul 16, 2013
Latest reply on Jul 29, 2013 by 32088
Hello,

I'm trying to see if this would work. I'm trying to track clicks on all videos on our website. The videos Wistia videos iframed into our site.  Is this the correct way to track the click event in Marketo?

HTML
<iframe src="http://fast.wistia.com/embed/iframe/9h01ktaglb?controlsVisibleOnLoad=true&version=v1&videoHeight=360&videoWidth=640&volumeControl=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="640" height="360"></iframe>

JS
<script src="http://fast.wistia.net/static/embed_shepherd-v1.js"></script>

<script>
  wistiaEmbeds.onFind(function(video){
    video.bind("play", function(){
      mktoMunchkinFunction('clickLink',{url:'/embed/iframe/9h01ktaglb'});
      return this.unbind;
    })
    });
  });
</script>



Thank you Javascript wizards.

Outcomes