Add a GDPR & CCPA compliant cookie consent banner to your Squarespace site with CookieChimp. Install via Header Code Injection.
Add a GDPR, ePrivacy and CCPA compliant cookie consent banner to your Squarespace site. CookieChimp installs through Squarespace’s built-in Code Injection — no theme edits required.
Replace abc123 with your website's unique CookieChimp ID.
2
Add the snippet via Code Injection
Log into your Squarespace dashboard.
Navigate to Website → Pages in the main menu.
Expand the Utilities (or Website Tools) section and select Code Injection.
Paste the CookieChimp snippet into the Header section. This ensures the script loads in the <head> of every page.
Click Save at the top of the page.
The CookieChimp script needs to be the first script in the <head> section so it can block other scripts before they run and set cookies without consent. If other scripts are added before, they may set cookies and other storage items before consent is granted.
3
Disable Squarespace's built-in cookie banner
Squarespace has a built-in cookie banner that will conflict with CookieChimp. Turn it off:
Go to Settings → Cookies & Visitor Data.
Disable the Squarespace Cookie Banner.
You’ll now use CookieChimp as your single source of consent.
4
Block scripts & cookies
To stay compliant with GDPR and other privacy regulations, you need to actively block non-essential scripts and cookies until the user gives consent. See our Scripts Management Section for full details.
Common third-party tools on Squarespace include Google Analytics, Facebook Pixel, and chat widgets — these typically belong to the analytics or marketing categories. If you add them via Code Injection or Code blocks, update them to use type="text/plain" and a data-category attribute.
5
Allow users to update their preferences
CookieChimp provides a floating privacy icon (Privacy Trigger) that lets users manage cookie preferences at any time. Enable it in the banner settings.To open the preferences modal from a custom button or link, add the data attribute data-cc="show-preferencesModal":
Code Injection is available on Squarespace’s Business plan and above (Business, Commerce Basic, Commerce Advanced). The Personal plan does not support custom code.
Does CookieChimp work with Squarespace Commerce and Squarespace Member Areas?
Yes. CookieChimp runs in the <head> of every Squarespace page, including Commerce product pages, checkout (when allowed by your plan) and Member Areas.
Does this replace the Squarespace cookie banner entirely?
Yes. The setup steps include disabling Squarespace’s built-in banner so CookieChimp becomes the single source of consent — required for proper GDPR compliance.
Does CookieChimp support Google Consent Mode v2?
Yes. CookieChimp pushes the correct gtag('consent', ...) calls automatically, including the ad_user_data and ad_personalization signals required by Consent Mode v2. See Google Consent Mode for the full setup.
Will CookieChimp affect my site's performance?
No. The CookieChimp script is under 30KB gzipped, loads asynchronously and is served from a global CDN. It doesn't block rendering and won't meaningfully affect your Lighthouse scores.
Can I customize the cookie banner to match my brand?
Yes. The banner is fully themable from the Banner Designer — colors, typography, corner radius, button styles and copy can all be customized.
Is CookieChimp free?
CookieChimp has a free tier suitable for low-traffic sites, with paid plans for higher traffic and additional features. See pricing.