The easy way to E.U. “cookie law” compliance

In May, 2012 a new e-Privacy Directive (adopted in 2009) became law throughout the European Union. Know colloquially as the “EU cookie law” (though it also regulates Flash ‘cookies’ and HTML Local Storage) this sets out rules about when and, to a lesser extent, how a website visitor must be asked for permission before a cookie is set in their browser. Unfortunately, despite having years to plan and implement the new regulations, their introduction has been botched. With each member state left to interpret the rules as they see fit, the result is a hodgepodge of laws, guidelines and contradictory advice which neither meets the needs of webmasters or the users of their site. The end result has been that, so far, many companies appear to have decided that ignoring the law is the best and/or cheapest option, despite the fact that failure to adhere to the regulations  can result in a hefty fine – in the U.K. the Information Commissioner’s Office (ICO) have the ability to impose a penalty of up to £500,000 for non-compliance.

Should you decide that you do actually want to comply with the law, you’ll find that it doesn’t have to be difficult or time-consuming. There are plenty of ready-made solutions,  my own favourite being Cookie Control from Civic UK. This free, jQuery based library provides a clean, unobtrusive and attractive way to notify the user of what exactly you are planning to use cookies for and, optionally, to gain their permission. It provides a comprehensive selection of display options to suit your usage patterns and built-in support for geolocation using the geoPlugin service so that you can target only those with EU-based IP addresses. I particularly like the triangle icon option that sits in the bottom left hand corner of the screen – as Civic develop for many U.K. government agencies, it’s likely we will see it becoming a commonplace and recognisable icon that immediately alerts site visitors to cookie policy.

With it’s online configuration tool, it takes next to no time to integrate into your site(s) – depending on how many cookies your site is setting it will most likely take you less time to implement that it took me to write this blog post.

The Cookie Control configuration interface


The Civic UK site provides comprehensive instructions for deployment of Cookie Control and while this is a job for a developer, it’s no more difficult than implementing any other jQuery-based library or plugin. The only feature I would like to see added to the Civic site is some links to the library in action. For now though, you can find a minimal version of it on their own site at and a more comprehensive implementation at this public library site –

Bonus: it was developed in Scotland.