Ready to get started?Download WordPress

Plugin Directory

EU Cookie Law Compliance

Plugin to help you to make your wordpress installation to comply to the new cookie regulations in the EU.

What does it do?

It will help you make your website to comply to the new EU regulations that make you to ask approval for storing cookies.

Does it automatically disable cookie usage in WordPress?

No, it is just a tool to help you out. You should use the settings pages in the backend to set up javascript commands and functions to act when cookies are enabled or disabled. The Zafrira support team can help you develop custom made scripts. Please contact us for the appropiate rates.

Can i see what the visitors click?

Yes, a table is generated that will keep track of the clicks. This is also meant as a prove of what your visitor clicked in case of a discussion.

Google Analytics campaign tracking, how to?

When tracking campains using querystring values in your website URL's (such as utma, utmb and utmc) the plugin will automatically parse through those values. If you are missing functionallity that you would normally use, please open an issue on the cookie compliance support forum.

Google Analytics event tracking, how to?

To track an event, you would normally use the google analytics push function. If you replace this with the compliance.gapush function it will automatically use the activate Google Analytics communication channel. For example:

compliance.gapush(['_trackEvent', 'MyEvent', 'What Happened', 'What was chosen', 1]);

What is the user set that cookies are not allowed in the browser?

In this case the question will not be asked. Based on the possibillity to store cookies the message will be shown. When not able to store cookies, there is no use in asking it.

What is the EU Cookie Law?

Essentially the EU Cookie Law is the EU e-Privacy Directive that is set to come into action in 2012 and what it means is that you have to get your visitors informed consent before placing a cookie on their machine. Here is a link to the ICO website detailing the law. More information can also be found on the Wikipedia.

The original text of the law can be found on the EUR-Lex (see article 5).

Is it just cookies?

No, also Flash cookies and HTML5 local storage.

Do i need to have this for all cookies that I store?

No, essential cookies that are used to for example store a login session are essential. Those cookies are not used for tracking your customer but just to keep the login session alive. In this case the cookie is allowed without asking permission first. When you store cookies to track your visitor, your visitor should allow you this first. Basicly you are able to determine if your visitor is returning from a previous session with such cookie.

Are cookies from advertisements on my website also part of the new law

Yes, everything you provide from your website is part of the EU law.

My server is outside the EU, for example in the U.S., do i still need to ask permission?

Yes, the law basicly aimes on the location of the visitor. So the location of the hosting does not matter.

When i activate the plugin and the user makes a choice, it will set a cookie. Why?

To not annoy your visitor with constant pop-ups 2 types of cookies can be made by the plugin:

  • cookie_compliance: this cookie contains a 0 (zero) or 1 (one). Zero stands for denied and One for accepted.
  • session cookie (used for google analytics when deny option is chosen)

This type of cookie is needed to let your site function, a website where on every page you will get the same popup asking the same question is not functioning well. That's why we believe this is a ok cookie by law.

Known bugs in this plugin, upcoming updates:

  • When plugin is enabled in combination with Polylang pages will return with a 404 not found fixed in version 1.1.0
  • Plugin does not function in combination with the WPML plugin fixed in version 1.1.1
  • Event and campaign tracking is not possible when cookies are enabled fixed in version 1.1.2
  • Sometimes every pageview counts as a new visitor fixed in version 1.1.2
  • Visitor locations in cookie-less Google Analytics show the location of the server fixed in version 1.1.3

Requires: 3.0.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-11-23
Downloads: 16,279


3 stars
3.9 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,2,2