Add analytics and revenue tracking to your Framer site

Your Framer site is where people first meet the product. Seeing which channel sends them, and which of them buy, starts with one script in its custom code.

Updated Dec 4, 2026.

The short answer.

In Framer, open Project Settings, the Custom Code tab, and click Add Script. Name it Appsdash, paste the script tag, place it at the end of the <head> on all pages, and set it to run once. Publish, open the live site once, and the visit counts. If the site sells through Stripe, Paddle, Lemon Squeezy or Polar, connect that account with an API key (read-only where the provider allows it) to see revenue beside visitors.

The tag for Framer.

Add your site to Appsdash first: its install step shows this tag with your own id in place of YOUR_SITE_ID.

Project Settings, Custom Code, Add Script: end of <head>html
<script defer src="https://appsdash.co/v/s.js" data-site="YOUR_SITE_ID"></script>

Custom code in Framer

Framer keeps site-wide code in Project Settings, under the Custom Code tab. Add Script asks for a name, where on the page the code goes and, if you want, which pages. Pick the end of the <head>, leave every page selected, and choose Once rather than Run on every page visit: the Appsdash script counts each later page change itself, so loading it once is enough.

Framer puts this code into the HTML it serves, which is what the install check reads, so nothing else is needed. Publish the site so the change goes live.

Revenue from a checkout link

If the site sells through a checkout on a payment provider's page, connect that provider 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, so Appsdash only ever calls read endpoints with it). Appsdash then shows revenue, MRR and paying customers beside the site's visitors.

To tie each sale to the visit that bought, the checkout link has to carry the visit id. For Stripe Payment Links that's the second script below: add it as another custom code script in the same place, and it adds client_reference_id to every buy.stripe.com link on the page when it's clicked.

Check that it works

Open your live address once with any ad blocker off. Visits on the editor'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, so you can tell the code is published before anyone comes.

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.

  1. Add the site. Type its published address. Appsdash gives you the tag with your site id filled in.
  2. Add Script in Custom Code. Project Settings, Custom Code, Add Script: end of <head>, all pages, run once.
  3. Publish and visit. Publish, then open the live site once. The install step turns to Counting.
  4. Connect payments. A key for the provider behind your checkout link, 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.

Stripe Payment Links: Any page with a buy.stripe.com linkhtml
<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.

  • Only the address you added and its subdomains count, so the editor's preview doesn't.
  • 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.

Start or end of the head?

The end of the <head>. The tag loads after the page, so it never holds it up either way.

Once or on every page visit?

Once. The script already counts each page change, so running it on every page visit would count some views twice.

Do I need a plugin?

No. One script in Custom Code is the whole install.

See which app and which channel pays.

Try Appsdash free

14 days free · no card