iubenda – Cookie and Consent Solution for the GDPR & ePrivacy


This plugin is an All-in-One approach developed by iubenda, which includes functionalities of two powerful solutions (see below) that help to make your website GDPR and ePrivacy compliant. The plugin lets you automate the implementation of ePrivacy (Cookie Law) and GDPR requirements by providing a fully customizable cookie banner, blocking scripts, and by managing all aspects of cookie consent. It also allows you to record, review, and maintain comprehensive GDPR records of consent for your web-forms.

Cookie Solution

This plugin drastically reduces the need for direct interventions in the code of the site by integrating with iubenda’s Cookie Solution. It provides a fully customizable cookie banner, dynamically generates a cookie policy to match the services in use on your site, and, fully manages cookie-related consent – including the blocking of the most common widgets and third-party cookies before consent is received – in order to comply with the GDPR and ePrivacy.

Key features:

  • The plugin automatically inserts the iubenda code in the head of every page of the site
  • Allows you to automatically or manually block scripts that can install cookies prior to consent, without the need of direct intervention on the code
  • Allows you to autodetect and limit prior-blocking and cookie consent requests only to users from the EU – where this is a legal requirement – while running cookies scripts normally in regions where you are still legally allowed to do so.
  • Asynchronously re-activates cookie scripts once consent is collected.
  • Handles the display of the cookie banner and cookie policy, allowing you to fully customize the banner to match the look and colors of your site if needed
  • California Consumer Privacy Act (CCPA) Support
  • Saves user preferences about the use of cookies and displays a clean page (without banner) to users who have already provided their consent
  • Integrates with IAB’s Transparency and Consent Framework (TCF)
  • Allows you to provide you users with granular, per-category preference control (e.g. basic functionalities, experience enhancement, targeting & advertising)
  • Compatible with Google’s Accelerated Mobile Pages (AMP)
  • Features an easy-to-use interface for entering custom scripts and iframes
  • Detects bots/spiders and serves them a clean page so that your SEO efforts are never compromised

The plugin is currently capable of automatically detecting and blocking the following scripts:

  • Google Analytics
  • Google Maps
  • Google AdSense
  • Google ReCaptcha
  • Google Site Search
  • Google Tag Manager
  • Google oAuth
  • Google+ widgets
  • Twitter widgets
  • Facebook widgets
  • Facebook Comments
  • YouTube
  • Vimeo
  • Linkedin widgets
  • ShareThis widgets
  • Instagram widgets
  • AddThis widgets
  • Pinterest widgets
  • PayPal widgets
  • Disqus
  • Optimizely
  • Neodata
  • Criteo
  • Outbrain
  • Headway
  • Codepen
  • Freshchat
  • Uservoice
  • AdRoll
  • Olark
  • Segment
  • Kissmetrics
  • Mixpanel
  • Pingdom
  • Bing
  • Elevio

Consent Solution

Maintaining valid records of consent is a vital part of privacy compliance in general, and it is specifically required under the GDPR. These records should include a userid, timestamp, consent proof, record of the consenting action, and the legal documents available to the user at the time of consent, among other things. This plugin is THE most complete solution for recording, sorting and maintaining GDPR records of consent. The plugin also boasts built-in compatibility with WordPress comment form, Contact Form 7 and WP Forms plugins for your convenience, but can be manually integrated with any type of web-form and can even store consent proofs for consents collected offline (e.g in-store sign-ups) via WP media upload.

Key features:

  • The plugin detects and identifies all supported forms that are embedded in the website
  • It’s auto-compatible with and allows super easy mapping of Contact Form 7, WP Forms, WordPress comment, Mailchimp for WordPress, Germanized for WooCommerce and WooCommerce checkout forms
  • It allows manual integration with any type of web-form
  • For each consent, track the form/wording the user was prompted with
  • Flexibly upload any form of proof of consent or legal notice, including a PDF if consent was collected offline
  • It provides a high granularity: map individual form fields, exclude fields (like password inputs), add legal notices available at the time of consent collection, indicate double opt-in, set preferences and more
  • REST HTTP API and JS SDK, to give you total control and how and when consent is stored
  • Store multiple preferences for each user (e.g. if you have multiple newsletters or opt-ins)
  • Features an easy-to-use interface for entering custom scripts and iframes
  • It provides API input field for quick and easy activation

Some background information

If you potentially have any European users, you must comply with laws like the GDPR and ePrivacy. These laws are precise in their requirements and technical implementation can be pretty complicated. We’ve tried to make this process as painless as possible for website and app owners with our suite of compliance software solutions.
Our Cookie and Consent Solution plugin for WordPress simplifies and manages these compliance requirements within a few clicks. This extension works with the iubenda Cookie Solution and Consent Solution.

Which languages does iubenda work in currently?

  • Engleză
  • Italiană
  • Franceză
  • Spaniolă
  • Portuguese (Brazilian)
  • Germană
  • Olandeză
  • Rusă

Capturi ecran

  • It's as simple as copy-pasting the code from iubenda into the plugin form.
  • Simply enter you API key and click on autodetect to see all forms eligible for mapping.
  • The visual configurator lets you fully customize the look and feel of your banner, wording, and consent collection options.
  • When clicking on the cookie policy link, the user gets a view of the entire cookie policy, where they ultimately can give their consent.
  • IAB Transparency and consent framework integrated.
  • IAB Transparency and consent framework integrated.


  • Search in your WordPress plugins admin panel for “iubenda Cookie and Consent Solution”, install it;
  • Once the plugin is installed and activated, go to the Admin Panel → iubenda menu where you can select either the Cookie Solution or Consent Solution (depending on which you’d like to set up first).
  • For the Cookie Solution, you will be asked to paste your script into that field – the script is generated from your iubenda account dashboard when you activate the solution. For more information on how to activate the Cookie Solution, see this article (https://www.iubenda.com/en/help/1177-cookie-solution-getting-started#banner).
  • At this point the plugin will begin to show your banner on which displays the legal text, the consent options and your cookie policy (link) to users who visit the site for the first time. No need for other configurations;
  • Furthermore, the plugin automatically recognizes and blocks cookies that get installed via an extensive list of services such as the YouTube video player, social widgets (e.g the Facebook Like Box) etc. on your site. The full list is included in the “details” above.
  • Important note: Scripts can only be automatically blocked when generated from the server side (therefore processed by PHP via WordPress). Scripts that are added to the page via Javascript after page load must be blocked manually. Thankfully, this is fairly easy to do via the Custom Scripts field in the plugin console. Simply enter the custom script or iframe sources you’d like to block within the field, and click on the save changes button. You can find details, examples and further information here.
  • If you’d like to manually block a specific script using a manual “wrap” method, you can use the following:

    <iframe src="…
    <img src="…
  • For elements installed directly within WordPress posts (as opposed to elements integrated at the template level – example footer.php) there are shortcodes available:
  • In case you’re querying WordPress via API, you can disable our plugin by using the iub_no_parse=true URL parameter, like this: www.example.com/api/get_recent_posts?iub_no_parse=true (http://www.example.com/api/get_recent_posts?iub_no_parse=true).
  • For the Consent Solution, you will need to paste in your Consent Solution API key. Once you’ve activated the Consent Solution in your iubenda dashboard, you can find your public API key in your dashboard (https://www.iubenda.com/en/dashboard) at [Your website] > Consent Solution > Embed).

Întrebări frecvente

Where can I find help?

You can find a dedicated support forum thread here Uservoice forum or we’re happy to answer at info@iubenda.com.

Do you have more guidance, or a demo?

Here’s a quick video on what the cookie banner looks like and how you can configure it. More details on how to fully set up the Cookie Solution for wordpress here.

Here’s a quick look at the Consent Solution dashboard. More details on how to fully set up the Consent Solution for wordpress here .

Bug reports

The best way you can help us is by providing as much information as possible, including the use of wp_debug.
We will be very happy to receive feedback here: Uservoice forum


Citește toate cele 201 de recenzii

Contributori și dezvoltatori

„iubenda – Cookie and Consent Solution for the GDPR & ePrivacy” este un software open-source. La acest modul au contribuit următoarele persoane.


„iubenda – Cookie and Consent Solution for the GDPR & ePrivacy” a fost tradus în 4 locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „iubenda – Cookie and Consent Solution for the GDPR & ePrivacy” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări


  • Bugfix: save CF7 Consent


  • Support WP 5.9
  • Set Skip parsing default to false
  • Add filter after parsing forms to allow others to extend the Cons forms


  • Bugfix: restrict recaptcha field in ConS


  • Bugfix: Pagination into the consent solution tab


  • Disable automatic block on page builder pages


  • Disable CS on Divi builder page


  • Cast preferences field into boolean in WPForms.
  • Fix preference field not saved in CF7.
  • Integrate with Germanized for WooCommerce in ConS.
  • Allow only the mapped forms in ConS.
  • Allow mapping the ConS forms without specifying the preferences field.


  • Fix sub sub domain of generated AMP file.
  • Add settings anchor in plugin page


  • Tweak: Disallow using custom CSS in AMP


  • Fix: Track the selected checkboxes into wpforms


  • Integrate with Mailchimp to add it in woo-commerce checkout form.
  • Stop parsing scripts in Divi page builder


  • Fix field mapping in Cons forms


  • Fix comptability with PHP 8.0.2
  • Update WP support to 5.7


  • Save Cons for non Ajax forms in WPForms
  • Fix saving consent in CF7


  • New: Use the new check consent endpoint
  • Fix: Regenerate AMP files on plugin update
  • New: Support WPRollback on plugin update


  • Fix: Avoid overriding the purposes attr if it was set


  • New: Use the new check consent end point


  • Fix: purpose evaluation for iframes blocking


  • Fix: ConS saves the wrong terms & conditions legal_notice


  • Tweak: Support WP 5.6


  • Fix: Check script type before getting content in GTM


  • Fix: Allow banner customization in AMP
  • Tweak: Add alert about lack of permissions on templates folder
  • Tweak: Add GA to per-purpose blocking support
  • Fix: Add per-purpose on inline script tags


  • Fix: Move the FB connect to experience enhancement
  • Tweak: Add Google GPT to per-purpose blocking support in engines


  • Add action (Hook) before rendering the source form
  • Change the AMP consent href


  • Fix: Woocommerce custom theme support
  • Fix: Detect changes on WPforms


  • Tweak: Add Google GPT to per-purpose blocking support
  • Fix: admin.js ready method deprecation


  • Fix: admin.js ready method deprecation


  • TCF v2 Support


  • TCF v2 Support


  • Security Fix: limit url sanitize to http protocols


  • Security Fix: limit url sanitize to http protocols


  • Fix: AddThis purpose category


  • Fix: Configuration regular expression issue in some edge cases


  • Fix: Error on AMP configuration during install in some edge cases
  • Fix: Invalid www detection during AMP configuration generation process
  • Fix: Regex for iubenda script url in AMP configuration
  • Tweak: Added noindex for generated AMP configuration file


  • Fix: Multiple consent forms per page support
  • Fix: WP Forms checkbox field compatibility
  • Tweak: AMP consent geolocation support


  • Fix: Undefined notice during plugin update


  • New: Per-purpose script blocking support
  • New: „Reject” button support
  • New: Google AMP compatibility option
  • Tweak: Improved regular expression on per-purpose feature detection
  • Fix: Safari unrecognized expression on CSS wildcards


  • New: Multilingual support from AMP


  • Tweak: Block tracking code from WP AMP plugins


  • New: Google AMP compatibility option


  • Tweak: Improved regular expression on per-purpose feature detection
  • Fix: Safari unrecognized expression on CSS wildcards


  • New: Per-purpose script blocking support
  • New: „Reject” button support


  • Fix: initialize iubenda CS on POST requests not working
  • Tweak: iubenda generic menu icon switched to iubenda logo


  • New: Jetpack tracking blocking support
  • Fix: add_submenu_page and add_menu_page called incorrectly in WP 5.3


  • New: Introducing iubenda Consent Solution integration
  • Tweak: Simple HTML Dom update to 1.9


  • New: Introducing WooCommerce checkout form field mapping compatibility


  • New: Introducing wildcard support for scripts and iframes


  • New: Option to initialize iubenda CS on POST requests
  • Tweak: Update Cookie Solution and Consent Solution copy


  • New: Introducing iubenda Consent Solution integration
  • Tweak: Simple HTML Dom update to 1.9


  • New: Introducing a way to skip specific script parsing
  • Fix: Google ReCaptcha with Contact Form 7 initialization issue
  • Fix: Improved handling of iubenda script HTML
  • Tweak: Support links update


  • Fix: Google ReCaptcha loading issue with Contact Form 7
  • Tweak: Improved Youtube and Google Maps script blocking


  • Fix: iubenda script tags removed when Jetpack is active


  • Fix: Skip parsing engine when scripts blocking is disabled
  • Tweak: Update iubenda logo


  • New: Option to block custom scripts and iframes
  • Tweak: Update and extend the list of blocked scripts including Google Site Search, Google oAuth, Linkedin widgets, PayPal widgets, Freshchat, Uservoice
    , AdRoll, Olark, Segment, Kissmetrics, Mixpanel, Pingdom, Bing and Elevio


  • Tweak: Update and extend the list of blocked scripts including Pinterest, AddThis, Disqus, Optimizely, Neodata, Criteo, Outbrain, Headway and Codepen


  • Tweak: Update and unify iubenda parsing engine
  • Tweak: Polylang Pro support


  • Fix: iubenda code field removing HTML tags on save
  • Tweak: Adjusted the script blocking regex in shortcode


  • New: Option to select iubenda menu position
  • Tweak: iubenda faster class regex update
  • Tweak: Enable style tag in iubenda code field
  • Tweak: Changed default parser method


  • New: iubenda_initial_output filter hook


  • Fix: repository issues breaking the update


  • New: Option to delete all plugin data upon deactivation
  • Fix: Code script attributes stripped from default code block
  • Fix: Updated plugin help links
  • Fix: Italian language files not loading properly


  • New: i18 support
  • New: Polylang support
  • Fix: Multiple classes no longer being added to script tags
  • Fix: Buffering action hooks adjustments
  • General rewrite using WordPress coding standards
  • Turned into OOP


  • New: Created a new option that disables the plugin on RSS feeds
  • New: Improved the control that checks if the request content type is HTML
  • Fixed an issue with the banner script
  • Fixed a series of conflicts with UTF-8 special characters caused by the experimental parsing engine


  • New: Introduced a MUCH FASTER experimental parsing engine (visit the plugin options and select the experimental parsing engine)
  • New: Created a new option that allow users to enable/disable the parsing engine and to select the parsing engine between stable and experimental
  • New: Created a new option that filters the output buffer level to get only the first level ()
  • Fixed a series of conflicts with AJAX requests, which were conflicting with Contact Form 7, BackWPUp and other plugins
  • Added filter that only activates the plugin when the Content Type is text/html, enabled by default
  • Loads of bug fixes and speed improvements


  • Rolling back to 1.10.11


  • Hotfix: moved „is_user_logged_in” method control after the “template_redirect” hook.


  • Fixed a series of conflicts with AJAX requests, which were conflicting with Contact Form 7 and other plugins


  • More bugs fixed
  • The content-type restriction option is now on by default


  • Added filter that only activates the plugin when the Content Type is text/html
  • Loads of bug fixes and speed improvements


  • iub_no_parse parameter reintroduced
  • added XMLRPC control


  • French and Portuguese languages fixed when used with WPML


  • Further bugfixing


  • Further bugfixing


  • Fixed problems with WPML and with using the shortcode


  • Further work on resolving any conflicts with other plugins
  • Fixed a problem with the Media library


  • Reverting the parsing method to 1.9.19, slower but more stable


  • Fixed compatibility with the Yoast SEO plugin (and possibly others)
  • Fixed preference saving after update from 1.9.19


  • Fixed the WPML activation, which now detects the language of the embedding code and places it in the right tab
  • The first tab when WPML is activated is now activated automatically
  • The iubenda shortcode has been improved to be more flexible


  • Fixed an encoding issue


  • Fixed a bug that forced users to re-insert their cookie law code


  • New: Multi-language support with WPML integration
  • New: AdSense auto-matching/blocking has been redone and now works properly
  • New: Addthis and Sharethis are now also automatically blocked
  • Loads of small fixes and improvements


  • Fixed some bugs about i18n, created .pot files for translations. Now is true i18n friendly. Tested.


  • i18n friendly


  • Associate cookie policy for installation before/after WPML


  • Hiding E_NOTICE messages


  • skip parsing if XML-RPC request
  • skip parsing if is admin page
  • added multilanguage


  • new iframe src according to the new doc


  • bug on all iframe, suppressedsrc is not null anymore


  • added another url of google maps embed


  • skip parsing page if bot/crawler + added checkbox to autoparse (or not) the page if the user have already given the consent


  • include bug + google maps


  • Autoconvert iframe vimeo + facebook likebox


  • Now the plugin use iubenda.class.php + fix bug on it.


  • Add iub__no_parse get parameter to skip parsing page


  • Add iub__no_parse get parameter to skip parsing page


  • Another adsense script blocked, another fix on simple html dom


  • Bugs page 60000 chars


  • Added Google Maps & Google Adsense + better shortcode handling


  • minor bugfix


  • bugfix: custom banner now allowed


  • no refresh page needed to activate scripts inside IUB tags.


  • wp-admin blank page bug fix


  • G+ platform bug, typo: _iub_cs_activate_inline vs _iub_cs_activate-inline


  • G+ platform bug


  • Minor improvements


  • Improved parsing without regex
  • No parsing if the user have already given the consent


  • First plugin version.