Cookie banner on Squarespace: Code Injection
by Advisorn · Checked on 26 October 2026
On Squarespace EasyCookie's line goes as the first line of the Header field of Code Injection, which is not available on every plan. Squarespace's cookie banner must be switched off, and Squarespace's built-in analytics must be listed in the banner's table, because they do not go through your line.
Installation · Step by step
- 1On EasyCookie add the website and copy the banner's line from the “Install and switch on” section.
- 2In Squarespace open Website › Pages, scroll down to Custom code and choose Code Injection (in some versions: Settings › Advanced › Code Injection).
- 3Paste the line as the first line of the Header field and save.
- 4Switch off Squarespace's banner in Settings › Cookies & visitor data.
- 5Switch on the banner on EasyCookie.
Squarespace's analytics
Squarespace collects analytics of its own, which do not go through the banner's line and which EasyCookie cannot stop. List them in the banner's table of services, so the cookie policy stays complete.
On EasyLPD
This guide explains the rules in general and how EasyCookie works: it is not advice on your case. Platforms change their menus: if a name does not match, look for the option with a similar name.