Webflow IntegrationVisual CMS & Marketing Sites (Webflow Hosting)

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.

Imtiaz Rayhan
Imtiaz RayhanCo-Founder & Lead Engineer, DotCamp & TrimStats
Tested against Webflow & live TrimStats APIs
Seeded demo workspace
TrimStats Overview dashboard displaying cookie-less Webflow traffic, active dwell time, campaign UTMs, and top CMS landing pagesTrimStats Overview dashboard displaying cookie-less Webflow traffic, active dwell time, campaign UTMs, and top CMS landing pages
Monitor Webflow marketing campaigns, landing pages, and lead goals in real time with zero cookie consent popups.
Direct answer

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. 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 Codehtml
    1<script
    2 defer
    3 src="https://collect.trimstats.com/t.js"
    4 data-site="pk_live_your_key"
    5 data-friction="true"
    6></script>
  2. 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 Codehtml
    1<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. 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. 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.

Recommended taxonomy

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 nameWhen to fireSample properties
lead_form_submittedProspect submits a Webflow contact, quote, or demo request form.{"form_name":"demo_request"}
pricing_cta_clickedVisitor clicks a primary CTA button inside a Webflow pricing section.{"plan":"growth"}
calendar_embed_clickedProspect clicks a Calendly or Cal.com booking trigger on a landing page.{"page":"contact"}
case_study_downloadedVisitor downloads a client PDF deck or whitepaper (also tracked automatically on .pdf links).{"asset":"agency_deck"}
Seeded demo workspace
TrimStats UI Friction report highlighting dead-clicked cards, rage-clicked buttons, and 90% scroll reach on Webflow pagesTrimStats UI Friction report highlighting dead-clicked cards, rage-clicked buttons, and 90% scroll reach on Webflow pages
Spot confusing decorative cards or broken Webflow interaction triggers without paying for or loading heavy session-replay bundles.

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)

KB
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 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
LabelThird-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?
Webflow does not execute Custom Code inside the Designer preview mode. Publish your project to your webflow.io staging domain or custom production domain and open the live URL to verify beacons.
Does Webflow require a paid Site Plan to paste TrimStats in Custom Code?
Webflow enables project-wide Custom Code (<head> and <footer>) on paid Webflow Site Plans and eligible Workspace plans. Once enabled, a single Head Code snippet covers every static and CMS collection page.
How do I exclude my own agency team visits on a client Webflow site?
Run localStorage.setItem("trimstats_ignore", "1") once in your browser console on the client domain so t.js skips all internal QA and design edits cleanly.
Can we share live Webflow analytics with clients without paying per seat?
Yes. TrimStats charges $0 per extra workspace seat and lets you generate private 192-bit read-only /share/sh_... links (enforcing noindex and no-referrer headers) for every client site.
Does TrimStats need a cookie consent banner on European Webflow sites?
Not in default cookie-less mode. TrimStats stores zero browser cookies and zero localStorage, rotates a 32-byte SHA-256 daily salt every 24 hours on German EU servers, and keeps Webflow landing pages free of analytics-only consent banners.
Can TrimStats track Webflow form submissions and CTA button clicks?
Yes. Outbound links and file downloads track automatically, and you can attach a 3-line listener in Webflow Footer Code calling window.trimstats?.("event", "lead_submitted", { form: "demo" }) to feed conversion goals and multi-step ClickHouse funnels.
Imtiaz Rayhan
Integration guide verified by
Imtiaz Rayhan (Co-Founder & Lead Engineer, DotCamp & TrimStats)

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.

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.

Verified against live TrimStats APIs and tracker bundle.