1
Copy your CookieChimp snippet
Log in to your CookieChimp dashboard and copy your website's JS snippet: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.
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.
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":Troubleshooting
- Make sure your Squarespace domain (including any custom domain you’ve connected) is allowed in the Account Settings in your CookieChimp dashboard.
- Some Squarespace plans (notably the Personal plan) do not support Code Injection. You’ll need the Business plan or higher to use CookieChimp.
- Code Injection is only applied on the live site — it will not run inside the Squarespace editor preview.
- Enable Debug mode from the CookieChimp dashboard and check the browser JS console for errors.
If you encounter any issues or need further assistance, please reach out to us via our chat.