支援Adobe Analytics追蹤

自訂追蹤

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

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

var carouselViewer = new s7viewers.CarouselViewer({ 
 "containerId":"s7viewer", 
"params":{ 
 "asset":"/content/dam/dm-public-facing-live-demo-page/04_shoppable_carousel/05_shoppable_banner", 
 "serverurl":"https://adobedemo62-h.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 Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
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