Install the TermsBox cookie banner
Every guide installs the same one-line snippet. It must go inside your site's <head>, loaded synchronously (no async or defer), so it can block trackers before they fire. Your real site key is shown in the dashboard under Consent Banner, then Install.
<script src="https://termsbox.com/cmp/termsbox-cmp.js" data-site-id="YOUR_SITE_KEY" data-auto-block="on"></script>Pick your platform
- HTMLPaste the snippet into the head of your HTML files.Read the guide
- WordPressUse a free header plugin such as WPCode, no code edits needed.Read the guide
- ShopifyAdd the snippet to theme.liquid in your live theme.Read the guide
- WixAdd the snippet under Settings, then Custom Code (Premium plan required).Read the guide
- SquarespacePaste the snippet into Code Injection under Advanced settings.Read the guide
- WebflowAdd the snippet to Head Code in your Project Settings.Read the guide
- ReactAdd the snippet to index.html in Create React App or Vite.Read the guide
- Next.jsLoad the script in your root layout with the next/script component.Read the guide
- Vue / Angular / SveltePaste the snippet into the shared HTML file for Vue, Angular, or SvelteKit.Read the guide
- Google Tag ManagerLoad the snippet through a Custom HTML tag with a Consent Initialization trigger.Read the guide
- OtherFramer, Ghost, Carrd, Bubble, and other builders with custom code support.Read the guide
Don't have a TermsBox account yet? Learn about the consent banner or scan your site for free to get your own install snippet.