Squarespace
Install the Ours Privacy Web SDK on Squarespace using Code Injection, including the plan requirement and how checkout pages behave.
Use this page to install the Ours Privacy Web SDK on a Squarespace site.
Squarespace has a built-in Code Injection field, so this is a no-code install that takes a couple of minutes.
Before You Start
Code Injection requires a paid Squarespace plan, and the field is not available on their entry-level plans. Squarespace moves which plans include it, so check their current plan comparison for the tier you need. If Code Injection is not available on your plan, you can also install through Google Tag Manager if your account already has it.
Steps to Integrate Ours Privacy with Squarespace
1. Copy your install snippet
Copy your install snippet from the Install Ours page.
2. Add the snippet to Code Injection
- In your Squarespace dashboard, go to Settings > Advanced > Code Injection.
- Paste your snippet into the Header field.
- Save.
Use Header rather than Footer so tracking initializes before the rest of your page scripts.
3. Verify
- Open your live site, not the editor preview. Code Injection does not run inside the Squarespace editor.
- Open the browser console to check for script errors.
- In your Ours Privacy account, check Recent Events to confirm page views are arriving.
Page Transitions
Squarespace loads some pages without a full browser reload. The Web SDK tracks these navigations automatically, so no extra configuration is needed. See Tracking page views in single-page apps if in-app navigations are not appearing.
Squarespace Commerce and Checkout
Squarespace checkout pages are a closed flow and do not accept Code Injection, so your snippet does not run during checkout. This is a platform restriction rather than an Ours Privacy limitation.
You can still track the purchase. Squarespace provides a separate Order Confirmation Page code field, which runs after a completed order:
- Go to Settings > Advanced > Code Injection.
- Paste a tracking call into the Order Confirmation Page field.
ours('track', 'Purchase Complete', { value: 100 });Because the snippet itself does not load during checkout, include your install snippet in this field as well, before the tracking call.
Track Custom Events
Add a Code Block to any page and call ours('track', ...):
ours('track', 'Form Submitted', { form_name: 'contact_us' });Next Steps
- Web SDK reference: full list of tracking methods and options.
- Tracking page views in single-page apps: handling page transitions.
- Cookie Consent installation: add the consent banner so it loads before other tracking scripts.
If you need further assistance, contact us at support@oursprivacy.com.
How is this guide?

