Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Easy Cookie Law


Easy Cookie Law helps you to easily comply with the European cookie law. It shows a customizable notice to the user until he accepts or declines the use of cookies in your website.
The message, position, and style of this notice can be easily modified through the plugin menu.

This plugin is good for your SEO since it will not add any CSS stylesheet or Javascript file. Everything is inline and kept to a minimum (<2KB).

It is also totally compatible with any cache plugin since only JavaScript code is responsible checking if the user already accepted the use of cookies, to show and to hide the banner, without any use of PHP, so your websites can be cached to HTML without a problem.

If you use Google Tag Manager, you can put the required scripts on your website directly with this plugin.

For detailed information see Easy Cookie Law WordPress Plugin.


  • Easy Cookie Law Options Menu


  1. Upload ‘easy-cookie-law’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure the plugin throught Settings -> Easy Cookie Law


How does it work?

When a user visits your site, the plugin will check if this user has already accepted the use of cookies, (using a session cookie). If the user has not this cookie, a message will be shown (you can configure where, how and what will be shown). If the users keep surfing
in your web, now or within the next month, it means that he accepted the use of cookies in your website, so this message will not be shown again.

For detailed information see Easy Cookie Law WordPress Plugin.

Why am I not seeing the message?

Probably, you already have visited the site before, so you accepted the use of cookies and the plugin installed a cookie in your browser to know it. If you want to test if the plugin is working properly, try removing the cookies of your web browser or navigating in incognito mode.

For detailed information see Easy Cookie Law WordPress Plugin.

How do I block some scripts of loading or using cookies until cookes are accepted

If you are using Google Tag Manger, you just have to put the code on your website using our Plugin (go to Settings -> Easy Cookie Law).
If you are usiny any other scripts, you can wrap them within the JavaScript function ecl_is_cookie_accepted() like this:

        .. your JS Code here ..

Please, make sure you are calling this function somwhere after after the wp_head() WordPress function. For instance, you can use it within the <body></body> tags.

If this JavaScript code is not working or you prefer to use PHP code, you can also use this function within your theme:

<?php if(function_exists('ecl_is_cookie_accepted') && ecl_is_cookie_accepted()): ?>
    .. your JS Code here ..
<?php endif; ?>


13 Febbraio 2019
This plugin really helped us, not only with the cookies but also with the SEO of the site, since the load time of the website is not being influenced at all with this plugin.
Leggi tutte le recensioni di 4

Contributi e sviluppo

“Easy Cookie Law” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


Traduci “Easy Cookie Law” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • Fixed a minor JS Bug when leaving scripts in blank


  • Added option to decline cookies
  • Improved management of cookies, scripts and notice


  • Fixed bug on accepting on scroll


  • Added accepting cookies on scroll


  • Close notice without reloading


  • Added more styling options


  • Added textarea for custom styles


  • Added check of user roles
  • Fixed some PHP Warnings (Thanks to Łukasz Muchlado)


  • Fixed some small JavaScript bugs


  • Added support for Google Tag Manager
  • Added some translations


  • Bug fix on JavaScript
  • Refactoring of code
  • Link target option added


  • Minor JavaScript improvements


  • Bug fix on php version


  • Some minor bug fixes


  • Bugfix in output string (Thanks to Giomba)


  • Updated to WordPress v4.9


  • Updated to WordPress v4.6


  • Updated to WordPress v4.3


  • Updated to WordPress v4.2.1


  • First published version.