Before you start
Create a free Cool Analytics account and add your site. You'll get a site ID — replace YOUR_SITE_ID in the code below with it. The dashboard shows the snippet with your ID already filled in.
Install on Webflow
- 1Open your project's Site settings and go to the Custom code tab.
- 2Paste the snippet into the Head code box and click Save.
- 3Publish your site — custom code only goes live after publishing.
<script defer src="https://coolanalytics.dev/hb.js" data-site="YOUR_SITE_ID"></script>
Check that it works
Open your live site in a new tab, then open your Cool Analytics dashboard. Your visit appears on the live map within seconds — with the page you're on, where you came from and your browser.
Nothing showing up? Make sure you're looking at the published site (not a preview or editor), that an ad blocker isn't blocking the script, and that you're not testing on localhost.
Track signups, purchases and clicks
Pageviews, sources, countries and outbound link clicks are tracked automatically. For the moments that matter to you, send a custom event. Events named like a signup show up as signups, and events with an amount show up as revenue — on the live map and per traffic source.
// anywhere in your Webflow site's browser code
window.hb?.track("signup");
// with an amount, it shows up as revenue
window.hb?.track("purchase", { amount: 49 });Webflow tips
- Custom code doesn't run inside the Webflow Designer, only on the published site.
- Track a form submission by adding hb.track('lead') to the form's success handling in custom code.
Want to keep your own visits out of the stats? Open your site once with #hb-ignore at the end of the URL. That browser is excluded until you visit with #hb-track.
Webflow analytics FAQ
Can I use it on the free Starter plan?+
Webflow only allows site-wide custom code on paid plans, so you'll need a paid Site plan to add the snippet.
Does it work on the webflow.io staging domain?+
Yes. Visits to the .webflow.io domain are tracked too, so you can test before going live.
Do I need a cookie banner on Webflow?+
Not for Cool Analytics — it doesn't use cookies.