Platforms

Squarespace

Install allowedit on Squarespace with Code Injection in the site header, turn off the built-in cookie banner, and check which plans allow code injection.

On Squarespace you add allowedit with Code Injection, in the site header. It then loads on every page. There is no allowedit extension to install.

Before you start

  • Create a free account, add your site's domain and copy your script tag from the dashboard (open the site; it's on the Overview).
  • Code Injection is only available on Squarespace plans that allow custom code (the Core, Plus and Advanced plans, or Business and Commerce on older plans). On a plan without it, the Code Injection page is locked.

1. Add the script to the header

  1. In Squarespace, open Settings.
  2. Go to Advanced, then Code Injection. On some sites it's under Developer Tools.
  3. In the Header field, paste your script tag at the very top:
<script src="https://allowedit.com/c/<siteId>.js"></script>
  1. Save.

If the Header field already holds Google Tag Manager, the Google tag or a pixel, keep allowedit above it. The script must run first so it can set Consent Mode defaults and hold trackers back before they load.

Squarespace has its own cookie banner. Turn it off in Settings, under Cookies & Visitor Data (the name varies slightly between versions), so visitors only see one banner and only one tool controls what loads.

Squarespace's own analytics

Squarespace Analytics is part of the platform. Squarespace decides how it handles consent, and it isn't loaded through your header code, so allowedit doesn't block it. Check Squarespace's documentation for how its analytics cookies work when its own banner is off.

Connected services

If you connected Google Analytics or a Meta Pixel through Squarespace's settings (External API Keys or Marketing), Squarespace adds those tags itself. Google tags read the Consent Mode signals allowedit sets. Known trackers such as the Meta Pixel are held by auto-blocking until the visitor allows marketing.

For full control, remove them from those settings and load them through Google Tag Manager instead, below the allowedit script.

Code blocks and embeds

Code Blocks and Embed Blocks on a page load after the header code. Known trackers in them are handled by auto-blocking. For anything else, mark it yourself:

<script type="text/plain" data-category="marketing" src="https://example.com/pixel.js"></script>

YouTube and Google Maps embeds are held until marketing is allowed, with a placeholder and a button to load them. See Block scripts manually for iframes.

Add a link to your footer, either in a Text block or in your navigation, with the URL #cookie-settings. Clicking it opens the preferences panel.

4. Check it works

  1. Open your live site in a private window. Code Injection doesn't run in the editor preview on some templates, so check the live site.
  2. Check the banner shows, then choose Reject all.
  3. In your browser's developer tools, check that no analytics or marketing cookies appear.
  4. In your dashboard, run a scan. It lists the cookies Squarespace and your services set, and flags any set before consent.

Still stuck? Email support@allowedit.com with your site's address and what you see.