# Wix analytics with CrispStats

Updated 2026-11-23

To add CrispStats to a Wix site, open Settings, Custom Code in the site dashboard, add the script tag, load it on all pages and place it in the head. Wix's help page says custom code needs a published site with a connected domain, and Wix only connects a domain to a site with a Premium plan.

## Steps

### 1. Publish the site and connect a domain

Wix's [help page on custom code](https://support.wix.com/en/article/embedding-custom-code-on-your-site) says to "make sure that your site is published and has a connected domain" before you add code. Wix's [domain documentation](https://dev.wix.com/docs/rest/account-level/domains/connected-domains/introduction) adds that a domain can only be connected to a site with an active Premium plan, so a free Wix site cannot add the tag.

### 2. Copy the tag with your key

In the CrispStats dashboard, open your site's **Settings**, select **Tracking code** and copy the tag from the **HTML** tab. Replace `example.com` with your connected domain if it is not filled in. The public key starts with `cs_pk_` and is safe to publish.

```html
<script
  defer
  data-site="cs_pk_your_site_key"
  data-domains="example.com"
  src="https://in.crispstats.com/d.js"
></script>
```

### 3. Open Custom Code in the Wix dashboard

In your site's dashboard, open **Settings** and select **Custom Code**, under **Development & integrations**. Select **+ Add Custom Code** at the top right.

### 4. Paste, place and apply

Paste the tag and name it CrispStats. Under **Add Code to Pages**, choose **All pages**, which also covers pages you add later, and load it once per visit. Under **Place Code in**, choose **Head**. Select **Apply**.

### 5. Turn on extra events (optional)

Edit the custom code and add attributes to the tag. `data-outbound` counts clicks to other sites and `data-downloads` counts file downloads:

```html
<script
  defer
  data-site="cs_pk_your_site_key"
  data-domains="example.com"
  data-outbound
  data-downloads
  src="https://in.crispstats.com/d.js"
></script>
```

## Check that it works

Open your site on its connected domain in a normal browser window, not in the editor, with the developer tools on the **Network** tab. You should see `d.js` load from `in.crispstats.com` and a `POST` to `/e` that gets `202`. Click through a few pages: each page change sends another `POST`, and the pages appear on the **Realtime** screen within seconds. The status row on the **Tracking code** tab shows **Receiving events.** If nothing arrives, check that `data-domains` names the domain visitors use.

## What you get

- Pageviews, unique visitors and sessions for every page of the site, including page changes that happen without a full reload.
- Sources and channels: search, social, email and ad campaigns tagged with [UTM parameters](/glossary/utm-parameters), and visits from AI assistants such as ChatGPT and Perplexity.
- Entry and exit pages, countries, devices and browsers, with no cookies and no IP addresses stored.
- Form submissions as [goals](/glossary/goal): make the form's thank-you page a goal with a **Page visit** rule, then build a [funnel](/features/funnels) from the pages before it.
- [Uptime monitoring](/features/uptime-monitoring) for the live site with alerts when it goes down, on every plan.

## Notes for Wix

- Wix's help page says Google Analytics, Google Tag Manager and the Facebook and TikTok pixels do not work through custom code, so load CrispStats with the plain script tag above, not through a tag manager.
- If the code also runs again on each page, the second copy of the script does nothing, so visits are never counted twice. The same URL twice in a row is one pageview.
- Wix cannot run the forwarding rule that serves the script from your own domain, so the script loads from `in.crispstats.com` and visitors whose ad blocker stops that host are not counted. See [the proxy guide](/docs/tracking/proxy) for what the rule needs.
- There is no Wix app and no built-in Wix Stores integration. Orders can be reported as revenue from a server you run with the [payment API](/docs/revenue/payment-api); otherwise CrispStats shows traffic and conversions, not sales.
- Keep your own visits out by setting `localStorage.crispstats_ignore` once in your browser. See [exclude traffic](/docs/tracking/exclude-traffic).

Full reference: [Wix in the docs](https://docs.crispstats.com/install/wix)

## Frequently asked questions

### Why can't I find Custom Code in Wix?

Wix's help page says custom code needs a site that is published and has a connected domain. Publish the site and connect your domain, then look again under Settings.

### Which Wix plan do I need to add a tracking script?

Wix's help page on custom code, read on 2026-11-23, names no specific plan, but it asks for a connected domain, and Wix connects a domain only to a site with an active Premium plan. In practice that means any Premium plan.

### Can I add it through Google Tag Manager on Wix?

No. Wix says Google Tag Manager does not work through custom code. Paste the script tag itself as custom code instead.

### Can I load the tag on some Wix pages only?

Wix's custom code setting can load code on all pages or on chosen ones. Choose all pages; to leave out a section such as a members area, keep all pages and list its paths in data-exclude instead.

### What does it cost for a Wix site?

On the CrispStats side, nothing for the first 14 days: every account starts with a 14-day free trial with every feature and no card. After that Starter is $5 a month for 250,000 events. The Premium plan Wix needs for a connected domain is billed by Wix.

## Related

- [Do you need a cookie banner for analytics?](/blog/do-you-need-a-cookie-banner-for-analytics)
- [Funnels and goals](/features/funnels)
- [UTM parameters: a practical guide](/blog/utm-parameters-guide)
- [Privacy-friendly analytics for bloggers](/for/bloggers)
- [Squarespace analytics](/integrations/squarespace)
