Optooki

By optooki

0+ active installationsVersion 1.0.0

GDPR cookie consent banner with tracker blocking, Google Consent Mode v2 and consent records, managed from your Optooki dashboard.

Description

Optooki is a hosted consent management platform, operated in France (https://optooki.com). Create an account, design the banner and declare your cookies in the Optooki dashboard; the plugin loads the banner on your site and holds trackers until your visitors consent.

The plugin is free and complete: it has no premium version and no locked feature. It needs an Optooki account. A free plan covers one small site (1,000 consents a month, no time limit); paid plans add sites and monthly consents. On the free plan, the preference center shows a discreet “Powered by Optooki” text, without a link; paid plans do not show it. The plugin itself adds no credit or link to your site.

Banner

  • Five layouts (box, bar, floating island, centered modal, side panel), each in three sizes, with light, dark or automatic theme.
  • “Accept all” and “Reject all” buttons of equal weight, as recommended by European data protection authorities (CNIL guidelines).
  • Preference center with one switch per category: preferences, analytics, marketing.
  • Available in English, French, German, Spanish and Italian.
  • Accessible: keyboard navigation, focus management, screen reader labels, 44 px touch targets on mobile.

Tracker blocking

  • Common WordPress trackers are held until consent: Google Analytics (gtag), Meta Pixel, Hotjar, Microsoft Clarity, LinkedIn Insight and TikTok Pixel.
  • Embedded YouTube and Vimeo videos are replaced by a placeholder until the visitor accepts the matching category.
  • Add your own scripts with the optooki_blocked_scripts filter.

Integrations

  • Google Consent Mode v2, built in.
  • WP Consent API: choices are shared with compatible plugins (WooCommerce, Site Kit and others).
  • Suggested text for your privacy policy, in Settings > Privacy.

Consent records

Each choice is recorded on your Optooki server with its date, the categories accepted or refused and the banner version. Records can be searched and exported as CSV from the dashboard, to prove consent during an audit. The server only accepts records sent from the domain declared for the site in the dashboard, or one of its subdomains, so another website reusing your script cannot inflate your statistics.

Shortcodes

  • [optooki_preferences]: a “Manage cookies” button (attributes label and class).
  • [optooki_cookie_list]: the table of cookies by category, for your cookie policy.
  • A custom menu link pointing to #optooki also opens the preference center.

External services

This plugin is the WordPress connector of the Optooki service, operated by Milkywi (France) at https://optooki.com. It needs an Optooki account to work; the server address is https://consent.optooki.com. The plugin sends nothing until you enter the server URL and the site ID in Settings > Optooki.

Once configured, the following requests go to the server URL you entered, and to no other address:

  • Banner script. Every public page loads the banner script from https://YOUR-SERVER/s/YOUR-SITE-ID.js, and the banner then reads its published configuration from the same server. Like any file request, this sends the visitor’s IP address, user agent and the page address to the server.
  • Consent records. When a visitor accepts, rejects or changes their choices, the banner sends a record to https://YOUR-SERVER/v1/consents: a random consent identifier, the categories accepted or refused, the banner version and language, the page address, whether the browser sent a Global Privacy Control signal, and the user agent. The server stores a truncated IP address (last byte of IPv4 removed, last 80 bits of IPv6 removed), never the full address.
  • Connection test. When an administrator clicks “Test the connection” on the settings page, WordPress requests https://YOUR-SERVER/v1/public/sites/YOUR-SITE-ID/config. No visitor data is sent.

The plugin itself sets no cookie, includes no tracking and contacts no other service. The banner stores the visitor’s choice in a first-party cookie named cm_consent.

Optooki service: terms of service, privacy policy, data processing agreement. Records are hosted in France.

Third-party services named in the code (held, never contacted by the plugin)

The file includes/class-optooki-frontend.php contains a list of address patterns of common tracking scripts and video players. The plugin never loads, calls or sends any data to these services, and it adds none of them to your site. It only compares the scripts and video frames already present in your pages (added by your theme, another plugin or yourself) against this list, and holds the matching ones until the visitor accepts the matching category. If the visitor accepts, the browser then loads that script or video as it would without this plugin, and the service receives what its own script collects (usually the IP address, user agent, page address and its own cookies), under its own terms. If the visitor refuses, the script or video is never loaded.

  • Google Analytics and Google Tag Manager (Google LLC), patterns googletagmanager.com/gtag and google-analytics.com: audience measurement, held until “analytics” is accepted. Terms of service, privacy policy.
  • Meta Pixel (Meta Platforms, Inc.), pattern connect.facebook.net: advertising measurement, held until “marketing” is accepted. Terms of service, privacy policy.
  • Hotjar (Hotjar Ltd, a Contentsquare company), pattern static.hotjar.com: behavior analytics, held until “analytics” is accepted. Terms of service, privacy policy.
  • Microsoft Clarity (Microsoft Corporation), pattern clarity.ms: behavior analytics, held until “analytics” is accepted. Terms of service, privacy policy.
  • LinkedIn Insight Tag (LinkedIn Corporation), pattern snap.licdn.com: advertising measurement, held until “marketing” is accepted. Terms of service, privacy policy.
  • TikTok Pixel (TikTok), pattern analytics.tiktok.com: advertising measurement, held until “marketing” is accepted. Terms of service, privacy policy.
  • YouTube (Google LLC), patterns youtube.com, youtu.be and youtube-nocookie: embedded videos, replaced by a placeholder until “marketing” is accepted. Terms of service, privacy policy.
  • Vimeo (Vimeo, Inc.), pattern vimeo.com: embedded videos, replaced by a placeholder until “preferences” is accepted. Terms of service, privacy policy.

Installation

  1. Install and activate the plugin.
  2. Create an account at https://app.optooki.com, add your site, customize the banner and publish it.
  3. In WordPress, open Settings > Optooki and enter the server URL (https://consent.optooki.com) and the site ID, shown in the “Installation” tab of the dashboard.
  4. Click “Test the connection”. The banner now shows on your site.

FAQ

Do I need an Optooki account?

Yes. The banner, its settings and the consent records live in your Optooki account; the plugin connects WordPress to it. A free plan is available for one small site.

Is there a premium version of the plugin?

No. The plugin is the same for every plan and receives every update. What a plan changes is in your account: number of sites, consents per month, the “Powered by Optooki” mention.

What happens if my site exceeds its plan?

You receive an email at 80 % and 100 % of the monthly quota, and the banner keeps working. After two full months over the quota, a paid subscription moves to the next plan. A free plan has its dashboard restricted, then, thirty days later without a plan change, its banner is suspended: no banner is shown and every tracker held back by the plugin stays blocked, so visitors remain protected. Choosing a suitable plan restores the banner within minutes.

How do I add a “Manage cookies” link?

Use the [optooki_preferences] shortcode (attributes label and class), or add a custom link pointing to #optooki in a menu.

How do I show the list of cookies in my cookie policy?

Insert the [optooki_cookie_list] shortcode. The table is built from the services declared in the dashboard.

How do I block another script?

Use the optooki_blocked_scripts filter:

add_filter( 'optooki_blocked_scripts', function ( $map ) { $map['cdn.example.com/tracker.js'] = 'analytics'; return $map; } );

Available categories are necessary, preferences, analytics and marketing.

Can I disable the banner on a page?

Yes, with the optooki_is_active filter, which receives and returns a boolean.

I use a caching or optimization plugin (WP Rocket, Autoptimize, LiteSpeed Cache…)

Exclude the Optooki script (it carries the data-optooki attribute) from the “defer”, “delay JavaScript execution” and “combine JavaScript files” options. It must stay the first script of the page, loaded synchronously: this is what lets it block trackers before they run.

Consent records do not appear for my staging site

Records are only accepted from the domain declared for the site in the Optooki dashboard and its subdomains (www.example.com and shop.example.com both match example.com). A staging copy on another domain shows the banner normally but records nothing. Create a separate site in the dashboard for it if you want to keep its records. The same applies to multisite networks and domain mapping: each WordPress site that uses its own domain needs its own Optooki site.

My site uses a Content Security Policy

Allow your Optooki server in script-src (the banner script) and connect-src (consent records). Nothing is needed in style-src on current browsers: the banner uses constructed style sheets, which are not subject to it. If your policy relies on nonces, add the nonce to the banner tag with the core wp_script_attributes filter; the banner reuses it for the scripts it re-enables after consent.

Is the plugin translated?

The admin screens ship in English and French. The banner itself is translated from the Optooki dashboard, in English, French, German, Spanish and Italian.

Screenshots

Changelog

1.0.0

  • First public release.
  • Banner script printed with the WordPress script API, at the very top of the head.
  • Admin screens in English, with a French translation.
  • Suggested privacy policy text.
  • Settings removed from every site of a network when the plugin is deleted.