此選用的布林值標幟可防止 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
});