Drupal

The module adds the banner to every page of the public site, including pages served from Drupal’s cache, and holds known trackers until consent.

Compatibility: Drupal 10.3 and later, Drupal 11

Free, included in every plan. Download optooki-drupal.zip

Before you start

Create the site in the Optooki dashboard, set up the banner and publish it: the plugin shows the latest published version. The getting started guide covers it in five minutes.

Installation

  1. Copy and enable the module

    Unzip optooki-drupal.zip into web/modules/custom/ (the optooki folder appears there). In Extend, search for “Optooki”, tick it (marker 1) and click Install.

    Extend page, Optooki module ticked
  2. Connect the site to Optooki

    Configuration → System → Optooki: paste the server URL and the site ID, found in the Installation tab of the Optooki dashboard (marker 2), save, then click Test the connection (marker 3). The result shows at the top of the page (marker 1).

    Optooki configuration in Drupal, successful connection
  3. Check on the site

    Open your site in a private window: the banner appears. If it does not, see troubleshooting.

    The Optooki banner on a Drupal site

What the plugin does

  • The banner first in the <head> of every public page, before any other script, never in the administration.
  • Google Analytics, Meta, Hotjar, Microsoft Clarity, LinkedIn and TikTok held until consent, even when added by another extension or by the theme. Can be turned off.
  • YouTube and Vimeo videos in your content replaced by a placeholder until consent.
  • A “Manage my cookies (Optooki)” block to place in the footer (Structure → Block layout).

Button and cookie list

In a page or a post, write [optooki_preferences] for a “Manage cookies” button (attributes label and class), and [optooki_cookie_list] on your cookie policy for the table of cookies, up to date with every publication. A menu link to #optooki also reopens the preferences.

Update, uninstall

For a new version, replace the web/modules/custom/optooki folder with the one from the new archive, then clear the caches (Configuration → Performance). Updates are free, on every plan. Uninstalling (Extend → Uninstall) removes the module and its settings.

In the same section : Install

Your cookie banner, ready before your next coffee.

Create your account, customise the banner and add one line of code. Free for one site, no credit card required.