支持Adobe Analytics跟踪 support-for-adobe-analytics-tracking
HTML5 Video360查看器支持开箱即用的Adobe Analytics跟踪。
要启用跟踪,请将适当的公司预设名称作为config2参数传递。
默认情况下,查看器会向配置的图像服务器发送一个跟踪HTTP请求,其中包含查看器类型和版本信息。
自定义跟踪 section-cda48fc9730142d0bb3326bac7df3271
要与第三方分析系统集成,必须侦听trackEvent查看器回调,并根据需要处理回调函数的eventInfo参数。
以下代码是此类处理程序函数的示例:
var video360Viewer = new s7viewers.Video360Viewer({
"containerId":"s7viewer",
"params":{
"asset":"Viewers/space_station_360-AVS",
"serverurl":"https://s7d9.scene7.com/is/image/",
"videoserverurl":"https://s7d9.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用户事件
已发送……
加载
首次加载查看器时。
交换
在使用 setAsset() API在查看器中交换资产时。
播放
播放开始时。
暂停
暂停播放时。
停止
停止播放时。
里程碑
当播放达到以下里程碑之一时:0%、25%、50%、75%或100%。
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8