# Add whoisbrowsing to Squarespace

To see live visitors on a Squarespace site, paste one script tag into Code Injection, in the Footer box, and save. Squarespace lists Code Injection on its Core, Plus and Advanced plans.

## Your snippet

```html
<script src="https://live.whoisbrowsing.com/s.js" data-site="YOUR_SITE_ID" defer></script>
```

## Steps

1. Go to Website, then Pages, then Website Tools, then Code Injection.
2. Paste the snippet into the Footer box. Squarespace places footer code before the closing `</body>` tag on every page.
3. Click Save, then open your live site.

## Plans and limits

Per [Squarespace's code injection help](https://support.squarespace.com/hc/en-us/articles/205815908-Using-code-injection), Code Injection is available on the Core, Plus and Advanced plans plus some legacy plans, so check your plan if you are on another one. The same page says checkout pages do not support custom code, so the live view will not cover them. Squarespace support cannot troubleshoot custom code.

| Where | Effect |
|---|---|
| Header box | Inside `<head>` on every page |
| Footer box | Before `</body>` on every page (use this one) |

## Content-Security-Policy note

If your site sends a Content-Security-Policy header, allow the script and its live connection: `script-src https://live.whoisbrowsing.com` and `connect-src wss://live.whoisbrowsing.com`. Most Squarespace sites send no such header, so you can usually skip this.

## Verify

1. In whoisbrowsing, click Watch for your site.
2. Open your site in a Chrome Incognito or Safari private window. Your own normal browser is never counted, so a private window is how you test.
3. You should see yourself as a coloured cursor on your real page, and one line for you in the side panel.

Each website is separate: `www.` and the bare domain count as the same website, but localhost and production never mix. If you see nothing, check that the site ID matches the one shown for this site.

## If you see nothing on Squarespace

- **Is Code Injection there?** If the menu item is missing or locked, check your plan; Squarespace lists it on Core, Plus, Advanced and some legacy plans.
- **Did you save and reload?** Open the live site in a private window after saving, not the editor preview.
- **Which address did you open?** Your built-in Squarespace address and your custom domain are different websites in whoisbrowsing, so watch the one you opened.
- **Looking at checkout?** Squarespace says checkout pages do not support custom code, so shoppers there will not appear.

## Let your AI agent do it

> Add whoisbrowsing (live visitor view) to this project. Follow https://whoisbrowsing.com/SKILL.md exactly.

This prompt works when your site's code lives in a project an agent can edit. On Squarespace, where you edit the site in the browser, paste the tag yourself as shown above; an agent can still create the site for you and hand you the tag. See [install with an AI agent](/install/ai-agent).

## Related

[How it works](/how-it-works), [privacy](/privacy), all [install guides](/install), or [try it with no sign-in](/try). Other platforms: [WordPress](/install/wordpress), [Shopify](/install/shopify), [Webflow](/install/webflow).
