Troubleshooting

The most common situations, from the most frequent to the rarest, with what to check.

The banner does not show

In this order, check that:

  1. The configuration is published. The label next to the site name, in the dashboard, must read “Live”.
  2. You have not already chosen. After a choice, the banner does not come back: only the reopen button remains. Open the site in a private window.
  3. The domain matches. The banner is only served to the site’s declared domain, its subdomains and its extra domains. Another site reusing your line gets neither a banner nor records, and does not use up your quota. The browser console names the refused domain. Development addresses (localhost, 127.0.0.1, .local, .test) always show the banner, without recording consent.
  4. The line is really in the page. View the page source and look for /s/ followed by your ID. With a plugin, the Test the connection button in its settings checks this for you.
  5. The banner is not suspended. An account that stays over its plan has its banners suspended: the plugins’ connection test says so, and an alert shows at the top of the dashboard.

Two banners show

Another consent solution is still active: a WordPress plugin, a PrestaShop module, the built-in banner of Shopify, Wix or Squarespace. Turn it off: a site must have a single banner, otherwise visitors answer twice and nothing guarantees both follow the same choice. The scanner names the solution it finds.

A tracker still gets through

  • Is the service declared in Cookies & services, and has the configuration been published since? Automatic blocking only holds what is declared.
  • Is the Optooki script the first of the page? A script loaded before it runs before it can be held.
  • Is the tracker unknown to the catalogue? Hold it by hand with type="text/plain" and data-cm-category: see manual blocking.

Then run a scan again: the report says what is still set before consent.

My site uses a Content Security Policy

Allow the Optooki server address in script-src (loading the script) and in connect-src (recording consent). Nothing to add to style-src on current browsers: the banner uses constructed stylesheets, which CSP does not block, so no 'unsafe-inline'.

If your policy relies on nonces, put the nonce on the banner tag (nonce="…", or data-cm-nonce="…" if you cannot set the attribute). It is reused by the scripts the banner reactivates after consent.

I use a caching or optimisation plugin

Exclude the Optooki script from options that defer, delay or combine JavaScript (WP Rocket, LiteSpeed Cache, Autoptimize, Cloudflare Rocket Loader…): it must remain the first script of the page, loaded as is. The Optooki plugins act before pages are cached: a cached page already carries the banner.

My site is a single-page application (React, Vue…)

Add the script to the <head> of the main HTML file. The banner stays in place during navigation, and the JavaScript API lets you react to consent.

Sharing the choice across subdomains

In the site settings, set a cookie domain (for example .example.com): the choice made on www.example.com then also applies on shop.example.com.

Hiding the banner on certain pages

The site settings accept a list of paths (privacy policy, legal notice) where the banner does not open by itself, so that they can be read before choosing. The reopen button stays available there.

The scanner is blocked

If your site protects itself against bots (firewall, CDN, challenge page), allow the OptookiScanner user agent, or scan a staging site without protection. The scanner cannot log in to a password-protected site either.

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.