Implement standard metadata using JavaScript 3.x


Instantiate a context data object, populate the desired Standard metadata variables. For example:

_onVideoLoad = function () {
    //Create the Media Object
    var mediaObject =

    //Set standard Video Metadata
    var contextData = {};
    contextData = "Sample Show";
    contextData = "Sample Season";
    contextData = "Sample Episode";

    //Set standard Audio Metadata
    var contextData = {};
    contextData = "Sample Artist";
    contextData = "Sample Album";
    contextData = "Sample Label";

    this.tracker.trackSessionStart(mediaObject, contextData);

On this page