Open
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
kptdobe
requested changes
Feb 22, 2024
feat: new banner design
* chore: centralize vars * fix: change link cursor * chore: reduce code footprint * chore: some doc * chore: typo
kptdobe
approved these changes
Mar 22, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 allcan 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 allbutton.buttons: comma-separated list. accepted values:accept-all,deny-allSamples:
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_infoThe 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
