We've introduced a cookie consent notice banner as part of our commitment to user privacy and transparency. This feature is tracked under issue #44.
To manage user consent effectively, we've integrated the amp-consent extension into the default layout.
We've developed a granular cookie consent user interface (UI) that allows users to provide consent on a per-cookie basis. You can find the UI in the _includes/consent/granular-user-consent.html file.
We've crafted specific CSS styles for the granular cookie consent UI. These styles are located in the _includes/css/amp_consent.css file.
To ensure the CSS styles for the consent UI are loaded at the start of the page load, we've used the Jekyll include tag to import the amp_consent.css into the HEAD element of the default layout.
To make the consent UI immediately visible to users when the page loads, we've used the Jekyll include tag to import the granular-user-consent.html into the default layout just below the <body> tag.
Modifications
We've updated the default layout to make the amp-script extension mandatory. This modification is crucial for custom scripts that need to access the stored consent states from the local storage.
We've modified the code of page footer to allow setting the URL for the privacy policy page in the _config.yml file.
Documentation
We've updated the Config Guide page to document the Privacy Policy URL configuration feature.
We've updated the Changelog.md file to document the changes associated with this new version. This provides users with a comprehensive overview of the updates and improvements made in version 2.9.0.
New Features
We've introduced a cookie consent notice banner as part of our commitment to user privacy and transparency. This feature is tracked under issue #44.
To manage user consent effectively, we've integrated the
amp-consent
extension into the default layout.We've developed a granular cookie consent user interface (UI) that allows users to provide consent on a per-cookie basis. You can find the UI in the
_includes/consent/granular-user-consent.html
file.We've crafted specific CSS styles for the granular cookie consent UI. These styles are located in the
_includes/css/amp_consent.css
file.To ensure the CSS styles for the consent UI are loaded at the start of the page load, we've used the Jekyll include tag to import the
amp_consent.css
into the HEAD element of the default layout.To make the consent UI immediately visible to users when the page loads, we've used the Jekyll include tag to import the
granular-user-consent.html
into the default layout just below the<body>
tag.Modifications
We've updated the default layout to make the
amp-script
extension mandatory. This modification is crucial for custom scripts that need to access the stored consent states from the local storage.We've modified the code of page footer to allow setting the URL for the privacy policy page in the
_config.yml
file.Documentation