Share consents between domains

By default, the Didomi CMP uses first-party cookies to store consent information. Consent is therefore shared across all the sub-domains of the base domain where the SDK is deployed but is not shared across domains.

Example: If you install Didomi on www.domain.com, consents will be stored in a cookie on .domain.com and all sub-domains of domain.com will have access to the same consent information. Other domain names (www.other-domain.com) will NOT have access to that consent information.

With group cookies, consent is stored on a sub-domain that you own and delegate to us (like privacy.your-domain.com) and can be shared across all your websites.

Consents will be shared only between the domains that have activated the group cookies feature with the same specific sub-domain. It allows you to have private consents between your different websites without exposing them to third-parties.

To enable group-level cookies, the steps are the following:

  1. Pick a sub-domain that will be used for sharing consent cookies. We recommend picking a sub-domain of your biggest website.

  2. Create a DNS NS delegation record on that sub-domain to allow Didomi to manage it. Please reach out to support@didomi.io with the sub-domain that you have picked for help setting up that record.

  3. Update your SDK configuration on all the websites that need to share consent:

window.didomiConfig = {
cookies: {
group: {
enabled: true,
customDomain: 'privacy.your-domain.com'
}
}
};

After that setup is done, the Didomi SDK will start using privacy.your-domain.com for storing consent cookies. You must use the same customDomain configuration on all the websites that you want to share consents between.

Important warnings and obligations:

  1. If you are enabling this feature, you must update your notice and popup content to correctly inform the user that their consent will be shared across multiple websites for the collected consents to be valid. Include a list of websites and legal entities that will be sharing consent.

  2. This feature depends on browsers accepting third-party cookies. Users that browse with Safari or have blocked third-party cookies will not be able to store third-party cookies in their browser. Didomi will fall back to using first-party cookies when third-party cookies are not available.

  3. If you are already using Didomi with first-party cookies (the default behavior) and decide to switch to third-party cookies, please be advised that all your previous consents will be lost. The consent notice will be displayed to all visitors again to recollect consent.