# Install the tracking script on Squarespace

Paste the snippet in the Header field of Squarespace's Code Injection settings. Code injection needs a Business plan or higher.

Your snippet is in Settings → General of the website (the gear next to its name on the dashboard), with its id and domain filled in. The examples below use `YOUR_WEBSITE_ID` and `yourdomain.com`: replace them with yours.

**1. Open the custom code settings**

In Squarespace, open Settings → Advanced → Code Injection (in newer versions, Website → Pages → Custom code → Code Injection).

**2. Paste the snippet in the head section**

```
<script
  defer
  supr-website-id="YOUR_WEBSITE_ID"
  supr-domain="yourdomain.com"
  src="https://supranalytics.app/js/script.js"
></script>
```

Paste it in **Header**. (Code injection needs a Business plan or higher.)

**3. Save and publish**

Builders only add custom code to the published website, so publish once more after saving.

## Check it works

Open your website in a normal browser window, then the dashboard: the visit shows up within seconds, and the install card on a new website turns into the dashboard by itself. Nothing after a minute? See [Not seeing any data](https://supranalytics.app/docs/no-data.md).

---

This page on the web: https://supranalytics.app/docs/squarespace
Every documentation page: https://supranalytics.app/docs.md
