Consent Management
From https://github.com/adobe/aem-block-collection/pull/50
- This block displays a minimalistic non-intrusive cookie consent banner
- Pages where cookie consent banner needs to be shown, must have a metadata property called
cookie-consent
, specifying the name of the cookie consent banner we want to show. - The content of the cookie consent banner is in a separate document normally in the path
/cookie-consent/<name-of-the-consent-banner>
- When a user selects their consent preferences, they are stored in the local storage.
- The banner is only shown on page load if a user doesn't have preferences in the local storage.
- When consent preferences are updated or read from the browser, a custom event is triggered. Martech loaders can listen to this events to decide what to load or not load, based on user preferences.
Cookie Consent Flow