Member-only story
Implement a Cookie Consent Notification Within Five Minutes
A free solution to the EU, GDPR, and California Cookie Laws
What is Cookie Consent?
Cookie Consent is a lightweight JavaScript plugin that alerts users to the use of cookies on your website.

It is designed to help you quickly comply with the EU, GDPR, and California cookie laws. Cookie consent is fast, free, and easy to use for everybody.
The European Union’s General Data Protection Regulation (GDPR) went into effect in 2018, establishing seven principles that should govern the collection of personal information:
- Lawfulness, fairness, and transparency
- Purpose limitation
- Data minimization
- Storage limitation
- Integrity and confidentiality (security)
- Accountability
Why Choose Cookie Consent?
- It is free and open source — you’re free to copy, modify and even sell the Cookie Consent. See our license.
- It’s super configurable. Choose your own colors, styles, type of compliance, text and more with a few clicks of the mouse.
- It’s by far the most popular consent project on the internet. Cookie Consent is seen over two billion times every month, across millions of websites.
Here’s what a standard cookie consent notification usually looks like.

Installation
Install cookie consent through npm:
npm install cookieconsent
Or through Yarn:
yarn add cookieconsent
Or through a CDN:
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>