Created
April 15, 2014 16:52
-
-
Save kaitwalla/10747066 to your computer and use it in GitHub Desktop.
VideoJS — Stats tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_V_(document.getElementByID('player',{},function() { | |
var trackEvent = function() { | |
var videoID = this.id(); | |
_gaq.push(['_trackEvent', 'VideoJS', event.type,videoID]); | |
} | |
this.on('play',trackEvent); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment