-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal non-intrusive Cookie consent block #50
base: main
Are you sure you want to change the base?
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
Add availability to open cookie dialog from footer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diagram and the doc in the PR are great. I think this should be part of a README.md
file in the block itself so that someone using the block has the doc too.
feat: new banner design
* chore: centralize vars * fix: change link cursor * chore: reduce code footprint * chore: some doc * chore: typo
Test URLs:
Cookie Consent Block and consent management logic
The basics
cookie-consent
, specifying the name of the cookie consent banner we want to show./cookie-consent/<name-of-the-consent-banner>
Cookie Consent Flow
Content of the banner
We offer 2 possibilities:
1. Simple consent banner
One simple text explaining that the website is using cookies. Buttons
accept all
,deny all
can be added optionally.Word document:
Contains a single section with the text, which can be styled, and metadata.
Metadata properties:
required cookies
: List of cookie category codes that will be always active, regardless of what the user selects.optional categories
: List of cookie category codes that are optional, that will only be active if the user explicitly consents, by clickingaccept all
button.buttons
: comma-separated list. accepted values:accept-all
,deny-all
Samples:
configuration:
banner displayed:
2. Simple consent banner and categories details
Shows the simple consent banner as the previous one, but also offers a dialog which displays detailed information of each of the categories of cookies the website uses, and allows users to select individually each category.
By default only the minimalistic consent banner is shown, but users can click a "more information" button that will display the dialog.
Word document:
First section has the content of the simple content banner.
In this case the only allowed metadata property is:
buttons
=accept_all | reject_all | more_info
The second and subsequent sections are only used in the detailed categories dialog.
It expects a first intro section with some explanation text that is displayed on top of the dialog.
The second and subsequent sections are considered to be cookie categories. And each of them need 2 metadata properties:
code
= code of the category that will be used by martech loadersoptional
= whether the category is optional or not.Samples
configuration
dialog displayed