---
title: "Install on Squarespace"
description: "Add XPmetric to Squarespace with Code Injection in the site header."
source: "https://xpmetric.com/docs/install/squarespace"
---
Squarespace adds site-wide scripts through Code Injection.

<TokenCallout />

## Tracking snippet

<TrackingSnippet />

## Before you start

Code injection is available on Core or Business plans and above. It is not available on Basic or Personal plans.

## Steps

1. Open **Settings → Advanced → Code injection**. On older sites the path is **Settings → Developer tools → Code injection**.
2. Paste the tracking snippet into the **Header** box.
3. 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](/docs/troubleshooting/csp) or reply to your welcome email and we will look at it with you.
