Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

TacJS

1,723 sites Security covered Drupal 8–11
View on drupal.org

This module helps your website comply with European cookie laws using the tarteaucitron.js library. It allows you to manage consent for third-party services like YouTube and Google Analytics, displaying a banner and a panel for users to accept or deny them. The module records user consent and can load services only after permission is granted.

Comply to the European cookie law using tarteaucitron.js.

Features

  • Manage dialog: Cookie name, Banner position, Accept All button, ...
  • Add services: Youtube, Google Analytics, Google Tag Manager, ...
  • Edit texts: Hello! This site is transparent and lets you choose the 3rd party services you want to allow
  • Get records: IP address and the services together with a timestamp.

DONATE TO OUR COLLECTIVE

What is tarteaucitron.js?

tarteaucitron was initially a simple script for Amauri personal blog (in 2013), a few months later, the Github repository is opened and tarteaucitron is now reliable and recognized.

The european cookie law regulates the management of cookies and you should ask your visitors their consent before exposing them to third party services.

Clearly this script will:

  • Disable all services by default,
  • Display a banner on the first page view and a small one on other pages,
  • Display a panel to allow or deny each services one by one,
  • Store the consent in a cookie for 365 days.

Bonus:

  • Load service when user click on Allow (without reload of the page),
  • Incorporate a fallback system (display a link instead of social button and a static banner instead of advertising).

Version 7.x

  • Breaking change: starting with version 7.x the tarteaucitron library has been removed from the module and must now be installed manually. Check below for details.

Extensions

TacJS can be easily extended using hooks.

Here is a list of external modules allowing better integration of third-party modules with TacJS.

Installation

Version 7.x

The tarteaucitron javascript library have been moved out of the module and must be installed manually.

  • You can download the library here and unzip its content in the web/libraries/tarteaucitronjs folder of your Drupal installation.
    The module expects the libraries files to be available in this exact location.
  • Or you can install it with composer using the following command: composer require npm-asset/tarteaucitronjs:1.21.0.

Resources

Credits

Currently maintained by people at Fullwave and people at Bordeaux Metropole.
All initial development was made by asmaa khalfi (asmaakhalfi).

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

4 tracked projects depend on this one

Activity

Tracked releases
15
Tracked since
Nov 2024
Latest release
2 months ago
Releases (12 mo)
1 ▼ from 14
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
8.x-6.8 Stable 8–11 Jun 2, 2026
7.0.1 Stable 10–11 Jul 29, 2025
7.0.0 Stable 10–11 Jul 1, 2025
7.0.0-rc3 Pre-release 10–11 Jun 20, 2025
7.0.0-rc2 Pre-release 10–11 Apr 22, 2025
7.0.0-rc1 Pre-release 8–11 Apr 8, 2025
8.x-6.7 Stable 8–11 Apr 2, 2025
7.0.0-beta5 Pre-release 8–11 Apr 1, 2025
7.0.0-beta4 Pre-release 8–11 Mar 31, 2025
7.0.0-beta3 Pre-release 8–11 Mar 30, 2025
7.0.0-beta2 Pre-release 8–11 Mar 29, 2025
7.0.0-beta1 Pre-release 8–11 Mar 26, 2025
7.0.0-alpha2 Pre-release 8–11 Mar 20, 2025
7.0.0-alpha1 Pre-release 8–11 Mar 19, 2025
8.x-6.6 Stable 8–11 Nov 6, 2024