# Webflow analytics with CrispStats

Updated 2026-11-23

To add CrispStats to a Webflow site, paste the script tag into Site settings, Custom code, Head code, save, and publish. Webflow allows site-wide custom code with a Core, Growth, Agency or Freelancer Workspace, or on a site with an active Site plan, and the tag then loads on every published page.

## Steps

### 1. Check that your plan allows custom code

Webflow's [help page on custom code](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags) says site-wide custom code is available "if you have a Core, Growth, Agency, or Freelancer Workspace, or if your site has an active Site plan". Without one of those, there is no site-wide place for a script tag.

### 2. Copy the Webflow snippet

In the CrispStats dashboard, open your site's **Settings**, select **Tracking code** and choose the **Webflow** tab. It shows the tag with your public key (it starts with `cs_pk_`) and your domain filled in. The key 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. Paste it into Head code

In Webflow, open your site's **Site settings**, choose the **Custom code** tab and paste the tag into the **Head code** section. Select **Save changes**. Use the site-wide field, not a single page's custom code, so every page is covered. Head code holds up to 50,000 characters, so the tag fits next to anything already there.

### 4. Publish the site

Webflow's help page notes that custom code runs in preview mode but does not go live until the site is published. Publish to your custom domain, then open the live site in a normal browser window.

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

The switches under **Extra events** on the **Tracking code** tab add attributes to the tag. Copy the updated tag, replace the one in **Head code** and publish again. With outbound links and file downloads on, it looks like this:

```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 published site with the browser's developer tools on the **Network** tab. You should see `d.js` load from `in.crispstats.com` and a `POST` to `/e` that gets `202`. The status row on the CrispStats **Tracking code** tab shows **Receiving events.** once the first event is stored, and the visit appears on the **Realtime** screen within seconds. If the tag is missing from the page source, the site was not published after you saved the head code.

## What you get

- Pageviews, unique visitors and sessions for every page Webflow publishes, including CMS collection pages.
- Sources and channels: search, social, newsletters and ads 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.
- Clicks on buttons and links as [custom events](/glossary/custom-event): give an element a custom attribute named `data-cs-event` with the event name as its value, and `data-cs-prop-*` attributes for properties. No JavaScript is needed.
- Form conversions as [goals](/glossary/goal): send the form to a thank-you page and add a goal with a **Page visit** rule for that path, then use it as a step in a [funnel](/features/funnels).

## Notes for Webflow

- Visits to your `webflow.io` staging address are not counted when `data-domains` lists only your own domain, which is usually what you want. Add the staging hostname to count those too.
- Each Webflow page is a full page load, so the script counts one pageview per page. Links to a section on the same page (`#pricing`) are not new pages, and a Webflow site does not need `data-hash`.
- Webflow 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. If your domain already runs through Cloudflare, a Worker route on it can do the forwarding: see [the proxy guide](/docs/tracking/proxy).
- Revenue attribution needs the visitor id from `crispstats.id()` passed to your checkout, which takes code on the checkout side. Webflow Ecommerce has no built-in CrispStats integration; see [Stripe revenue attribution](/integrations/stripe) for a checkout you control.
- Keep your own visits out by setting `localStorage.crispstats_ignore` once in your browser. See [exclude traffic](/docs/tracking/exclude-traffic).
- Webflow's help page notes that support does not help with custom code. For CrispStats questions, write to hello@crispstats.com.

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

## Frequently asked questions

### Which Webflow plan do I need to add analytics code?

Webflow's help page says site-wide custom code needs a Core, Growth, Agency or Freelancer Workspace, or a site with an active Site plan. A free Starter site in a free Workspace cannot add the script tag.

### Why do I see no visits from the Designer or preview?

Custom code goes live only on the published site, and the script counts only the domains listed in its tag, so preview visits on other hostnames are dropped. Publish, then open the live site on your own domain.

### Does it replace Webflow's own analytics?

It can run next to them; both read the same published pages. CrispStats gives you sources, AI assistant referrals, funnels, goals and web vitals on every plan, sets no cookies and never stores IP addresses.

### Are Webflow CMS collection pages counted?

Yes. Site-wide head code is on every published page, each CMS collection item page included, and each one is reported under its own path.

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

Webflow bills for the plan that allows custom code; CrispStats bills only by monthly events. Every account starts with a 14-day free trial with every feature and no card; then Starter is $5 a month for 250,000 events.

## Related

- [Do you need a cookie banner for analytics?](/blog/do-you-need-a-cookie-banner-for-analytics)
- [UTM builder](/tools/utm-builder)
- [Track visitors from ChatGPT and Perplexity](/features/ai-traffic)
- [Web analytics for startups](/for/startups)
- [Framer analytics](/integrations/framer)
- [Cookieless analytics](/analytics/cookieless-analytics)
