
In simple English
This tool puts a cookie consent banner on your website. Visitors can click to accept or refuse tracking scripts before they run. It helps you meet privacy laws like the GDPR. You add the code files to your server and configure them in JavaScript. There is no software cost for the open-source version, but you must set it up yourself.
What it is
A free JavaScript library that blocks tracking scripts, analytics, and embedded videos until the visitor grants consent. It includes support for Google Consent Mode v2 and custom service integrations.
What it is good for
Solo builders who need to add a compliant cookie consent banner to a website without paying for a monthly subscription service.
- Free and open-source under the MIT licence.
- Supports Google Consent Mode v2 and major analytics platforms out of the box.
- Includes built-in placeholders for blocked videos and social widgets.
- Requires manual JavaScript configuration and script tag adjustments.
- Does not automatically block scripts loaded by third-party plugins or tag managers without manual setup.
- Maintenance falls entirely on you to keep rules updated as privacy laws change.
Paid cookie consent services
Google Analytics
- orestbida/cookieconsent5.7k stars
A lightweight, dependency-free cookie consent plugin written in vanilla JavaScript.
- smallstep/certificates9.0k stars
A certificate authority you run yourself, for machines the public internet cannot reach.
- michelp/pgsodium614 stars
A PostgreSQL extension that brings libsodium's encryption functions into SQL, with a root key the database cannot read back.
- pgaudit/pgaudit1.7k stars
A PostgreSQL extension that records what was done to the database, in the database's own log.
git clone https://github.com/AmauriC/tarteaucitron.js.git cd tarteaucitron.js