Docs

Documentation

Everything you need to get a compliant cookie banner live — from the one-line install to platform guides, Google Consent Mode v2 and configuration. CookieBrain is one script tag, so most of this is short.

Quick start

Installing CookieBrain takes one line. Run a free scan to get your site set up, then paste this single script tag into the <head> of every page, replacing YOUR_SITE_ID with the ID from your dashboard:

index.html
<script src="https://cookiebrain.app/widget.js?id=YOUR_SITE_ID" async></script>

Works with — WordPress · Shopify · Webflow · Squarespace · Wix · any HTML site

That's the whole integration. The banner loads from the Cloudflare edge, blocks non-essential scripts until the visitor chooses, and starts recording valid consent immediately. There is nothing else to install, and nothing to update by hand.

Platform guides

The install is the same single script tag everywhere — only where you paste it changes.

WordPress

Add the script tag site-wide using a header-injection plugin or your theme's header.

  • Use a "header & footer scripts" plugin, or edit header.php in your theme.
  • Paste the tag just before </head>.
WordPress cookie consent guide →

Shopify

Add the tag to your theme layout so it loads on every storefront page.

  • Online Store → Themes → Edit code → theme.liquid.
  • Paste the tag inside the <head> section.
Shopify cookie consent guide →

Webflow

Use the site-wide custom code area so the banner appears on every page.

  • Project Settings → Custom Code → Head Code.
  • Paste the tag and publish.

Squarespace

Inject the tag through the site-wide code injection panel.

  • Settings → Advanced → Code Injection → Header.
  • Paste the tag and save.

Wix

Add the tag as custom code applied to all pages in the head.

  • Settings → Custom Code → Add Custom Code.
  • Place it in the Head, on all pages.

Custom HTML / frameworks

For a hand-built site or a framework, drop the tag in your base template head.

  • Add it once to your shared layout or index.html.
  • Works with Next.js, Astro, plain HTML and more.

Google Consent Mode v2

CookieBrain supports Google Consent Mode v2. When a visitor makes a choice, the banner updates the consent signals Google's tags read (such as analytics_storage and ad_storage), so Google Analytics and Google Ads respect consent without extra wiring on your side.

For a full walkthrough — including how Consent Mode interacts with Google Tag Manager — see our dedicated guide:

Configuration basics

You can tailor the banner from your dashboard without touching the script tag:

  • Colours & copy. Match the banner's colours, text and position to your brand.
  • Categories. Review the consent categories CookieBrain detects and adjust how each cookie is classified.
  • Geo-targeting. Show the appropriate experience by region, so EU visitors and others see what their rules require.
  • Languages. Serve the banner in multiple languages for international audiences.

Need help?

Can't find what you need here? Head to support — we're happy to help you get set up.

Get your snippet in sixty seconds

Run a free scan, customize your banner and copy your one-line install — no credit card required.

One line to install · works on any stack