disableThirdPartyCookies disablethirdpartycookies
An optional, Boolean flag that prevents the Visitor ID Service from returning the third-party, demdex.net cookie.
NOTE
This configuration was
idSyncDisable3rdPartySyncing and renamed to disableThirdPartyCookies in the January 18, 2018 release of v3.0.Syntax: disableThirdPartyCookies: true|false (default is false.) For VisitorAPI.js v3.0.0 or greater.
When disableThirdPartyCookies: true, the Visitor ID Service does not return the third-party, demdex.net cookie (see Cookies and the Visitor ID Service ). If a site visitor already has this cookie in their browser, the Visitor ID Service won’t use it to create a new ECID or return an existing ID. Instead, the Visitor ID Service creates a new, random MID in the first-party cookie. Once enabled, you can collect data with the Visitor ID Service and share it across different CX Enterprise solutions.
Code Sample
var visitor = Visitor.getInstance ("INSERT-IMS-ORG-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
});
recommendation-more-help
id-service-help