Install on Squarespace
Use code injection on the site header so the tag loads on every page, then check it on the live site.
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
Open code injection
Settings › Advanced › Code injection. It is available on Business and Commerce plans.
Paste into Header
Paste the tag into the Header box and save. It is added to the head of every page.
<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.
Last updated · Markdown version