TermsBox
PricingBlog
LoginGet Started
PricingBlogLogin
Get Started
  1. Home
  2. Install guides
  3. Squarespace

Install the TermsBox Cookie Consent Banner on Squarespace

This guide shows you how to add the TermsBox consent banner to a Squarespace website using Code Injection. It takes about 5 minutes.

What you need

  1. A TermsBox account with a site already created.
  2. Your install snippet. You get it from the TermsBox dashboard:
    • Log in to TermsBox.
    • Go to Consent Banner in the left menu.
    • Open the Install tab.
    • Copy the snippet shown there. It already has your site id filled in.
  3. A Squarespace plan that allows Code Injection. Code Injection is available on Squarespace's paid plans (Business and higher, or the equivalent current plans). It is not available on the trial or the lowest Personal tier on some plans, so check your plan if you cannot find the option.

Your snippet looks like this, but with your own site id in place of YOUR_SITE_KEY:

<script src="https://termsbox.com/cmp/termsbox-cmp.js" data-site-id="YOUR_SITE_KEY" data-auto-block="on"></script>

Tip: always copy the snippet from your dashboard rather than typing it by hand. That way your real site id is included and correct.

Step by step

  1. Log in to Squarespace and open the site you want to add the banner to.
  2. In the left menu, click Settings.
  3. Click Advanced.
  4. Click Code Injection.
  5. Find the Header box (the first large text box on the page).
  6. Paste your TermsBox snippet into the Header box. Do not use the Footer box. The banner must load from the header so it can block trackers before they run.
  7. Click Save in the top left.

The code now runs on every page of your Squarespace site.

Verify it works

  1. Open your live website in a normal browser tab.
  2. Reload the page. You should see the cookie consent banner appear.
  3. Go back to TermsBox, open Consent Banner > Install, and click Verify Installation. TermsBox will visit your site's main URL and confirm the snippet is present. When it succeeds you will see a "Verified" status.

Troubleshooting

I don't see Code Injection in my settings. Code Injection needs a paid Squarespace plan. Upgrade your plan, then try again.

The banner does not appear.

  • Make sure you pasted the snippet into the Header box, not the Footer box.
  • Make sure you clicked Save.
  • Make sure you pasted the whole snippet, including the site id. If the data-site-id part is missing or empty, the banner will not work and you will not see an error.
  • Note: Code Injection does not run inside the Squarespace editor preview. View your actual live site.

"Verify Installation" says the script was not found.

  • Confirm your site is public, not in a locked or trial state that hides it.
  • Wait a minute after saving, then click Verify again.
  • Make sure you did not add async or defer to the snippet.

Do not change the snippet. Paste it exactly as copied. Do not add async or defer, and do not move it to the footer. The banner needs to load in the header, before your other scripts, to block trackers correctly.

View install guides for all platforms
TermsBox

Scan your website, auto-generate legal documents, add a consent banner, and stay compliant. One platform for everything.

Product

  • Cookie Scanner
  • Consent Banner
  • Cookie Policy Generator
  • Pricing

Generators

  • Privacy Policy Generator
  • Terms and Conditions Generator
  • EULA Generator
  • Disclaimer Generator
  • Return and Refund Policy Generator

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
GDPR
ePrivacy
CCPA
LGPD
Google Consent Mode v2
IAB TCF 2.2
© 2026 TermsBox. All rights reserved.