Back to the help center

Getting Started

Direct Script Install Checklist

Copy-paste install with best practices for speed and compliance

The fastest way to add GetCookies is a single script tag in <head>. Follow this checklist for a clean, compliant install.

1) Add the loader script

Place this in <head> and swap YOUR_DOMAIN_ID:

<!-- GetCookies - Cookie Banner -->
<script src="https://app.getcookies.co/api/v1/widget/loader.js"
        data-domain-id="YOUR_DOMAIN_ID"></script>

2) Put it first, without async

  • Make it the first script in <head>, above Google Tag Manager and gtag, so the Consent Mode defaults are set before any Google tag starts.
  • Don't add async or defer: the loader is small, cached by the browser, and loads the banner itself in the background.

3) Verify it’s working

  • Open an incognito window.
  • Confirm the banner shows.
  • Check DevTools → Network: tracker scripts should be delayed until consent.
  • Use the Meta Pixel Helper / Tag Assistant to confirm tags wait for consent.

4) Common gotchas

  • Wrong Domain ID → no banner.
  • Script in <body> → trackers may fire before consent; keep it in <head>.
  • Theme caches → purge cache/CDN after adding the snippet.

5) When to pick another method

  • If most trackers live in GTM and you want Google Consent Mode v2, use the GTM template.
  • Hard-coded scripts and GTM together need no other method: the loader holds back known trackers wherever they are, including tags GTM adds. Mark scripts it does not recognise with data attributes.

Still stuck?

Email [email protected] with your domain and what you tried. Signed-in customers can also open a ticket from the dashboard.