diff --git a/src/templates/nodes/custom/asset/video/view_embed.pug b/src/templates/nodes/custom/asset/video/view_embed.pug index 72cd5a73..a6ab2860 100644 --- a/src/templates/nodes/custom/asset/video/view_embed.pug +++ b/src/templates/nodes/custom/asset/video/view_embed.pug @@ -59,16 +59,14 @@ script(type="text/javascript"). } }; - videojs.registerPlugin('analytics', function() { + videojs(videoPlayer, options).ready(function() { this.ga({ 'eventLabel' : '{{ node._id }} - {{ node.name }}', 'eventCategory' : '{{ node.project }}', 'eventsToTrack' : ['start', 'error', 'percentsPlayed'] }); - }); - - videojs(videoPlayer, options).ready(function() { this.hotkeys(); + }); function addVideoPlayerButton(data) {