---
title: "Squarespace Cookie Banner for CCPA/CPRA (2026)"
description: "Configure a working CCPA/CPRA opt-out on Squarespace with a Do Not Sell link, GPC support, Code Injection placement, and a testing checklist."
url: "https://cookiebeam.com/guides/squarespace-cookie-banner-ccpa-cpra-2026"
lang: "en"
last_updated: "2026-11-16T11:46:33.532Z"
---

# 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.

> **Tip: TL;DR**
>
> The CCPA covers for-profit businesses operating in California whose annual gross revenue exceeds the statutory threshold (inflation-adjusted), or that buy, sell or share the personal information of 100,000 or more California consumers or households, or that derive half their revenue from selling or sharing it. If you're covered: give visitors a way to opt out of sale and sharing, honor GPC without requiring a click, and make sure the opt-out actually shuts down the tags.

**CCPA/CPRA requirements and where they live on Squarespace**

| Requirement | What California expects | On Squarespace |
| --- | --- | --- |
| Opt-out link | "Do Not Sell or Share My Personal Information", or the alternative "Your Privacy Choices" link, on every page | A footer link on every page, plus the consent tool's persistent link |
| Opt-out preference signals | Treat Global Privacy Control as a valid opt-out request, no extra click | Handled by the consent tool for scripts it controls |
| Sensitive data | A "Limit the Use of My Sensitive Personal Information" link if you use sensitive data beyond the permitted purposes | Applies if you use scheduling, health or location features |
| Minors | Opt-in before selling or sharing data of consumers you know are under 16 | Member-area or form logic; a banner can't infer age |
| Re-asking | Wait at least 12 months before asking someone who opted out to opt back in | A 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](https://cookiebeam.com/guides/squarespace-cookie-consent-guide-2026).

## Set up CookieBeam for California visitors

### Step 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](https://cookiebeam.com/docs/getting-started/quickstart) walks through this.

### Step 2: Add the loader through Code Injection

Go to _Settings &rsaquo; Advanced &rsaquo; 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.

### Step 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](https://cookiebeam.com/docs/configure/regional-rules).

### Step 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](https://cookiebeam.com/docs/configure/blocking). In opt-out mode, these tags run by default and stop being activated once the visitor opts out.

### Step 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.

### Step 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`

```html
<!-- 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`

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

> **Warning: What California has actually enforced**
>
> The CPPA's 2025 enforcement actions against **Honda** and **Todd Snyder** both came down to consent-tool mechanics: an opt-out that collected more information than necessary, cookie choices that were easier to accept than decline, and in Todd Snyder's case, an opt-out that silently failed for weeks because the consent tool was misconfigured. A Squarespace site that shows the right link but keeps firing pixels after an opt-out has the same exposure. Test the opt-out itself, not just whether the banner appears.

## 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](https://cookiebeam.com/guides/test-cookie-banner-compliant-qa-checklist-2026) 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 &rsaquo; Advanced &rsaquo; Code Injection &rsaquo; 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.

## Related guides and sources

[Cookie consent on Squarespace](https://cookiebeam.com/guides/squarespace-cookie-consent-guide-2026) covers the EU and GDPR side. For the law itself, see [how to build a compliant Do Not Sell or Share link](https://cookiebeam.com/guides/do-not-sell-share-link-ccpa-guide-2026), [Global Privacy Control explained](https://cookiebeam.com/articles/gpc-global-privacy-control-explained) and [CPRA enforcement in 2025-2026](https://cookiebeam.com/articles/cpra-cppa-enforcement-2025-2026). If you serve other states too, the [US state privacy cookie banner checklist](https://cookiebeam.com/guides/us-state-privacy-cookie-banner-checklist-2026) maps them all.

Primary sources: [California Attorney General CCPA page](https://oag.ca.gov/privacy/ccpa), the [California Privacy Protection Agency](https://cppa.ca.gov/) (regulations and enforcement decisions), and the [Global Privacy Control specification](https://globalprivacycontrol.org/).

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.
