Wix Integration
Privacy-first, cookieless analytics for Wix websites and Wix Stores.
Installation
Method 1: Custom Code (Recommended)
- Go to Settings > Custom Code (or Marketing & SEO > Custom Code)
- Click "+ Add Custom Code"
- Paste the entire contents of
sealmetrics-wix.jsinside<script>tags - Replace
YOUR_ACCOUNT_IDwith your SealMetrics Account ID - Set Placement to Head
- Set Pages to All pages
- Click Apply and Publish
Method 2: Embed Code Element
- Add an Embed Code element to your site
- Choose "Embed HTML"
- Wrap the script in
<script>tags - Set to appear on all pages via page settings
Configuration
Edit these values at the top of the pasted script:
// 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):
// In Wix Velo
$w.onReady(function () {
$w('#myButton').onClick(() => {
if (typeof sealmetrics !== 'undefined') {
sealmetrics.micro('custom_event', {
property: 'value'
});
}
});
});
Conversions
Track custom conversions:
// 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:
// 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 personal data collected
- GDPR compliant by design
- No consent banner needed
Related documentation
- Installation — how the underlying Sealmetrics tracker loads.
- E-commerce Conversion Tracking — the concepts behind the Wix Stores funnel events.
- Webflow — the equivalent integration for Webflow sites.
- Squarespace — the equivalent integration for Squarespace sites.
- Integrations Overview — browse every platform Sealmetrics supports.