Adding a cookie banner in Squarespace 5

European Union (EU) laws require website owners to inform their visitors of cookies placed by their website and to receive visitors’ consent to use certain types of cookies.

Use this guide to create an EU cookie banner on your site with code.

Note: Adding code to your site is an advanced modification that falls outside of the scope of Squarespace support.
  1. Click the Website Management bar and click Website Settings under Structure.
  2. Click Code Injection.
  3. Add this code:
<script type="text/javascript"> Static.EU_COOKIE_POLICY = "top-left"; </script>
  1. Click Update Information.
Note: EU cookie notice requirements vary depending on your location and cookie use. While we provide text you can use, you shouldn’t assume that it satisfies your particular legal requirements.

To change where the banner displays on your site, replace the "top-left" in the code with any of these options:

  • "top-right"
  • "bottom-left"
  • "bottom-right"

There aren't any other style or text adjustments available for this cookie banner.

Our current platform, Squarespace 7, has a built-in feature for adding a cookie banner with customizable text. Learn more on our Squarespace 7 help site.

Tip: Cookies help us run Squarespace. To learn more about how and why we use cookies, visit our Cookie Policy.
Was this article helpful?
1 out of 1 found this helpful
Adding a cookie banner in Squarespace 5