---
title: "Wix — Sealmetrics Docs"
description: "Add Sealmetrics cookieless analytics to Wix sites and Wix Stores via Settings > Custom Code or an embed element, with automatic event tracking."
canonical_url: "https://sealmetrics.com/docs/integrations/website-builders/wix/"
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/wix/
publisher: Sealmetrics
---

# Wix Integration

Add Sealmetrics cookieless analytics to Wix sites and Wix Stores via Settings > Custom Code or an embed element, with automatic event tracking.

Privacy-first, cookieless analytics for Wix websites and Wix Stores.

## Installation

### Method 1: Custom Code (Recommended)

1. Go to **Settings > Custom Code** (or **Marketing & SEO > Custom Code**)
2. Click **"+ Add Custom Code"**
3. Paste the entire contents of `sealmetrics-wix.js` inside `<script>` tags
4. Replace `YOUR_ACCOUNT_ID` with your Sealmetrics Account ID
5. Set **Placement** to **Head**
6. Set **Pages** to **All pages**
7. Click **Apply** and **Publish**

### Method 2: Embed Code Element

1. Add an **Embed Code** element to your site
2. Choose **"Embed HTML"**
3. Wrap the script in `<script>` tags
4. Set to appear on all pages via page settings

## 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` | Wix form submissions (non-newsletter) |
| `newsletter_signup` | Newsletter form submissions |

## Wix Stores 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 URL patterns:

| URL Pattern | Group |
| --- | --- |
| `/` | `home` |
| `/product-page/*`, `/products/*` | `product` |
| `/shop`, `/store`, `/all-products` | `catalog` |
| `/cart` | `cart` |
| `/checkout` | `checkout` |
| `/thank-you`, `/order-confirmation` | `thankyou` |
| `/blog/*`, `/post/*` | `blog` |
| `/blog`, `/posts` | `blog-index` |
| `/about*` | `about` |
| `/contact*` | `contact` |
| `/services/*` | `service` |
| `/portfolio/*`, `/gallery/*` | `portfolio` |
| `/pricing*`, `/plans*` | `pricing` |
| `/booking/*`, `/schedule/*` | `booking` |
| `/events/*` | `events` |
| `/members/*`, `/account/*` | `account` |

## Form Detection

### Newsletter Forms

Tracked as `newsletter_signup`:

- Form ID/class contains newsletter keywords
- Forms with only an email field

### Contact Forms

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

## Custom Events with Wix Velo

Track custom events from Wix Velo (Corvid):

```javascript
// In Wix Velo
$w.onReady(function () {
  $w('#myButton').onClick(() => {
    if (typeof sealmetrics !== 'undefined') {
      sealmetrics.micro('custom_event', {
        property: 'value'
      });
    }
  });
});
```

## Conversions

Track custom conversions:

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

// Manual purchase (if not using Wix Stores)
sealmetrics.conv('purchase', 99.99, {
  currency: 'EUR'
});
```

## Advanced Wix Velo Integration

For advanced tracking with Wix Velo:

```javascript
// page.js
import wixLocation from 'wix-location';

$w.onReady(function () {
  // Track specific interactions
  $w('#submitButton').onClick(() => {
    if (typeof sealmetrics !== 'undefined') {
      sealmetrics.micro('form_submit', {
        form_name: 'custom_form'
      });
    }
  });
});
```

## Compatibility

- Wix Editor
- Wix Studio (Editor X)
- Wix Stores
- Wix Bookings
- Wix Events
- Wix Blog
- Wix Members Area
- Wix Ascend forms

## 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 Wix Stores funnel events.
- [Webflow](https://sealmetrics.com/docs/integrations/website-builders/webflow.md) — the equivalent integration for Webflow sites.
- [Squarespace](https://sealmetrics.com/docs/integrations/website-builders/squarespace.md) — the equivalent integration for Squarespace sites.
- [Integrations Overview](https://sealmetrics.com/docs/integrations.md) — browse every platform Sealmetrics supports.
