🍪 Pressidium Cookie Consent makes it easy to add a stylish, customizable cookie consent banner to your website and conditionally load third-party scripts (preferences, analytics, targeting, etc.) based on the user-selected preferences to help you comply with EU GDPR cookie law, CCPA, and similar regulations.
-
Install Composer dependencies
composer install
-
Install npm dependencies
npm install
-
Build the plugin
npm run build
-
Upload the entire
pressidium-cookie-consent
folder to thewp-content/plugins/
directory -
Activate the plugin through the “Plugins” menu in WordPress
Easily modify the cookie consent banner and settings modal text. Pick one of the built-in color presets to match your website’s aesthetic, or adjust the color of individual components via our convenient color picker. Choose from a variety of layouts, positions, and transitions directly from the WordPress dashboard.
The plugin is built on top of the Cookie Consent JS library by Orest Bida, a standalone vanilla JavaScript library with no third-party dependencies, that loads blazingly fast and won’t slow down your website.
An a11y friendly plugin — fully accessible and WAI-ARIA compliant.
Modify any text in the cookie consent banner and settings modal, and provide translations. Choose the language auto-detection strategy you prefer — either read the user’s browser language or read the markup of the current page to identify its primary language.
Fully responsive and mobile-friendly cookie consent banner and settings modal.
Control which scripts are loaded based on the user’s preferences. List the URLs of the scripts you’d like to block (both exact matches and regular expressions are supported) and prevent them from running until the user has given consent.
Automatically delete cookies when a user opts-out of a specific category inside cookie settings.
Block the user from interacting with the page until they consent to your cookie policy.
Ask users to consent again when you update your cookie policy.
Record user consents to be able to provide proof of consent for auditing purposes.
Add a floating settings button to your website that allows users to change their cookie preferences at any time.
Automatically parse the user agent to detect bots, crawlers, and webdrivers. If one is detected, you have the option to hide the cookie consent banner from them.
Integrate with Google Consent Mode (GCM) to adjust how Google tags behave based on the user’s consent preferences. Supports both Google tag (gtag.js) and Google Tag Manager (GTM) implementations.
Programmatically control the plugin. Conditionally show/hide the cookie consent banner and/or the settings modal, accept one (or more) cookie categories, erase cookies, load previously blocked scripts, etc.
- Built on top of the amazing Cookie Consent JS library by Orest Bida (licensed under MIT)
- Flag SVGs by blade-flags, which uses twemoji (licensed under MIT)
GNU GPL v2 or later, check the LICENSE
file.