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:
- An active CookieScan subscription (view plans)
- Your banner installation code from the CookieScan dashboard (Cookie Banner → Install Code)
- A Squarespace Business plan or higher – Code Injection is not available on Personal plans
- 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
- Log into your Squarespace site
- Click Settings in the left sidebar
- Click Advanced
- Click Code Injection
Step 2 – Paste into Header
- In the Header field, paste your CookieScan script tag:
<script src="https://banner.cookiescan.com/js?id=YOUR-COOKIESCAN-ID"></script> - Click Save at the top
Step 3 – Verify
- Open your site in a new incognito window
- 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):
- Navigate to the page in Pages
- Hover over the page and click the gear icon
- Click Advanced
- In the Page Header Code Injection field, paste your CookieScan script tag
- 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:
- In your CookieScan dashboard, open Cookie Banner → Install Code
- Switch to the Google Tag Manager Install tab
- Copy your CookieScan ID
- In GTM, go to Templates → Search Gallery and add the CookieScan template
- Create a new tag using the template, paste your ID
- Set trigger to Consent Initialization – All Pages
- Submit and publish
Disable Squarespace's built-in cookie banner
Squarespace has its own basic cookie notice. Turn it off to avoid conflict:
- Go to Settings → Cookies & Visitor Data
- Toggle Cookie Banner to Off
Verify the installation
- Visit your site in a new incognito window
- The CookieScan banner should appear within a second
- Open DevTools (F12) → Network tab → filter by
cookiescan - You should see
banner.cookiescan.comloaded
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.