Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

TacJS

Security covered Under active development 1,952 sites

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).

Drupal 10–11

Ask your assistant about TacJS

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

5 tracked projects depend on this one

Activity

Tracked releases
17
Tracked since
Jun 2023
Latest release
4 months ago
Releases (12 mo)
1 ▼ from 14
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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