How to install the cookie banner

Choose your website platform - we will show you step by step how to paste the snippet. If something is unclear, write to kontakt@consentboard.com.

Your snippet (paste in <head>)

<script id="ConsentBoardCmp" data-cb-id="YOUR_PUBLIC_ID">window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('consent','default',{ad_storage:'denied',analytics_storage:'denied',ad_user_data:'denied',ad_personalization:'denied',functionality_storage:'denied',personalization_storage:'denied',security_storage:'granted',wait_for_update:500});(function(){var I='YOUR_PUBLIC_ID';var P=/google-analytics|googletag|googlesyndication|adsbygoogle|pagead|doubleclick|connect\.facebook|hotjar|clarity\.ms|tiktok|linkedin|reddit|pinimg|criteo/i;function B(n){if(n&&n.tagName==='SCRIPT'&&!n.getAttribute('data-cb-mb')){var s=n.src||'';if(s&&P.test(s)){n.type='text/plain';n.setAttribute('data-cb-mb','1');}}}var ex=document.getElementsByTagName('script');for(var k=0;k<ex.length;k++)B(ex[k]);if(window.MutationObserver)new MutationObserver(function(m){for(var x=0;x<m.length;x++){for(var y=0;y<m[x].addedNodes.length;y++)B(m[x].addedNodes[y]);}}).observe(document.documentElement,{childList:true,subtree:true});var SR=['https://consentboard.com/cb-core.js?id='+I,'https://cdn.consentboard.com/cb-core.js?id='+I,'https://consentboard.com/uc.js?id='+I];var z=0;function L(){if(z>=SR.length)return;var s=document.createElement('script');s.src=SR[z++];s.onerror=L;document.head.appendChild(s);}L();})();</script>
โš ๏ธ IMPORTANT: The snippet MUST be the first tag in <head> - before GA, Meta Pixel, GTM, chat widgets. Do NOT use async or defer. โœจ Auto-update: snippet loads an external bootstrap from our CDN - any update reaches your site within โ‰ค5 min, no need to re-copy. ๐Ÿ›ก๏ธ Disaster tolerance: inline blocker keeps working even if our server is down. Plus 2-CDN fallback.

Choose your platform

๐Ÿ“ WordPress ๐Ÿ›๏ธ Shopify ๐ŸŽจ Wix โฌ› Squarespace ๐ŸŒŠ Webflow ๐Ÿท๏ธ Google Tag Manager ๐Ÿ“„ Static HTML โš›๏ธ React / Next.js

โฌ› Squarespace

  1. Squarespace admin โ†’ Settings โ†’ Advanced โ†’ Code Injection
  2. Paste snippet in Header field
  3. Save

โœ… How to verify it works

  1. Open your site in incognito mode (clean session, no saved consent)
  2. Cookie banner should appear in the center of the screen (or your chosen position)
  3. Open DevTools (F12) โ†’ Application โ†’ Cookies - before clicking consent there should be NO tracking cookies (_ga, _fbp, _hjid)
  4. Click "Accept all" - tracking cookies should appear, banner disappears
  5. After 5 sec a floating "Cookie settings" button appears (bottom-right) - you can change consent anytime

Common issues

Banner does not show up
1) Check if the snippet is before other <script> tags in <head>. 2) Check browser console (F12) - if you see "blocked by adblocker", use Pro plan + CNAME setup. 3) Check if you have a saved consent in cmp_consent cookie - clear it and refresh.
Banner shows but tracking scripts still load before consent
Snippet has async or defer - remove these attributes. Banner must load sync so MutationObserver can block subsequent scripts.
Audit says banner is compliant but client has tracking cookies
Inline scripts (code hardcoded on page, not from <script src>) - check if you have inline Meta Pixel or GA directly in HTML. ConsentBoard blocks such scripts by patterns - check GDPR audit in panel.
Banner does not show on iPhone Safari
Apple ITP blocks 3rd-party cookies. ConsentBoard banner does NOT use 3rd-party cookies (consent stored 1st-party), so it works. If client sees problem - they may have "Hide IP from trackers" + very strict Content Blocker - then Pro plan + CNAME proxy solves it.
Daily GDPR audit shows "cookies pre-consent" - what to do?
Check in panel the list of cookies detected before consent click. If they're from a different domain than yours (e.g. .youtube.com from embed) - banner should block YouTube iframe. If they're your own - may be PHP/Laravel session cookies - classify them as "necessary" in panel.

๐Ÿ› ๏ธ Don't want to do it yourself?

We will install ConsentBoard for you - free on the Starter plan. We take care of pasting the snippet on your site.

๐Ÿ”’ Your data stays safe - any access details are encrypted (AES-256-GCM) and stored in our PassBolt password manager, accessible only to our technical team.

๐Ÿ› ๏ธ Request installation

๐Ÿ’ฌ Need help?

Write to kontakt@consentboard.com - we reply within 24h (or priority for Pro plan).