Expand my Community achievements bar.

Intermittently setting demdex cookies despite disableThirdPartyCookies

Avatar

Level 2

We're having an issue with regards to the disableThirdPartyCookies method. 

For the VisitorAPI service, when the method disableThirdPartyCookies is set to true the documentation* states that "the ID service does not return the third-party demdex-cookie". And "if a visitor already has this cookie in thier browser, the ID service won't use it to create a new ECID or return an exisiting ID". Still, the demdex-server is responding with a demdex-cookie. How come?

 

*https://experienceleague.adobe.com/docs/id-service/using/id-service-api/configurations/disable-cooki...

 

guyr8182598_0-1651476197837.pngguyr8182598_1-1651476206043.png

 

2 Replies

Avatar

Employee

Hello!

This on the surface looks to be a potential timing issue, if it only occurs intermittently. Will you share the method you are using to implement the ECID service? Is it through launch or javascript?

If you are doing it manually through javascript will you confirm whether you are setting the 'disableThirdPartyCookies' flag on the first instantiation of ECID service via the getInstance Method on the page?

for example I would expect it to include the disableThirdPartyCookies flag there:

var visitor = Visitor.getInstance("INSERT-MARKETING-CLOUD-ORGANIZATION-ID-HERE", {
     trackingServer: "INSERT-TRACKING-SERVER-HERE", // same as s.trackingServer
     trackingServerSecure: "INSERT-SECURE-TRACKING-SERVER-HERE", 
     marketingCloudServer: "INSERT-TRACKING-SERVER-HERE",
     marketingCloudServerSecure: "INSERT-SECURE-TRACKING-SERVER-HERE",
     disableThirdPartyCookies: true

});

 
If you can share steps to reproduce here, that would also be helpful. Otherwise, please create a ticket with customer care. 

 

Best regards, 

Garrett

Avatar

Level 2

Follow below steps to block all the third party cookie call when consent is not accepted.

 

1. Create a rule with event as window load.

2. In action select action type a custom code and place below custom code.

 

var visitor = Visitor.getInstance ("Organisation id@AdobeOrg",{
trackingServer: "INSERT-TRACKING-SERVER-HERE", // same as s.trackingServer

//For CNAME support only. Exclude these variables if you're not using CNAME
marketingCloudServer: "INSERT-TRACKING-SERVER-HERE",

//Function variable
disableThirdPartyCookies: true
});