Cookies

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

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.

Store consent on a different domain (sub domain)

If you want to store the first-party cookie on a specific sub-domain, you can add this option into the configuration.

Consents will be shared only to pages with this specific sub-domain.

window.didomiConfig = {
cookies: {
local: {
customDomain: 'privacy.your-domain.com'
}
}
};