Site builders
Webflow analytics with CrispStats
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.
Updated
Set up CrispStats on Webflow
- 01
Step 1: Check that your plan allows custom code
Webflow’s help page on custom code 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.
- 02
Step 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.Replace the highlighted values with your own.
<scriptdeferdata-site="cs_pk_your_site_key"data-domains="example.com"src="https:/ / in. crispstats. com/ d. js"></script> - 03
Step 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.
- 04
Step 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.
- 05
Step 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:
<scriptdeferdata-site="cs_pk_your_site_key"data-domains="example.com"data-outbounddata-downloadssrc="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.
CrispStats on Webflow
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, 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: give an element a custom attribute named
data-cs-eventwith the event name as its value, anddata-cs-prop-*attributes for properties. No JavaScript is needed. - Form conversions as goals: 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.
Notes and limits
- Visits to your
webflow.iostaging address are not counted whendata-domainslists 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 needdata-hash. - Webflow cannot run the forwarding rule that serves the script from your own domain, so the script loads from
in.crispstats.comand 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. - 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 for a checkout you control. - Keep your own visits out by setting
localStorage.crispstats_ignoreonce in your browser. See exclude traffic. - Webflow’s help page notes that support does not help with custom code. For CrispStats questions, write to hello@crispstats.com.
- Visits to your
The docs page covers the optional steps this guide leaves out.
Setup questions. Straight answers.
What people ask before they connect it.
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.
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.
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.
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.
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.
Not answered here? Write to hello@crispstats.com
Go further
Related
- Do you need a cookie banner for analytics?
When analytics needs consent: what the device storage rule covers, where GDPR comes in, and a checklist.
- UTM builder
Build UTM-tagged links one at a time or in bulk from pasted rows, with presets, checks for capitals and spaces, CSV export and a channel preview.
- Track visitors from ChatGPT and Perplexity
Visitors sent by ChatGPT, Perplexity and Claude, plus AI crawler hits.
- Web analytics for startups
Funnels, retention, revenue attribution and uptime from the first day, on a price that stays small while you find your market.
- Framer analytics
Add CrispStats to a Framer site by pasting one script tag into the site-wide custom code at the end of the head, then publishing.
- Cookieless analytics
Cookieless analytics counts visitors with a daily rotating hash instead of a cookie.
Guides
- Webflow analytics: Webflow Analyze or a script tag?
What Webflow Analyze measures, what it costs per session tier, and when pasting an analytics script into Webflow's custom code does the job better.
Other integrations
Site builders
Frameworks
Ecommerce platforms
Tag managers
Your traffic, crisp and clear
One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.