支援分析追蹤

自訂追蹤

依預設,檢視器會傳送單一追蹤HTTP要求至已設定的影像伺服器,並包含檢視器類型和版本資訊。

若要與協力廠商分析系統整合,必須聽取trackEvent檢視器回呼,並視需要處理回呼函式的eventInfo引數。 以下代碼是此類處理程式函式的示例:

var interactiveImage = new s7viewers.InteractiveImage({ 
 "containerId":"s7viewer", 
 "params":{ 
  "asset":"/content/dam/mac/aodmarketingna/shoppable-banner/shoppable-banner.jpg", 
  "serverurl":"http://aodmarketingna.assetsadobe.com/is/image" 
}, 
"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

檢視器會先載入。

HREF

用戶激活熱點。

本頁內容

Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now