v2.9.0 (2024-03-08)
What's Changed
- Implementation of Cookie Consent Notice by @chriskyfung in #56
✨ Features
-
Added ability to customize the URL for the privacy policy page via the
_config.yml
file. -
Implemented a granular Cookie Consent Notice (#44):
- Integrated the
amp-consent
extension to manage user consent. - Developed a comprehensive cookie consent interface that allows for detailed consent management based on specific purposes.
- Implemented CSS styles for the consent interface.
- Incorporated the consent interface into the default layout, ensuring its visibility upon page load.
- Enabled the consent UI when
consent: true
is set in the_config.yml
file. - Provided an option to remove the
data-ampdevmode
attribute from the custom script by settingconsent_dev_mode=false
. - Implemented blocking of AddThis, Disqus, Google Analytics, and Google AdSense until user consent is obtained.
- Integrated the
🔧 Chore
- Extended the import of the
amp-script
extension to include cases where the consent UI is enabled, allowing custom scripts to access consent states stored locally. - Updated to the latest official Google Analytics 4 support.
Full Changelog: v2.8.0...v2.9.0