Smart Crop視頻查看器支援Adobe Analytics開箱跟蹤。
Smart Crop視頻查看器支援Adobe Analytics開箱跟蹤。
要啟用跟蹤,請將正確的公司預設名稱作為 config2
的下界。
查看器還向配置的Image Server發送單個跟蹤HTTP請求,其中包含查看器類型和版本資訊。
要與第三方分析系統整合,必須傾聽 trackEvent
查看器回調和進程 eventInfo
回調函式的參數。 以下代碼是此類處理程式函式的示例:
var smartCropVideoViewer = new s7viewers.SmartCropVideoViewer({
"containerId":"s7viewer",
"params":{
"asset":"html5automation/frisbee-AVS",
"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
}
}
}
});
查看器跟蹤以下SDK用戶事件:
SDK用戶事件 |
發送時間…… |
---|---|
LOAD |
首先載入查看器。 |
SWAP |
在查看器中使用 setAsset() API。 |
PLAY |
播放。 |
PAUSE |
播放已暫停。 |
STOP |
播放已停止。 |
MILESTONE |
播放到以下「millstones(重放)」之一:0%,25%,50%,75%和100%。 |