iubenda Cookie Solution

Descripció

This plugin is an All-in-One approach developed by iubenda that helps with generating the privacy policy text, the cookie banner and the blocking management of cookies.
This plugin works with the Iubenda Cookie Law Solution and allows to block the most common widgets and third party cookies to comply with Cookie Laws, particularly with the Italian cookie law implementation in mind.

  • The plugin automatically inserts the Iubenda code in the head of every page of the site
  • It allows to manually block all the remaining resources, without the need of direct intervention on the code
  • It handles the display of cookie banners and cookie policy, saving user preferences about the use of cookies
  • It displays a clean page (without banner) to users who have already provided their consent
  • It detects bots/spiders and serves them a clean page

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

  • Facebook widgets
  • Twitter widgets
  • Google+ widgets
  • Google AdSense
  • YouTube widgets
  • AddThis widgets
  • ShareThis widgets
  • Google Maps widgets

Some background information

If you have European users you will know the problem: you need to obtain consent for the usage of many types of cookies and you need to manage that consent somehow. Now even Google forces cookie consent onto users of Google AdSense, DoubleClick for Publishers, and DoubleClick Ad Exchange (and even Google Analytics in some cases). Time to get started with a cookie banner.
Iubenda and the Cookie Law Solution extension for WordPress help remove these complex tasks with a couple of clicks. This extension works with the Iubenda Cookie Law Solution, displays a cookie banner in 8 languages and saves consent for returning users.

Which languages does iubenda work in currently?

  • Anglès
  • Italià
  • Francès
  • Castellà
  • Portuguese (Brazilian)
  • Alemany
  • Holandès
  • Rus

Usage

How does this plugin work with a Facebook button, for example?

<!--IUB_COOKIE_POLICY_START-->
<script>
(function(d, s, id) {
 var js, fjs = d.getElementsByTagName(s)[0];
 if (d.getElementById(id)) return;
 js = d.createElement(s); js.id = id;
 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=808061959224601";
 fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!--IUB_COOKIE_POLICY_END-->

If there are HTML / IMG / IFRAME elements, you need to proceed in this way:

<!--IUB_COOKIE_POLICY_START-->
      <iframe src="...
      <img src="...
<!--IUB_COOKIE_POLICY_END-->

For articles, however, there’s a shortcode available:

[iub-cookie-policy]
[/iub-cookie-policy]

In case of continued browsing, the preferences of your users for the use of cookies will be set on “OK” to clear the banner and unlock the cookies. Moreover, banners and the blocking codes will not be delivered to subsequent visits by users who have already given their consent (and such preference will be updated at each subsequent visit for the future).

Bug reports

NOTE: This plugin is a beta and could in certain situations still have bugs. We encourage you to actively let us know about any issues here: Uservoice forum (support.iubenda.com)

  • Find a comprehensive guide and demo to the cookie law solution on our help blog https://www.iubenda.com/en/help/posts/1177

  • The best way you can help us is by providing as much information as possible, including the use of wp_debug https://codex.wordpress.org/Debugging_in_WordPress.

  • We will be very happy to receive feedback here: Uservoice forum

Captures

  • This screen shot shows the default banner on top of our test site testkada4.altervista.org/cookie-test/example2.html
  • When clicking on the cookie policy link, the user gets a view of the entire cookie policy, where they ultimately can give their consent
  • It's as simple as copy-pasting the code from iubenda into the plugin form.

Instal·lació

NOTE: This plugin is a beta and could in certain situations still have bugs. We encourage you to actively let us know about any issues here: Uservoice forum

  • Installation via WP.org: search in your WordPress plugin admin panel for “Iubenda Cookie Solution”, install it;
  • Once the plugin is installed and activated, go to the Admin Panel (Settings > Iubenda Cookie Solution) where you will be asked to paste the code into tht field that gets generated from your Iubenda account dashboard when you activate the cookie law kit for your privacy policy. For more information on how to activate the cookie law kit, see this article: https://www.iubenda.com/it/help/posts/680;
  • At this point the plugin will begin to show the banner on which displays 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 the YouTube video player and social widgets – such as the Facebook Like Box – on your site. Important note the scripts for Facebook, Twitter, G+, and YouTube iframe only get blocked automatically when generated from the server side (therefore processed by PHP via WordPress). Scripts that are added to the page via Javascript after page load cannot be blocked automatically;
  • The other scripts that install cookies for which the automatic block isn’t yet available can and should be “wrapped” using these comments:

      <!--IUB_COOKIE_POLICY_START-->
            <!--IUB_COOKIE_POLICY_END-->
    
  • 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.

PMF

Installation Instructions

NOTE: This plugin is a beta and could in certain situations still have bugs. We encourage you to actively let us know about any issues here: Uservoice forum

  • Installation via WP.org: search in your WordPress plugin admin panel for “Iubenda Cookie Solution”, install it;
  • Once the plugin is installed and activated, go to the Admin Panel (Settings > Iubenda Cookie Solution) where you will be asked to paste the code into tht field that gets generated from your Iubenda account dashboard when you activate the cookie law kit for your privacy policy. For more information on how to activate the cookie law kit, see this article: https://www.iubenda.com/it/help/posts/680;
  • At this point the plugin will begin to show the banner on which displays 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 the YouTube video player and social widgets – such as the Facebook Like Box – on your site. Important note the scripts for Facebook, Twitter, G+, and YouTube iframe only get blocked automatically when generated from the server side (therefore processed by PHP via WordPress). Scripts that are added to the page via Javascript after page load cannot be blocked automatically;
  • The other scripts that install cookies for which the automatic block isn’t yet available can and should be “wrapped” using these comments:

      <!--IUB_COOKIE_POLICY_START-->
            <!--IUB_COOKIE_POLICY_END-->
    
  • 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.
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?

Yes, right here: https://www.iubenda.com/en/help/posts/1177

Ressenyes

Alcuni migliiramenti possibili

Il plugin funziona perfettamente, l’unica piccola pecca, peraltro rilevata dall’analisi di Google è la dimensione delle parti cliccabili, che dovrebbero avere una simesione maggiore per essere fruibili in maniera più semplice.
A presto prr le 5 stelle

Perfetto

Al momento, con la release di gennaio il plugin funziona alla perfezione, sono stati risolti dei bug che si erano verificati in precedenza. Non ho proprio niente di cui lamentarmi ^_^

Semplice e funzionale

Il plugin è molto intuitivo e funziona correttamente. Assolve pienamente ai suoi compiti.
Nessun problema di compatibilità con wp 4.4.1

Perfetto

Con l’ultima versione (che mi è stata fornita in pre-release) sono stati risolti tutti i problemi presenti, quale il blocco che non permetteva l’esecuzione di alcuni script (vedi Backwpup).

Tutto perfetto 🙂

Nessun problema

lo uso su una decina di siti tutti aggiornati all’ultima versione di wp e adesso funziona tutto correttamente, inizialmente ho avuto dei problemi di rendering ma sono stati risolti immediatamente, 5 stelle!

Bad coding. Conflicts with cache and more

Installed since the first version to comply with Italian regulations.
Never worked without glitches, small and big. After heavy conflicts with Jetpack (aka WP core stuff) had to disable it hoping for a fix.
Re-enabled it a month ago, after seeing that a few bugfixes had been made.
Still the backend panel looks glitched as hell but decided to give it a try since Jetpack issues were resolved.

Had spent the last couple weeks panicking because my site was behaving VERY weird, ie. only half site was shown to people, site extremely slow, url not being accessible by Pagespeed, etc.
Was this plugin that wrought havoc. Again. Uninstalled. Forever.
Am including the JS in the header or footer via 3rd party script and works flawlessly.

You can’t make a plugin that blocks ANYTHING by default without letting people customize it (you know closed source is like a zombie?) AND without open integration with 3rd party scripts. Guys, the world doesn’t end with your code editor…

Col·laboradors i desenvolupadors

"iubenda Cookie Solution" és programari de codi obert. La següent gent ha contribuït en aquesta extensió.

Contribuïdors

Tradueix “iubenda Cookie Solution” a la teva llengua.

Interessats en el desenvolupament?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registre de canvis

1.14.3

  • New: Option to enqueue scripts in header or footer

1.14.2

  • New: Improved script options saving

1.14.1

  • 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

1.14.0

  • 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

1.11.1

  • 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

1.11.0

  • 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

1.10.21

  • Rolling back to 1.10.11

1.10.20

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

1.10.19

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

1.10.18

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

1.10.17

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

1.10.11

  • iub_no_parse parameter reintroduced
  • added XMLRPC control

1.10.10

  • French and Portuguese languages fixed when used with WPML

1.10.9

  • Further bugfixing

1.10.9

  • Further bugfixing

1.10.8

  • Fixed problems with WPML and with using the shortcode

1.10.7

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

1.10.5

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

1.10.4

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

1.10.3

  • 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

1.10.2

  • Fixed an encoding issue

1.10.1

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

1.10.0

  • 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

1.9.28

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

1.9.27

  • i18n friendly

1.9.26

  • Associate cookie policy for installation before/after WPML

1.9.25

  • Hiding E_NOTICE messages

1.9.24

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

1.9.19

  • new iframe src according to the new doc

1.9.18

  • bug on all iframe, suppressedsrc is not null anymore

1.9.17

  • added another url of google maps embed

1.9.16

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

1.9.15

  • include bug + google maps

1.9.14

  • Autoconvert iframe vimeo + facebook likebox

1.9.13

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

1.9.12

  • Add iub__no_parse get parameter to skip parsing page

1.9.11

  • Add iub__no_parse get parameter to skip parsing page

1.9.10

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

1.9.9

  • Bugs page 60000 chars

1.9.8

  • Added Google Maps & Google Adsense + better shortcode handling

1.9.7

  • minor bugfix

1.9.6

  • bugfix: custom banner now allowed

1.9.5

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

1.9.4

  • wp-admin blank page bug fix

1.9.3

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

1.9.2

  • G+ platform bug

1.9.1

  • Minor improvements

1.9

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

1.0

  • First plugin version.