EARN UP TO 50% COMMISSION WITH OUR RESELLER ACCOUNTS + REGULAR PASSIVE INCOME SIGN UP TODAY

Squarespace Platform

3 min read

Squarespace provides a Code Injection feature that lets you add custom scripts to the header of every page. This guide walks through how to install CookieScan on any Squarespace site.

Before you start

You will need:

  1. An active CookieScan subscription (view plans)
  2. Your banner installation code from the CookieScan dashboard (Cookie Banner → Install Code)
  3. A Squarespace Business plan or higher – Code Injection is not available on Personal plans
  4. Owner or Administrator access to your Squarespace site

The install code looks like this:

<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>

Replace YOUR-COOKIESCAN-ID with the code from your dashboard.

Method 1: Code Injection (recommended)

Squarespace's Code Injection is the cleanest way to add scripts site-wide.

Step 1 – Open Code Injection settings

  1. Log into your Squarespace site
  2. Click Settings in the left sidebar
  3. Click Advanced
  4. Click Code Injection

Step 2 – Paste into Header

  1. In the Header field, paste your CookieScan script tag:
    <script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script>
  2. Click Save at the top

Step 3 – Verify

  1. Open your site in a new incognito window
  2. The CookieScan banner should appear

Method 2: For Squarespace 7.1 with specific page needs

If you need to add CookieScan only to specific pages (not recommended for compliance, but sometimes required):

  1. Navigate to the page in Pages
  2. Hover over the page and click the gear icon
  3. Click Advanced
  4. In the Page Header Code Injection field, paste your CookieScan script tag
  5. Click Save

Important: For compliance purposes, cookie banners should appear on every page. Always use the site-wide Code Injection (Method 1) unless you have a specific reason to limit it.

Method 3: Install via Google Tag Manager

If you already use GTM on your Squarespace site:

  1. In your CookieScan dashboard, open Cookie Banner → Install Code
  2. Switch to the Google Tag Manager Install tab
  3. Copy your CookieScan ID
  4. In GTM, go to Templates → Search Gallery and add the CookieScan template
  5. Create a new tag using the template, paste your ID
  6. Set trigger to Consent Initialization – All Pages
  7. Submit and publish

Disable Squarespace's built-in cookie banner

Squarespace has its own basic cookie notice. Turn it off to avoid conflict:

  1. Go to Settings → Cookies & Visitor Data
  2. Toggle Cookie Banner to Off

Verify the installation

  1. Visit your site in a new incognito window
  2. The CookieScan banner should appear within a second
  3. Open DevTools (F12) → Network tab → filter by cookiescan
  4. You should see banner.cookiescan.com loaded

You can also use the Verify Installation step in your CookieScan dashboard's Install Code popup.

What happens next

Once installed, CookieScan handles the rest automatically:

  • Scans your Squarespace site and detects every cookie (including Squarespace Analytics, any integrations)
  • New cookies appear in Cookie Manager → Unclassified – categorise them
  • Blocks cookies until the user consents
  • Logs every decision in Consent Log

Troubleshooting

Banner not appearing

  • Verify you're on a Business plan or higher (Code Injection requirement)
  • Check the script is in the Header field, not Footer
  • Make sure you clicked Save at the top of the Code Injection page
  • Clear your browser cache and Squarespace preview cache

Squarespace banner still showing

  • Go to Settings → Cookies & Visitor Data and disable the built-in banner

Analytics not tracking after consent

  • Squarespace Analytics is built-in and loads regardless
  • Run a fresh scan in CookieScan Cookie Manager → Rescan Domain to detect Squarespace's own cookies
  • Categorise any Squarespace cookies found as Necessary or Statistics as appropriate

Full documentation

For detailed setup help, see the support guide linked in your CookieScan dashboard, or visit our support guides.