---
title: "Squarespace — Sealmetrics Docs"
description: "Privacy-first, cookieless analytics for Squarespace websites and Squarespace Commerce"
canonical_url: "https://sealmetrics.com/docs/integrations/website-builders/squarespace/"
lang: "en"
date_modified: 2026-01-05
content_type: "implementation"
owner: "engineering"
llm_priority: "critical"
last_verified: "2026-01-05"
source: https://sealmetrics.com/docs/integrations/website-builders/squarespace/
publisher: Sealmetrics
---

# Squarespace Integration

Privacy-first, cookieless analytics for Squarespace websites and Squarespace Commerce

Privacy-first, cookieless analytics for Squarespace websites and Squarespace Commerce.

## Installation

1. Go to **Settings > Advanced > Code Injection**
2. Paste the entire contents of `sealmetrics-squarespace.js` (wrapped in `<script>` tags) in the **Header** section
3. Replace `YOUR_ACCOUNT_ID` with your Sealmetrics Account ID
4. Click **Save** and **Publish**

## Configuration

Edit these values at the top of the pasted script:

```javascript
// Required: Your Sealmetrics Account ID
var SEALMETRICS_ACCOUNT_ID = 'YOUR_ACCOUNT_ID';

// Optional: Track contact forms as lead conversions (default: false)
var SEALMETRICS_CONTACT_AS_LEAD = false;
```

## Automatic Events

| Event | Description |
| --- | --- |
| `pageview` | All page views with content grouping |
| `form_submit` | Form block submissions (non-newsletter) |
| `newsletter_signup` | Newsletter block submissions |

## Squarespace Commerce Events

| Event | Description |
| --- | --- |
| `view_item` | Product page views |
| `add_to_cart` | Add to cart button clicks |
| `begin_checkout` | Checkout button clicks |
| `purchase` | Order confirmation (conversion) |

## Content Groups

Automatic detection based on page type and URL:

| Page Type | Group |
| --- | --- |
| Homepage | `home` |
| Products collection | `catalog` |
| Product item | `product` |
| Cart | `cart` |
| Checkout | `checkout` |
| Thank you | `thankyou` |
| Blog collection | `blog-index` |
| Blog item | `blog` |
| Gallery | `gallery` |
| Album | `album` |
| Video | `video` |
| About page | `about` |
| Contact page | `contact` |
| Services | `service` |
| Portfolio | `portfolio` |
| Pricing | `pricing` |
| Events | `events` |

## Form Detection

### Newsletter Forms

Automatically detected and tracked as `newsletter_signup`:

- Newsletter blocks
- Forms with newsletter-related classes
- Single email field forms

### Contact Forms

Tracked as `form_submit` or `lead` (if configured)

## Custom Events

Track custom events via JavaScript:

```html
<script>
document.querySelector('#myButton').addEventListener('click', function() {
  if (typeof sealmetrics !== 'undefined') {
    sealmetrics.micro('custom_event', {
      property: 'value'
    });
  }
});
</script>
```

## Conversions

Track custom conversions:

```javascript
// Lead conversion
sealmetrics.conv('lead', 0, {
  source: 'quote_form'
});

// Manual purchase tracking
sealmetrics.conv('purchase', 99.99, {
  currency: 'USD'
});
```

## Squarespace Commerce

For Squarespace Commerce stores, the following is tracked automatically:

1. **Product Views**: When a visitor views a product detail page
2. **Add to Cart**: When clicking the add to cart button
3. **Begin Checkout**: When clicking the checkout button
4. **Purchase**: On the order confirmation page

No additional configuration required.

## Template Compatibility

Works with all Squarespace templates:

- Squarespace 7.0 templates (Brine, Bedford, etc.)
- Squarespace 7.1 templates
- Squarespace Commerce

## Privacy

- No cookies used
- No data that identifies anyone stored; reports are aggregated
- Designed for GDPR and ePrivacy (self-assessed, see [Compliance](https://sealmetrics.com/docs/compliance.md))
- No consent banner for Sealmetrics' own analytics (self-assessed; Germany: open question — see [Germany](https://sealmetrics.com/docs/compliance/germany-ttdsg-self-assessment.md))

## Related documentation

- [Installation](https://sealmetrics.com/docs/implementation/tracker/installation.md) — how the underlying Sealmetrics tracker loads.
- [eCommerce Conversion Tracking](https://sealmetrics.com/docs/implementation/ecommerce-conversion-tracking.md) — the concepts behind the Squarespace Commerce funnel events.
- [Wix](https://sealmetrics.com/docs/integrations/website-builders/wix.md) — the equivalent integration for Wix sites.
- [Webflow](https://sealmetrics.com/docs/integrations/website-builders/webflow.md) — the equivalent integration for Webflow sites.
- [Integrations Overview](https://sealmetrics.com/docs/integrations.md) — browse every platform Sealmetrics supports.
