Security and privacy · Independent · 23 Oct 2026

AmauriC/tarteaucitron.js

Open-source JavaScript cookie consent manager for GDPR / RGPD. Customizable banner, service-level controls and Google Consent Mode v2 support.

← Security and privacy
tarteaucitron.js. Open-source cookie consent manager.

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.

Stars1.1k
LicenceMIT
Latestv1.37.0 (2026-10-15)checked 23 Oct 2026
Last code change2026-10-15
Written inJavaScript
Setup effort
2 / 5
Payoff
4 / 5
Good
  • 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.
Watch for
  • 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.
Replaces

Paid cookie consent services

Works well with

Google Analytics

Similar repositories
  • orestbida/cookieconsent5.7k stars

    A lightweight, dependency-free cookie consent plugin written in vanilla JavaScript.

Also reviewed on Repo Radar
  • 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.

Install
git clone https://github.com/AmauriC/tarteaucitron.js.git
cd tarteaucitron.js

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Infrastructure & Security › Security & Compliance › Privacy & Compliance.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.