Support for Adobe Analytics tracking support-for-adobe-analytics-tracking

The Video Viewer supports Adobe Analytics tracking out-of-the-box.

Out-of-the-box tracking section-3b101fe30be943c1b679fd5c273569ca

The Video Viewer supports Adobe Analytics tracking out-of-the-box.

To enable tracking, pass the proper company preset name as config2 parameter.

The viewer also sends a single tracking HTTP request to the configured Image Server with the viewer type and version information.

Custom tracking section-ab10bd7caf184721a366cf3953071934

To integrate with third-party analytics systems, it is necessary to listen to trackEvent viewer callback and process eventInfo argument of the callback function as necessary. The following code is an example of such handler function:

var videoViewer = new s7viewers.VideoViewer({
 "containerId":"s7viewer",
"params":{
 "asset":"Scene7SharedAssets/Glacier_Climber_MP4",
 "serverurl":"http://s7d1.scene7.com/is/image/",
 "videoserverurl":"http://s7d1.scene7.com/is/content/"
},
"handlers":{
 "trackEvent":function(objID, compClass, instName, timeStamp, eventInfo) {
  //identify event type
  var eventType = eventInfo.split(",")[0];
  switch (eventType) {
   case "LOAD":
    //custom event processing code
    break;
   //additional cases for other events
}
}
}
});

The viewer tracks the following SDK user events:

SDK user event
Sent when...
LOAD
viewer is loaded first.
SWAP
an asset is swapped in the viewer using setAsset() API.
PLAY
playback is started.
PAUSE
playback is paused.
STOP
playback is stopped.
MILESTONE
playback reaches one of the following millstones: 0%, 25%, 50%, 75%, and 100%.
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8