Install on Squarespace
Add XPmetric to Squarespace with Code Injection in the site header.
Squarespace adds site-wide scripts through Code Injection.
Replace YOUR_SITE_TOKEN with your site token from Settings → Sites → Get Script.
Tracking snippet
<script defer data-site="YOUR_SITE_TOKEN" src="https://xpmetric.com/p.js"></script>Before you start
Code injection is available on Core or Business plans and above. It is not available on Basic or Personal plans.
Steps
- Open Settings → Advanced → Code injection. On older sites the path is Settings → Developer tools → Code injection.
- Paste the tracking snippet into the Header box.
- Click Save.
Verify
Open your published site in a browser, then check the XPmetric dashboard. The first pageview shows up within a few seconds.
Squarespace loads pages without a full reload when a visitor moves between them. XPmetric counts those navigations as pageviews automatically.
If nothing arrives, check the CSP troubleshooting guide or reply to your welcome email and we will look at it with you.