Any website

For a hand-made site, a static site generator or an application: a single line, at the top of every page.

Copy the line

Open the site’s Installation tab in the dashboard: the line is at the top (marker 1), with your own ID. Copy it.

Installation page: script line to copy
Installation page: script line to copy

Paste it first

Put the line first in the <head> of every page, before your other scripts. In a shared template (header, layout), once is enough.

<head>
  <meta charset="utf-8">
  <script src="https://consent.optooki.com/s/YOUR-SITE-ID.js"></script>
  <!-- your other scripts after it -->
</head>

Link, cookie list and checking

Add a <a href="#optooki">Manage cookies</a> link in the footer, and <div data-cm-cookie-list></div> on your cookie policy (see Block trackers). Then open the site in a private window: the banner appears. For a single-page application or a content security policy, see troubleshooting.

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.