A Jquery plugin for tracking video behavior

"Analytics for videos!"

What is this?

VideoLog.js is a jquery plugin that lets you view video activity from users on either HTML5 MP4 videos, Youtube, and/or Vimeo platforms.

Rather than having functionatlity of seeing one video on one platform, you may have multiple videos from any of the three platforms above.


Installing VideoLog.js is easy. Simply Download VideoLog.js, include videolog.min.js and the Vimeo API script in your javascript file or at the bottom of your html document and call the videolog function. Use any Vimeo, Youtube iframe element or HTML5 video Element and give each a class name to be used when calling the function. Our example below has 'trackable-video' class name. If multiple videos are on the page, give each a unique id to eliminate confusion of which video you are tracking.

Download the production version or the development version.

//Select any iframe or video element by giving it a class name to use for the plugin to track.
//Use a unique id to idenity which video if you have multiple videos on the page.

<iframe id="vp1" class="trackable-video" src=""></iframe>

<iframe id="yt1" class="trackable-video" src=""></iframe>

<video id="video1" class="trackable-video" height="250" width="350" controls>
<source src="videos/video-example.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video>

<script src="jquery.js"></script> // jquery
<script src="dist/videolog.min.js"></script> // video plugin
<script src=""></script> //vimeo api*

*Youtube API is loaded asychronously with the plugin while Vimeo API script should be applied where videos are.



What's the best part?

v 1.0.0