Add analytics and revenue tracking to your Webflow site
Webflow hosts the site, and the money comes through a checkout somewhere else. A tag in the head code and a read-only key show both in one place.
Updated Dec 4, 2026.
The short answer.
In Webflow, open Site settings, the Custom code tab, and paste the Appsdash script tag into Head code. Save, then publish the site: saved code reaches visitors only after a publish. Open the live site once and the visit counts. Then connect the Stripe, Paddle, Lemon Squeezy or Polar account behind your checkout with an API key (read-only where the provider allows it) to see revenue and MRR next to visitors.
The tag for Webflow.
Add your site to Appsdash first: its install step shows this tag with your own id in place of YOUR_SITE_ID.
<script defer src="https://appsdash.co/v/s.js" data-site="YOUR_SITE_ID"></script>Head code in Webflow
Site-wide code lives in Site settings, under Custom code, in the Head code box. Code there goes into the <head> of every page Webflow serves, which is where the Appsdash tag belongs and what the install check reads.
Custom code needs a paid plan: an active Site plan, or a Core, Growth, Agency or Freelancer Workspace. Save the settings, then publish to the domains you use. Until that publish, the live site keeps its old head.
Revenue from your checkout
Connect the provider your buy buttons point to in Settings > Revenue: a restricted key with Read for Stripe, an API key with Read for Paddle, an organization token with read scopes for Polar, or a Lemon Squeezy API key (those can't be limited to read). Appsdash reads every 15 minutes and never writes, then shows revenue, MRR and paying customers beside the site's visitors.
To tie a sale to the visit that bought, the checkout has to carry the visit id. For Stripe Payment Links, paste the second script below into the same Head code box: it adds client_reference_id to every buy.stripe.com link when it's clicked.
Check that it works
Open the live address you added once with any ad blocker off. Visits in the Designer's preview don't count. The Appsdash install step says Counting when the first visit lands.
Check installation, in the site's Settings in Appsdash, opens your home page and sends a test visit. If it can't find the tag, the site most likely wasn't published after the code was saved.
How to set it up.
14 days of everything, no card. Then from $29 a month for up to 5 apps, up to $99 for 50, every feature on each.
- Add the site. Type its published address. Appsdash gives you the tag with your site id filled in.
- Paste into Head code. Site settings, Custom code, Head code. Save.
- Publish and visit. Publish to your domains, then open the live site once. The install step turns to Counting.
- Connect payments. A key for the provider behind your checkout, read-only where it allows, in Settings > Revenue.
Tie each sale to its visit.
Optional: revenue counts without it. With it, every sale shows the source, page and campaign of the visit that bought.
<script>
document.addEventListener("click", (e) => {
const a = e.target.closest('a[href^="https://buy.stripe.com/"]');
const visit = window.appsdash?.visit?.() ?? "";
if (!a || !visit) return;
const url = new URL(a.href);
url.searchParams.set("client_reference_id", visit);
a.href = url.toString();
}, true);
</script>Payment Links keep client_reference_id from the URL on the Checkout Session. The key needs Checkout Sessions read.
What it doesn't do.
- Custom code needs a paid Webflow Site plan or a paid Workspace.
- Some ad blockers stop analytics scripts, so a few visitors won't show.
- Without the visit id on the checkout, a sale still counts, but is matched to a visit only if exactly one person was on the site in the 30 minutes before it.
Questions.
Head code or footer code?
Head code. The tag loads after the page, so it doesn't hold it up, and the first view counts early.
Does it work on every page, CMS pages too?
Yes. Site-wide head code is added to every page Webflow publishes.
Will it slow the site down?
No. The script is under 2 KB and loads after the page.
Read next.
- Add analytics and revenue tracking to your Framer site
- Analytics for all your apps in one place
- Revenue per traffic source
- Stripe revenue in Appsdash
- Polar revenue in Appsdash
- All guides
Sources, checked Dec 4, 2026
Spotted something wrong? Write to younes@appsdash.co and it gets fixed.
See which app and which channel pays.
14 days free · no card