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.
| 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.
Set up CookieBeam for California visitors
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.
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.
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.
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.
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.
Save, publish and test
Hit Save Settings, then Publish. Rule changes don't reach visitors until you publish. Then run the California test below.
<!-- 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:
<script type="text/plain" data-category="marketing"
data-src="https://example.com/ad-pixel.js"></script>Test your Squarespace site like a California visitor
- Open the site in a clean browser profile from California, or use a geo-simulated preview, and confirm the opt-out banner appears.
- Opt out of sale and sharing, reload the page, and check the Network tab. Advertising pixels shouldn't load.
- In a GPC-enabled browser, confirm
navigator.globalPrivacyControlistrue, load the site fresh, and verify that advertising tags never fire without any click. - 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.
Related guides and sources
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.






