We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just like we do for Youtube
The text was updated successfully, but these errors were encountered:
Digital Cube's team is working to correct this error.
Sorry, something went wrong.
$('audio,video').bind('timeupdate', function(e) { var percentPlay = 1; var percentStr = ""; var videosStateID = ""; var videosLogStr = []; percentPlay= this.currentTime / this.duration * 100; if (percentPlay >= 99) { percentStr = "end"; } else if (percentPlay >= 75) { percentStr = "75%"; } else if (percentPlay >= 50) { percentStr = "50%"; } else if (percentPlay >= 25) { percentStr = "25%"; } else { percentStr = "start"; } videosStateID = this.currentSrc + percentStr; if (videosLogStr.indexOf(videosStateID) == -1) { _gaq.push(['_trackEvent', 'Video', this.currentSrc, percentStr]); videosLogStr = videosLogStr + videosStateID; } });
Code above looks great! Feel free to reopen a PR with no jQuery dependency and get it into core.
No branches or pull requests
Just like we do for Youtube
The text was updated successfully, but these errors were encountered: