disableThirdPartyCookies

此選用的布林值標幟可防止 Experience Cloud Identity 服務傳回第三方 demdex.net Cookie。

注意

此設定原為 idSyncDisable3rdPartySyncing,已在 2018 年 1 月 18 日發行的 v3.0 版本中重新命名為 disableThirdPartyCookies

語法: disableThirdPartyCookies: true|false (預設為 false。)適用於 VisitorAPI.js v3.0.0 或更高版本。

disableThirdPartyCookies: true 時,ID 服務不會傳回第三方 demdex.net Cookie (請參閱 Cookie 與 Experience Cloud Identity 服務)。如果網站訪客的瀏覽器中已有此Cookie,ID服務將不會使用它建立新的Experience Cloud ID(MID)或傳回現有ID。 ID服務會在第一方Cookie中建立新的隨機MID。 啟用後,您就可以使用ID服務收集資料,並在不同的Experience Cloud解決方案間共用資料。

程式碼範例

var visitor = Visitor.getInstance ("Insert Experience Cloud organization ID here",{ 
   trackingServer: "Insert tracking server here here",  //Same as s.trackingServer 
   trackingServerSecure: "Insert secure tracking server here",  //Same as s.trackingServerSecure 
 
   //For CNAME support only. Exclude these variables if you're not using CNAME 
   marketingCloudServer: "Insert tracking server here", 
   marketingCloudServerSecure: "Insert secure tracking server here", 
 
   //Function variable 
   disableThirdPartyCookies: true 
});

本頁內容

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