# Install on Squarespace

> Use code injection on the site header so the tag loads on every page, then check it on the live site.

Section: Installation guides  
Canonical page: https://statsy.co/docs/install/squarespace  
Last updated: 2026-09-15

Squarespace calls site-wide custom code “code injection”. The header box is what you want: it puts the tag in the head of every page of the site, including blog posts and pages you add later, so there is nothing to repeat.

## Where it goes

1. Open code injection**Settings › Advanced › Code injection**. It is available on Business and Commerce plans.
2. Paste into HeaderPaste the tag into the **Header** box and save. It is added to the head of every page.

```html
<script defer data-website-id="ws_XXXXXXXX" data-domain="yourstartup.com" src="https://statsy.co/js/script.js"></script>
```

## Confirm it works

Open the live site in a private window and check **Live**. The Squarespace editor does not run injected code, so test outside it. A private window also keeps your own visit from being the one you are looking at.

## System pages are not covered

Header injection reaches your normal pages, but Squarespace’s own system pages, such as checkout, are served separately and do not run it. Cover pages have their own code injection field. If your visitors land on a cover page first, paste the tag there too, and check the **Pages** report afterwards for a page that never appears.

Previous: [Install with Google Tag Manager](https://statsy.co/docs/install/gtm)  
Next: [Install on Wix](https://statsy.co/docs/install/wix)