Site Settings > Custom Code > Head Code · open source (MIT) · ask in plain English

Add analytics to Webflow.

Webflow ships you a fast marketing site but leaves measurement to bolt-on scripts. smolanalytics is a single script tag you paste into Webflow's site-wide head code. It autocaptures pageviews, clicks, form submits and errors with no extra work, and you ask the numbers back in plain English.

Site Settings > Custom Code > Head Code
<script src="https://YOUR-INSTANCE/sdk.js"></script>
<script>smolanalytics.init("WRITE_KEY", { host: "https://YOUR-INSTANCE" })</script>

Paste both tags in the Head Code box under Site Settings > Custom Code, then publish. Site-wide head code needs a paid Webflow Site plan.

how do I add analytics to webflow?

Webflow ships you a fast marketing site but leaves measurement to bolt-on scripts. smolanalytics is a single script tag you paste into Webflow's site-wide head code. It autocaptures pageviews, clicks, form submits and errors with no extra work, and you ask the numbers back in plain English.

In Webflow the two tags live in Site Settings > Custom Code > Head Code, which injects them before </head> on every published page. That is all the wiring smolanalytics needs. Autocapture starts on the next publish, so pageviews, clicks with their element chain, scroll depth, rage and dead clicks, and form submits all flow in without touching a single Webflow interaction or element ID.

What you measure on a Webflow site is usually funnel and form intent: which CTA gets clicked, where visitors bail on the contact form, which template page converts. For custom events fire smolanalytics.track("signup", { plan: "pro" }) from an embed or a button's custom attribute, and call identify(userId) once a visitor logs into a gated area. Then ask "how many form submits from the pricing page this week" from the dashboard bar or your editor over MCP, and the answer is a computed report, not a guess.

Honest pricing: 14-day full trial, no credit card. Then Solo $29/mo, never metered on seats or sites. Overage is $5/million with an emailed receipt, the dashboard never locks, and self-hosting the single Go binary is free forever (MIT).

Add analytics to Webflow tonight.

One snippet, or one endpoint. Tomorrow morning the verdict tells you which part of the funnel to fix.

questions

How do I add analytics to Webflow?
Webflow ships you a fast marketing site but leaves measurement to bolt-on scripts. smolanalytics is a single script tag you paste into Webflow's site-wide head code. It autocaptures pageviews, clicks, form submits and errors with no extra work, and you ask the numbers back in plain English.
Do I need a cookie banner?
Not in cookieless mode. smolanalytics can run without storing anything on the device, so there is no consent banner to add. You still get visitors, referrers, funnels, retention, and paths, and AI-assistant referrals (chatgpt.com, claude.ai, perplexity.ai) show up as their own channel.
Is it enough for a real product, or just page counts?
It does funnels, retention, paths, cohorts, and a daily verdict on what to fix, from the same events, and you ask it in plain English. It deliberately skips session replay, feature flags, and experiments. If you want a straight answer on what to fix, that you own and can self-host free, it fits.

keep reading