As you may already know, cookies can perform a number of useful tasks such as recording your visitor IP address, logging personal settings or track user behaviours from page to page. Since the inception of the 2002 ePrivacy Directive, also known as ‘The Cookie Law’, some webmasters placed simple banners or popups stating that cookies are sent with a simple consent button for users to click. Fast-forward to 25th May 2018 with the birth of the General Data Protection Regulation (GDPR) and updated ePrivacy Directive (ePR), the quick and dirty methods of sending cookies without warning site visitors are no longer acceptable.

The team at CJT have eased the process of adding a cookie consent script on your website. And not only made it easy, but also made it easy to customise to your website theme and colours. Thanks to the team at InSights and a number of other developers (see below in the Credits), you are able to add a cookie consent script with absolute ease – check out what you can do below:

There are even a number of advanced features to help with full GDPR compliance, including:

Consent My Cookie is a lightweight JavaScript plugin for alerting users about the use of cookies on your website.

CJT has made it super simple to import into your website with just a few clicks. It will automatically add them to three code blocks, where you can customise the settings, modify the CSS, and change the main Consent My Cookie script itself. We have provided instructions below so follow carefully.

Free Download

Steps

  1. Click and download the consent-my-cookie.zip file above
  2. If your browser or operating system automatically unzips the file, please compress it back into a .zip file
  3. Go to the Import / Export feature of CSS & JavaScript Toolbox PLUS.  If you do not own CJT PLUS, then grab your copy here: CSS & JavaScript Toolbox PLUS
  4. Click the Import tab
  5. Upload the consent-my-cookie.zip file
    1. For the code block called Consent My Cookie, go to the Assignment Panel and select the Aux tab. Click the checkbox called Entire Website and then click Save
    2. Repeat the steps above for the Consent My Cookie – CSS code block (i.e. select the Aux tab and click Entire Website). Click Save
    3. Repeat the steps above for the Consent My Cookie – JS code block (i.e. select the Aux tab and click Entire Website). Again click Save
  6. Refresh your website and then view the result

Additional Notes

Credits

Cookie Consent v3
Alex Morley-Finch – JavaScript
Piiu Pilt – JavaScript
Oliver Emberton (@oliveremberton) – a couple of lines of CSS, maybe

Cookie Consent v2
David Ball (@drball) – CSS / themes
Adam Hutchinson (@adjohu) – JavaScript