Add whoisbrowsing to Squarespace
Updated
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. Squarespace allows no code on checkout pages, so you'll see visitors on your other pages, up to the moment they start checkout.
Your script
<script src="https://live.whoisbrowsing.com/s.js" data-site="YOUR_SITE_ID" async></script>Replace YOUR_SITE_ID with your script's ID. No script yet? Get your script. Free. No card, and no account needed.
Paste it on every page of your site, in the <head> or anywhere before </body>. On Squarespace, that is one paste, in Code Injection's Footer box.
Steps
- Go to Website, then Pages, then Website Tools, then Code Injection.
- Paste your script into the Footer box. Squarespace places footer code before the closing
</body>tag on every page. - Click Save, then open your live site.
Plans and limits
Per Squarespace's code injection help, 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) |
Verify
Before your visitors see it, add whoisbrowsing to your site's privacy policy (a paragraph to paste), and if the law requires your visitors' consent, get it first: see your responsibilities to your visitors.
- Use your published site, not the editor's preview. Open your site once. If the panel shows there, you're watching. If it doesn't, press Watch your site live on the home page. The home page shows the website as "Installed" once the script has loaded (or "Live now" while someone is there).
- To see a visitor arrive, open your site in another tab or window, or press Open a visitor window on the home page. That tab shows up as "you, testing". The tab with the panel is your owner view, and it is never counted.
- Move the mouse in the visitor tab. When both tabs are on the same page, its cursor moves in your owner view, and the panel lists it either way.
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 after saving, not the editor preview.
- Is this address in your script's list? Your built-in Squarespace address and your custom domain are two websites. The script runs only on the websites listed for it, so add the one you open on the home page. If it ran on an address that isn't listed, the home page says so and offers to add it.
- Looking at checkout? Squarespace says checkout pages do not support custom code, so shoppers there will not appear.
- Is something blocking it? An ad blocker can stop
live.whoisbrowsing.com. So can a Content-Security-Policy, which most Squarespace sites don't send: if yours does, allowscript-src https://live.whoisbrowsing.comandconnect-src wss://live.whoisbrowsing.com. Nothing else is needed: the owner panel adds no inline styles. - Testing from the EU/EEA, UK or Switzerland, or with Global Privacy Control on? Visitors in the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland, and browsers that send Global Privacy Control, are never shown or counted. In those countries nothing is shown, and nothing is kept on our servers: the script is empty there, and a visitor's live connection from there is refused. Your owner panel doesn't appear either. With Global Privacy Control on (Brave sends it by default), the panel still opens, but your own test tabs don't show.
See how it works for what is sent, and the privacy page for what is never sent or stored.
Remove it
- Delete the tag from Code Injection, Footer, and save. Visitors stop showing as soon as the change is live.
- To turn the script off everywhere at once, delete it: open Site details from your script on the home page (or, if you signed in, the script's page in your dashboard), press Delete this script… and confirm with Yes, delete. If the tag stays on a page, the live server refuses it: nothing is shown, and nothing is kept on our servers.
See who is on your website, right now
Type your website, paste one line, and watch your visitors live. No account needed.
Free · Under 4 KB · No cookies on your visitors · No data stored about your visitors