Secure Privacy

How to Install Secure Privacy on Squarespace (Cookie Consent Setup Guide)

Running a Squarespace website without a proper cookie consent banner puts you at risk of GDPR and CCPA violations. Follow this five-step guide to add Secure Privacy's compliant cookie consent banner to any Squarespace Business or Commerce site in minutes.

SPT
Secure Privacy Team
5 min read ()

If you run a Squarespace website and collect any data from visitors — through analytics, contact forms, or embedded third-party tools — you are almost certainly required by GDPR, CCPA, or ePrivacy regulations to display a compliant cookie consent banner. Without one, your site may be exposing you to regulatory fines and eroding visitor trust before they even read your content.

Many Squarespace site owners try the built-in cookie banner first, only to find it lacks granular consent categories, geo-targeting, and the audit logs that regulators actually ask for. Others paste together free scripts that break on the next theme update. Neither approach gives you a defensible compliance record.

Secure Privacy is a dedicated cookie consent management platform built for exactly this problem. It auto-scans your cookies, generates a fully branded consent banner, records every visitor's consent decision, and keeps your policy documents current — all without touching your Squarespace theme files.

By the end of this guide you will have a live, fully compliant Squarespace cookie consent banner powered by Secure Privacy, installed in under five minutes via a single script tag.

Who Is This Guide For?

  • Squarespace site owners who need GDPR or CCPA cookie compliance

  • Designers and developers managing a client's Squarespace site

  • Anyone who has already created a Secure Privacy account and is ready to deploy the banner

Prerequisites

  • An active Secure Privacy account with your domain configured

  • A Squarespace site on the Business or Commerce plan (Code Injection is not available on Personal plans — see Troubleshooting below)

  • Admin access to your Squarespace account

Step 1 — Copy your Secure Privacy installation script

Log in to your Secure Privacy dashboard and navigate to the Installation page for the domain you want to activate. Copy the unique installation script shown there — this snippet is what connects your Squarespace site to your Secure Privacy consent configuration.

Step 2 — Open Squarespace Settings

Log in to your Squarespace account. In the left-hand sidebar, click the Settings icon (the cog/gear symbol) to open your site settings panel.

Step 3 — Navigate to Code Injection

Within Settings, scroll down to the Advanced section and click Code Injection.

Important: Code Injection is a premium feature available only on Squarespace's Business and Commerce plans. If you are on a Personal plan, you will not see this option. See the Troubleshooting section below for your options.

Step 4 — Paste the script into the Header section and save

In the Code Injection panel, paste your Secure Privacy installation script into the Header text area. Click Save to apply the changes. Placing the script in the header ensures it loads before any tracking or analytics scripts fire, which is required for a legally valid consent-before-load workflow.

Open your Squarespace site in a new private/incognito browser window. You should see your Secure Privacy cookie consent banner appear on first load. If it does not appear, clear your browser cache or check the Troubleshooting section.

What Happens After Installation?

Once the script is live, Secure Privacy will automatically:

  • Scan your Squarespace site for cookies and trackers and categorise them

  • Display your consent banner to visitors based on their location and the applicable regulation (GDPR, CCPA, LGPD, etc.)

  • Record each visitor's consent decision in a tamper-proof audit log

  • Block non-essential scripts from loading until consent is granted

You can customise banner appearance, languages, consent categories, and blocking rules at any time from your Secure Privacy dashboard — no changes to your Squarespace site are needed.

Troubleshooting

I can't find Code Injection in my Squarespace settings

Code Injection is only available on Squarespace Business and Commerce plans. If you are on a Personal plan, you will need to upgrade your Squarespace subscription to access this feature. Alternatively, contact Secure Privacy support to discuss other deployment options.

  • Make sure you clicked Save after pasting the script in Code Injection.

  • Test in a private/incognito window to rule out cached consent decisions.

  • Confirm the script in the Header field matches the one shown in your Secure Privacy Installation page exactly — no extra spaces or characters.

  • Check that your domain in the Secure Privacy dashboard matches your live Squarespace URL (including or excluding www).

This can happen if a third-party browser extension is blocking the Secure Privacy script. Test in a clean browser profile without extensions enabled to confirm the issue.

Frequently Asked Questions

If your Squarespace site uses any cookies or tracking technologies — including Google Analytics, Meta Pixel, or Squarespace's own analytics — and you have visitors from the EU, UK, California, or other regulated regions, then yes: you are legally required to obtain cookie consent before setting non-essential cookies. GDPR (EU/UK), CCPA (California), and similar laws all mandate this.

Is Squarespace GDPR compliant by default?

Squarespace includes a basic cookie notice, but it does not provide the granular consent categories, prior-blocking of non-essential scripts, or consent audit logs required for full GDPR compliance. A dedicated consent management platform like Secure Privacy is needed to meet those requirements.

Yes. With Secure Privacy, all you need to do is paste a single script tag into Squarespace's Code Injection header field — no theme editing or developer skills required. The entire banner configuration is handled inside the Secure Privacy dashboard.

You need at minimum the Squarespace Business plan to access the Code Injection feature used in this installation method. Code Injection is not available on the Personal plan.

The Secure Privacy script is lightweight and loads asynchronously, so it has minimal impact on your Squarespace page speed. Because it also blocks non-essential third-party scripts until consent is given, it can actually improve initial load performance for visitors who decline non-essential cookies.

Need more help?

Our privacy experts are here to guide you through complex regulations and find the right solution.

Contact Support

Related Articles

View all