Fast, cookie-less Webflow analytics without GTM or consent popups.
Paste one 1.96 KB tag into Webflow Head Code to measure landing page conversions, form leads, 90% scroll depth, and UI click friction across 1 to 100 client sites.


How do you add privacy-first analytics to Webflow without slowing down animations or needing cookie banners?
Open Webflow Site Settings -> Custom Code -> Head Code, paste the deferred 1.96 KB gzipped TrimStats script tag, and publish your site. TrimStats runs strictly cookie-less by default in Germany (EU) so visitors never see an analytics consent wall, automatically captures outbound clicks and PDF downloads, and adds optional rage-click and dead-click diagnostics without 100 KB session-replay scripts.
Step-by-step setup for Webflow
Copy-paste implementation verified against the live TrimStats tracker and collector APIs.
- 1
Paste TrimStats into Webflow Site Settings -> Custom Code -> Head Code
Open your Webflow project settings, select Custom Code, paste the deferred snippet into Head Code, save changes, and publish to your staging or custom domain.
Webflow Head Codehtml1<script2 defer3 src="https://collect.trimstats.com/t.js"4 data-site="pk_live_your_key"5 data-friction="true"6></script> - 2
Track Webflow native form submissions cleanly
Add a 6-line footer snippet in Custom Code -> Footer Code so every Webflow lead, demo, or quote form emits a structured custom event into TrimStats goals and funnels.
Webflow Footer Codehtml1<script>2 document.addEventListener('submit', function (e) {3 var form = e.target && e.target.closest('form');4 if (!form) return;5 window.trimstats && window.trimstats('event', 'lead_form_submitted', {6 form_name: form.getAttribute('data-name') || form.id || 'webflow_form'7 });8 });9</script> - 3
Catch Webflow interaction bugs with opt-in UI click friction
With data-friction="true", TrimStats flags non-interactive cards, broken modal triggers, and confusing Webflow CMS elements that trigger dead clicks or rage clicks with zero DOM video recording.
- 4
Share read-only /share/sh_... dashboards with Webflow clients
Agencies managing multiple Webflow sites can generate unguessable noindex share links per client site and scale from 25 sites ($44/mo) to 100 sites ($134/mo) with zero per-seat charges.
High-signal custom events to track for Webflow
Fire any event with window.trimstats?.('event', name, props) and attach it to conversion goals or multi-step ClickHouse funnels.
| Event name | When to fire | Sample properties |
|---|---|---|
| lead_form_submitted | Prospect submits a Webflow contact, quote, or demo request form. | {"form_name":"demo_request"} |
| pricing_cta_clicked | Visitor clicks a primary CTA button inside a Webflow pricing section. | {"plan":"growth"} |
| calendar_embed_clicked | Prospect clicks a Calendly or Cal.com booking trigger on a landing page. | {"page":"contact"} |
| case_study_downloaded | Visitor downloads a client PDF deck or whitepaper (also tracked automatically on .pdf links). | {"asset":"agency_deck"} |


TrimStats replaces 100+ KB of GA4, GTM, and replay tags on Webflow
Estimated gzipped third-party analytics and UX JavaScript payload on a Webflow marketing site (KB)
Webflow sites already load rich fonts and Lottie/interaction assets; keeping analytics and UX friction inside 1.96 KB protects mobile LCP and INP.
Methodology: TrimStats measured from compiled packages/tracker/dist/t.js (1,964 B gzip). Typical GA4, GTM, and session replay script bundles reflect standard marketing deployments.
View chart data table
| Label | Third-party script weight (gzipped) |
|---|---|
| TrimStats t.js (analytics + friction) | 1.96 KB |
| GA4 gtag.js only | ~40 KB |
| GA4 + Hotjar / Clarity replay | ~110 KB |
| GTM + GA4 + Session Replay | ~150 KB |
Webflow analytics FAQ
Implementation details, privacy trade-offs, and event-quota answers.
Why do I not see live visits while previewing inside the Webflow Designer canvas?
Does Webflow require a paid Site Plan to paste TrimStats in Custom Code?
How do I exclude my own agency team visits on a client Webflow site?
Can we share live Webflow analytics with clients without paying per seat?
Does TrimStats need a cookie consent banner on European Webflow sites?
Can TrimStats track Webflow form submissions and CTA button clicks?
Co-founder of DotCamp LLC in Brooklyn, NY and lead engineer of TrimStats. Ships privacy-first web analytics, ClickHouse pipelines, and WordPress plugins used on 115,000+ active sites.
- • Architect of the TrimStats 1.96 KB gzipped browser tracker, Fastify collector, and ClickHouse MergeTree pipeline
- • Co-founder of DotCamp LLC (est. 2019), creator of Ultimate Blocks (50,000+ installs), WP Table Builder (50,000+ installs), Tableberg, and OptimizeCamp
- • WordPress.org plugin & theme developer since 2016 with 1,200+ community support replies and 5M+ cumulative plugin downloads
Verification standard: Code snippets, custom event payloads, and webhook contracts for Webflow are verified against the live TrimStats tracker (1.96 KB gzipped) and collector schema as of 2026-11-30.
Related documentation and guides
Instrument Webflow in under 60 seconds
Start on Starter ($17/month for 100,000 monthly events), with cookie-less privacy defaults and full access to revenue webhooks, funnels, cohorts, and UI friction.