Add Cookie Consent Banners to Squarespace
In this article
Adding a cookie consent banner to your Squarespace site keeps you compliant with privacy laws like GDPR and CCPA, and it builds trust with visitors by letting them control tracking. You can do this without touching code—Squarespace has a built-in cookie banner—or you can install a third-party tool for more customization. Here’s exactly how to set it up, what to avoid, and how to fix common issues.
What You'll Need
- A Squarespace website (any plan, including trial).
- Admin access to your site (you need to be an owner or have permission to edit settings).
- Optional: A third-party consent tool (like CookieYes, Osano, or Termly) if you want advanced features like auto-blocking scripts or multi-language support.
Step-by-Step
- Log in to Squarespace and go to your site’s dashboard.
- Open the Cookie Banner settings: In the left menu, click Settings, then Cookies. (If you don’t see “Cookies,” look under Privacy & Data.)
- Enable the banner: Toggle the switch to turn on the “Cookie Banner.” You’ll see a preview on the right side of the screen.
- Choose your banner style: Pick between “Banner” (a bar at the top or bottom) or “Modal” (a pop-up in the center). For mobile, a bottom bar is usually less intrusive.
- Customize the text: Edit the title and message. Keep it clear and honest—for example: “We use cookies to improve your experience and analyze site traffic. By clicking ‘Accept,’ you agree to our cookie policy.” You can also add a link to your privacy policy page.
- Set button labels: You can change the text on the Accept and Decline buttons. For example, “I Agree” and “No Thanks.” Make sure the Decline button is as visible as Accept—some regulations require equal prominence.
- Choose when it shows: Select whether to show the banner to all visitors, only EU visitors, or only US visitors. If you target a global audience, choose “All visitors” to be safe.
- Save your changes: Click Save at the top left. The banner will appear on your live site immediately.
- Test it: Open your site in a private/incognito window to see the banner. Click both Accept and Decline to confirm they work and that the banner disappears after a choice.
- If you need more control: Install a third-party tool. Go to Settings > Developer Tools > Code Injection, and paste the script provided by your chosen consent tool into the “Header” box. Then follow that tool’s instructions to configure it. (Some tools also offer a Squarespace extension in the marketplace.)
Common Mistakes
- Not enabling the banner at all—some users assume it’s automatic, but you must turn it on.
- Hiding the Decline button—if visitors can’t easily refuse, you may violate regulations. Keep both buttons visible and equally sized.
- Forgetting to link your privacy policy—the banner should include a link to your full policy. If you don’t have one, create a page and add it.
- Using vague language—saying “We use cookies” without explaining why is not enough. Be specific about tracking and analytics.
- Not testing on mobile—the banner might overlap content or be too small. Always preview on a phone.
- Assuming the built-in banner blocks all scripts—Squarespace’s banner informs users but doesn’t automatically block all third-party trackers. If you need strict blocking, use a third-party tool.
Tips
- Keep it short—a long paragraph makes visitors click away. Use 1-2 sentences and a link.
- Match your brand—adjust the banner’s background and button colors to fit your site’s design.
- Use the “EU only” option if you don’t serve other regions—this reduces annoyance for non-EU visitors.
- Re-test after any template change—switching templates can reset some settings.
- Consider a third-party tool if you use many third-party scripts—tools like CookieYes can automatically block cookies until consent is given, which is more robust than Squarespace’s native option.
Troubleshooting
- Banner not showing: Check that you saved the settings. Clear your browser cache or open in incognito. If you’re using a third-party script, make sure it’s correctly pasted in Code Injection—a missing closing tag or a typo can break it.
- Banner shows but buttons don’t work: This usually happens with third-party scripts conflicting with Squarespace’s own code. Temporarily remove the third-party script to see if the native banner works. If it does, re-add the script slowly, testing each step.
- Banner appears on every page load: This means the user’s choice isn’t being stored. Check if your browser blocks cookies or if you’re in private mode. On your site, ensure you haven’t disabled cookies in the banner settings.
- Banner covers important content: Adjust the banner’s position (top vs bottom) or change the modal to a banner. On mobile, a bottom bar is less intrusive.
- After adding a third-party tool, the site breaks: Remove the script immediately. Then re-add it, making sure you’ve copied the entire snippet from the tool’s dashboard. Some tools require you to create an account and set up a “site” first.
Frequently Asked Questions
Is a cookie banner legally required on Squarespace?
It depends on your audience. If you have visitors from the EU, GDPR requires consent for non-essential cookies. For US visitors, CCPA/CPRA gives them the right to opt out of the sale of personal data. Even if not legally required, it’s good practice.
Does Squarespace’s native cookie banner block tracking cookies before consent?
No. The native banner only informs users and records their choice. It does not automatically block third-party scripts like Google Analytics. To block tracking until consent, you need a third-party consent management platform.
Can I add a cookie banner to a Squarespace trial site?
Yes, the cookie banner feature is available on all plans, including trials. However, trial sites are not public, so the banner won’t be visible to visitors until you upgrade and publish.
Will the cookie banner affect my site’s SEO?
No, the banner itself doesn’t hurt SEO. But if it covers content or slows down your site, it could indirectly affect user experience. Keep it lightweight and non-intrusive.
Can I use a third-party cookie tool with Squarespace?
Yes. Most tools provide a JavaScript snippet you can paste into Code Injection. Some also offer a direct Squarespace integration. Just make sure the tool is compatible with your template.
How do I update the cookie banner after changing my privacy policy?
Go to Settings > Cookies and edit the banner text. If you use a third-party tool, update the policy link in that tool’s dashboard—it will usually sync automatically.