Search by

datawolves / cookieofficer

cookieofficer

CookieOfficer - Cookie banner adapted to GDPR, CCPA and other regulations. Google Consent Mode v2 integration. Automatic cookie scanning and blocking. Free plan available. Setup in minutes.

Package info

github.com/cookieofficer/typo3

Homepage

Documentation

Type:typo3-cms-extension

pkg:composer/datawolves/cookieofficer

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-12-03 21:30 UTC

This package is auto-updated.

Last update: 2026-12-03 23:10:47 UTC


README

This is the official TYPO3 extension for CookieOfficer, a consent management platform (CMP). It connects your TYPO3 sites to your CookieOfficer projects. You need a CookieOfficer account: there is a free plan for smaller sites, and paid plans can be tested free for 14 days.

The extension adds the CookieOfficer script at the very top of the head section on every page. The banner, the cookie scan, consent categories, languages and the consent log are managed in the CookieOfficer panel, so you change them there and the site picks them up without clearing the cache.

CookieOfficer cookie consent banner on a TYPO3 site

What the extension does on your site

  • adds the CookieOfficer cookie banner to every page of a connected site,
  • sets the Google Consent Mode v2 default state before Google tags (you can turn this off). In Advanced options you can set denied or granted for each signal and change wait_for_update,
  • matches the banner language to the language of the page (TYPO3 site languages),
  • checks the setup: it loads the home page of the site and tells you if the script is missing, runs after other scripts or the Consent Mode default state is missing,
  • gives you a Cookie declaration content element and turns any link with the address #cookieofficer-settings into a "Cookie settings" link,
  • shows a message in System Information while a site is not connected,
  • adds the rules the CookieOfficer script needs when the TYPO3 frontend Content Security Policy is turned on,
  • command line: typo3 cookieofficer:connect, cookieofficer:status and cookieofficer:disconnect.

What you manage in the CookieOfficer panel: banner look and texts in 71 languages, geo rules, the cookie scan and categories, the consent log with downloadable proof of consent and consent analytics.

Screenshots

Connect your site: paste the project ID in Sites > CookieOfficer

Setup status: the extension checks the CookieOfficer script on the site

Google Consent Mode v2 settings with advanced options per signal

Requirements

TYPO3 13.4 LTS or 14.3 LTS, PHP 8.2 or newer. Composer mode and classic mode are supported.

Installation

  1. Install the extension: composer require datawolves/cookieofficer (Composer mode) or from the TYPO3 Extension Repository in the Extensions module (classic mode).
  2. Open Sites > CookieOfficer in the TYPO3 backend (administrators only) and paste your project ID (format: co-xxxxxxxx) or the whole code from the Installation page of the CookieOfficer panel. With several sites, choose the site first: every site has its own project ID and settings.
  3. Done: the banner appears automatically on that site.

Cookie declaration and "Cookie settings" link

  • Cookie declaration: on your privacy policy page, add the Cookie declaration content element (CookieOfficer group in the new content element wizard). The cookie table comes from the CookieOfficer scan.
  • Cookie settings link: add a link with the address #cookieofficer-settings anywhere on the site, for example a page of type "Link" in your footer menu or a link in the rich text editor. The extension turns it into a link that opens the banner settings.

External services

This extension connects to CookieOfficer (https://cookieofficer.com), a service run by DataWolves. The service is required: without a CookieOfficer project the extension adds nothing to your site.

  • On every page of a connected site, the visitor's browser loads the CookieOfficer script from https://cdn.cookieofficer.com (the address contains your project ID).
  • On every page view, before the visitor decides, the script asks the service for the visitor's country (worked out from the IP address), so the banner can follow the geo rules set in the panel. It also sends a page view record with your project ID, the site host name and the banner language, and sometimes the page path (without the query string). The record contains no visitor identifier.
  • When the banner is shown, the script sends a banner display record with your project ID, the site host name and the banner language.
  • When the visitor makes a choice in the banner, the decision is sent to the service and stored in the consent log of your project.
  • On pages with the Cookie declaration content element, the visitor's browser also loads https://cdn.cookieofficer.com/declaration.js, which downloads the cookie list of your project from the service.
  • Like every web request, the requests above carry technical data such as the IP address and the browser user agent.
  • In the TYPO3 backend, when you save a project ID (also with typo3 cookieofficer:connect) and when you run the setup check, the extension asks https://cdn.cookieofficer.com whether a project with this ID exists. The request contains the project ID and, like every request TYPO3 makes, the TYPO3 user agent.
  • The setup check also loads the home page of your own site. That request does not go to the service.

Terms of service: https://cookieofficer.com/terms Privacy policy: https://cookieofficer.com/privacy-policy

Frequently asked questions

Where do I configure the banner?

In the CookieOfficer panel (https://app.cookieofficer.com), not in this extension.

Does the extension work with several sites?

Yes. The project ID and the settings are stored per TYPO3 site, so each site can use its own project.

The banner does not appear on a staging copy or a second domain

The banner is active only on the domains of your project (the main domain and the domains added on the Domains page of the CookieOfficer panel). On any other host the script stays passive. Add the domain in the panel or connect a separate project. The settings are stored in the database (table sys_registry), so a database copy from production to staging keeps the same project ID.

Google Consent Mode: where do I turn it on or off?

In two places that work together. The extension sets the default state (Settings, on by default). The banner sends the update after the visitor's choice when Consent Mode is enabled in the CookieOfficer panel (on by default). If you do not want Consent Mode, turn it off in both places.

How do I see what the banner does?

Open the site with ?co_debug=1 (Debug mode in Settings). The browser console then shows how the banner works, including Google Consent Mode.

How do I remove the extension?

  1. Delete or hide the Cookie declaration content elements. Without the extension, TYPO3 shows an error message in their place.
  2. Run typo3 cookieofficer:disconnect --all. It removes the settings of all sites and lists the pages that still have a Cookie declaration element.
  3. Remove the extension: composer remove datawolves/cookieofficer (Composer mode) or deactivate and remove it in the Extensions module (classic mode).

Deactivating the extension alone removes the banner from the site and keeps the settings, so after you activate it again the sites stay connected. Consents and the banner configuration stay in your CookieOfficer project.

Changelog

1.0.0

  • First release.
  • Connect in two steps: create an account or paste your project ID. You can paste the whole code from the panel; the extension picks out the ID and checks that the project exists.
  • The CookieOfficer script at the top of the head section on every page, with a fallback block for when the service is unreachable.
  • Google Consent Mode v2 default state before Google tags, with Advanced options: denied or granted for each signal and wait_for_update (all denied and 2000 ms by default).
  • Banner language from the TYPO3 site language.
  • Setup check: the extension loads the home page and checks that the script is there, runs before other scripts and the Consent Mode default state is in place.
  • Cookie declaration content element and a Cookie settings link (any link with the address #cookieofficer-settings).
  • Hiding the banner for logged-in administrators and a debug mode link.
  • Message in System Information while a site is not connected.
  • Content Security Policy rules for the TYPO3 frontend.
  • Command line: typo3 cookieofficer:connect, status and disconnect.
  • English and Polish. The Plus Jakarta Sans and IBM Plex Mono fonts (SIL Open Font License, licence files in Resources/Public/Fonts) ship with the extension, so nothing is loaded from Google Fonts.

License

GPL-2.0-or-later (see LICENSE). The fonts in Resources/Public/Fonts are licensed under the SIL Open Font License 1.1 (OFL-*.txt next to the files).