/pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Pressidium Cookie Consent

WordPress Plugin Version WordPress Plugin: Tested WP Version WordPress Plugin Rating

🍪 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.

Cookie consent plugin screenshot

Table of Contents

Setup

  1. Install Composer dependencies

    composer install
  2. Install npm dependencies

    npm install
  3. Build the plugin

    npm run build
  4. Upload the entire pressidium-cookie-consent folder to the wp-content/plugins/ directory

  5. Activate the plugin through the “Plugins” menu in WordPress

Features

⚙️ Fully customizable

Color picker screenshot

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.

🪶 Lightweight

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.

♿ Accessible

An a11y friendly plugin — fully accessible and WAI-ARIA compliant.

🌐 Translatable

Translations tab screenshot

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.

📱 Responsive

Fully responsive and mobile-friendly cookie consent banner and settings modal.

🙅 Block scripts

Blocked scripts tab screenshot

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.

🧹 Auto-clear cookies

Cookie tables screenshot

Automatically delete cookies when a user opts-out of a specific category inside cookie settings.

✋ Force consent

Block the user from interacting with the page until they consent to your cookie policy.

🔁 Re-consent

Ask users to consent again when you update your cookie policy.

📝️ Consent records

Consent Records tab screenshot

Record user consents to be able to provide proof of consent for auditing purposes.

🎛️ Floating settings button

Floating settings button screenshot

Add a floating settings button to your website that allows users to change their cookie preferences at any time.

🤖 Hide from bots

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.

🧩 Google Consent Mode (GCM) integration

Google Consent Mode screenshot

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.

⌨️ Control it programmatically

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.

Credits

License

GNU GPL v2 or later, check the LICENSE file.