Skip to main content
Back to Guides
Compliance5 min readBy Armin Zaribaf

Squarespace Cookie Banner for CCPA/CPRA: 2026 Setup

Squarespace's built-in cookie banner doesn't gate the advertising pixels you drop into Code Injection. This guide walks through adding a California opt-out that actually stops those tags and responds to Global Privacy Control.

California doesn't ask for an opt-in cookie modal. What the CCPA and its CPRA amendments actually require is harder to get right: a functioning opt-out of the sale and sharing of personal information, tags that respect that opt-out, and automatic handling of the Global Privacy Control browser signal. "Sharing" under the CPRA covers disclosing data for cross-context behavioral advertising, even when no money changes hands. That's what most ad pixels do the moment they fire. On Squarespace, those pixels typically live in Code Injection or the built-in analytics fields, and neither of them answers to the native cookie banner the way California's rules demand.

CCPA/CPRA requirements and where they live on Squarespace
RequirementWhat California expectsOn Squarespace
Opt-out link"Do Not Sell or Share My Personal Information", or the alternative "Your Privacy Choices" link, on every pageA footer link on every page, plus the consent tool's persistent link
Opt-out preference signalsTreat Global Privacy Control as a valid opt-out request, no extra clickHandled by the consent tool for scripts it controls
Sensitive dataA "Limit the Use of My Sensitive Personal Information" link if you use sensitive data beyond the permitted purposesApplies if you use scheduling, health or location features
MinorsOpt-in before selling or sharing data of consumers you know are under 16Member-area or form logic; a banner can't infer age
Re-askingWait at least 12 months before asking someone who opted out to opt back inA consent-tool setting

What Squarespace does and doesn't handle

Squarespace's native banner tells visitors about cookies and records a preference, but the third-party tags you add through Code Injection or the built-in marketing fields keep loading regardless. For a California opt-out to mean anything, the advertising tags have to stop when someone opts out. That means moving pixels out of Squarespace's built-in fields and into markup that a consent tool controls. The general Squarespace consent setup is covered in cookie consent on Squarespace.

Set up CookieBeam for California visitors

1

Publish your banner first

Build the banner in CookieBeam, set up your categories, and publish it to production so the loader has a configuration to serve. The quickstart walks through this.

2

Add the loader through Code Injection

Go to Settings › Advanced › Code Injection and paste the production loader at the very top of the Header box, before any other tag. Code Injection is a premium feature, so make sure your Squarespace plan includes it. Don't add async or defer. Disable the native cookie banner so visitors only see one prompt.

3

Apply the CCPA/CPRA preset

On the banner's Regional settings page, add a rule from the CCPA/CPRA framework preset. It targets California visitors with an opt-out banner in a bar inline layout at the bottom center of the page, with a preferences button that reads "Do Not Sell or Share My Personal Information" and opens the US opt-out panel. Enable the rule's Do-Not-Sell link option so a persistent link stays reachable after the first visit. If you serve visitors in other states with privacy laws, add the US Opt-Out States preset too. See regional rules.

4

Mark the tags that sell or share

Ad pixels and data-sharing tags go in the marketing category. Hardcoded scripts need inert markup (type="text/plain" with data-category) so CookieBeam can control them; see script blocking. In opt-out mode, these tags run by default and stop being activated once the visitor opts out.

5

Keep Consent Mode on

Turn on Google Consent Mode in the banner settings. It updates Google tags directly, and it's also the event that CookieBeam's vendor consent bridges listen to.

6

Save, publish and test

Hit Save Settings, then Publish. Rule changes don't reach visitors until you publish. Then run the California test below.

Code Injection Header
<!-- Squarespace: Settings > Advanced > Code Injection > Header (first line) -->
<script
  id="CookieBeam"
  src="https://cdn.cookiebeam.com/banner/PUBLIC_BANNER_ID/default/loader.js"
  type="text/javascript"
></script>

Gate the pixels you inject

Every advertising tag in Code Injection should be written as inert markup so CookieBeam controls when it runs. Under the opt-out model, the tag fires by default and is no longer activated once the visitor opts out or arrives with GPC enabled:

Code Injection Header
<script type="text/plain" data-category="marketing"
        data-src="https://example.com/ad-pixel.js"></script>

Test your Squarespace site like a California visitor

  1. Open the site in a clean browser profile from California, or use a geo-simulated preview, and confirm the opt-out banner appears.
  2. Opt out of sale and sharing, reload the page, and check the Network tab. Advertising pixels shouldn't load.
  3. In a GPC-enabled browser, confirm navigator.globalPrivacyControl is true, load the site fresh, and verify that advertising tags never fire without any click.
  4. Confirm the Do-Not-Sell link is still reachable after the first choice.

The cookie banner QA checklist covers the same checks for EU and UK visitors.

Frequently Asked Questions

Is Squarespace's cookie banner enough for CCPA?

Typically not if you're running third-party ad pixels, because those tags load regardless of what the native banner records. You need a consent tool that can actually stop them after an opt-out and handle GPC.

Where does a consent script go on Squarespace?

At the top of Settings › Advanced › Code Injection › Header, synchronous and before every other tag.

Do I need a Do Not Sell link if I only use Squarespace Analytics?

If you don't sell or share personal information, the opt-out link isn't required. Squarespace's own analytics on its own generally isn't considered sharing for cross-context advertising, but adding ad pixels changes the picture.

Can Squarespace honor Global Privacy Control?

Not for scripts you've added yourself, unless a consent tool reads the signal and gates those scripts accordingly. Test with a GPC-enabled browser to be sure.

Cookie consent on Squarespace covers the EU and GDPR side. For the law itself, see how to build a compliant Do Not Sell or Share link, Global Privacy Control explained and CPRA enforcement in 2025-2026. If you serve other states too, the US state privacy cookie banner checklist maps them all.

Primary sources: California Attorney General CCPA page, the California Privacy Protection Agency (regulations and enforcement decisions), and the Global Privacy Control specification.

This page summarizes the law as we understand it in October 2026 for website and cookie decisions. It isn't legal advice. Statutes, regulations and attorney general guidance change, so confirm the current text with counsel before relying on any threshold or date here.

7 min read

GPP, MSPA & US State Signals: A Publisher's Guide

The US Privacy String you built for CCPA was deprecated in January 2024. GPP, the US National string, and the MSPA replaced it, and getting the signal wrong can be a misrepresentation. Here's how the new US privacy signals move through the ad stack.

5 min read

Building a TCF CMP That Passes IAB Validation

What it takes for a Consent Management Platform to pass IAB Europe's TCF checks: a registered CMP ID, a cleanly decodable TC String, event-listener delivery, and encoding against the right GVL version.

9 min read

How to Migrate Your CMP Without Losing Existing Consent Records

A step-by-step technical guide to switching consent management platforms without losing consent records, triggering mass re-consent, or breaking Consent Mode. Covers export, category mapping, parallel runs, and zero-downtime migration patterns.