tarteaucitron.js logo

tarteaucitron.js

GDPR-friendly cookie manager that blocks third-party services until the visitor consents

Repository activity
  • Stars1k
  • Forks377
  • Open Issues2
License

MIT

Languages
  • JavaScript
  • CSS
tarteaucitron.js screenshot

About tarteaucitron.js

tarteaucitron.js is a GDPR-friendly cookie and tag manager for websites that must ask for consent before loading third-party services. It disables all services by default, shows a banner on the first page view and a small one afterward, and offers a panel where visitors allow or deny each service.

When a visitor clicks Allow, the matching service is loaded without reloading the page. A fallback system can show a link instead of a social button or a static banner instead of an ad. Consent is stored in a cookie for 365 days, and the script integrates with Google Consent Mode v2, Bing Consent Mode, and Piano.

The project was started by Amauri Cleuziou in 2013 and is licensed under MIT. It is added as a script you host yourself, with custom services, events, and translations configured in JavaScript.

Key features

  • All third-party services disabled by default
  • Per-service allow or deny panel
  • Loads a service on Allow without page reload
  • Google Consent Mode v2 and Bing Consent Mode
  • Consent stored in a cookie for 365 days

Details

First released
2013
License
MIT
Language
JavaScript
Consent
Cookie stored for 365 days
Distribution
npm package or self-hosted