Skip to content

Site builders

Framer analytics with CrispStats

To add CrispStats to a Framer site, paste the script tag into the site-wide custom code, placed at the end of the head, and publish. Framer changes pages without a full reload, and the script counts each new page because it watches the History API.

Updated

Set up CrispStats on Framer

  1. 01

    Step 1: Copy the Framer snippet

    In the CrispStats dashboard, open your site’s Settings, select Tracking code and choose the Framer tab. It has your public key (it starts with cs_pk_) and your domain filled in. The key is safe to publish.

    Replace the highlighted values with your own.

    <scriptdeferdata-site="cs_pk_your_site_key"data-domains="example.com"src="https://in.crispstats.com/d.js"></script>
  2. 02

    Step 2: Open the site-wide custom code

    Framer’s help article puts it under Project Settings, on the Custom Code tab: select Add Script, or the + icon if the project already has code. Older projects show the same setting under Site settings, General, Custom code, with an End of `<head>` tag field.

  3. 03

    Step 3: Place it in the head, on every page

    Name the script so you can find it later, such as CrispStats. Choose a placement in the head (Framer’s custom code lesson lists the start or end of the head and body), do not limit it to specific pages, and save.

  4. 04

    Step 4: Publish and open the live site

    Framer does not load custom code in the canvas preview, so publish, then open the published URL in a normal browser window.

  5. 05

    Step 5: Turn on extra events (optional)

    The switches under Extra events on the Tracking code tab add attributes to the tag. Copy the updated tag, replace the one in Framer and publish again. With outbound links and web vitals on:

    <scriptdeferdata-site="cs_pk_your_site_key"data-domains="example.com"data-outbounddata-vitalssrc="https://in.crispstats.com/d.js"></script>
  6. 06

    Step 6: Count a click in an embed (optional)

    In an embed or code component where you control the HTML, add data-cs-event to a link or button. No JavaScript is needed; in your own code, call window.crispstats?.("booking click") instead.

    <a href="https://example.com/book" data-cs-event="booking click">Book a call</a>

Check that it works

Open your published site with the developer tools on the Network tab: d.js loads from in.crispstats.com and a POST to /e gets 202. Click to another page: a second POST goes out for the new URL, and both pages appear on the Realtime screen within seconds. The status row on the Tracking code tab shows Receiving events. If nothing arrives, check that the tag went into a head position and not the body, that you published after saving, and that data-domains names the domain visitors use.

What the install check shows once the first events land, on the demo site, Quillbook, on generated traffic.
  • What you get

    • One pageview for the first load and one more for each page a visitor moves to, with the previous page as referrer. The same URL twice in a row is one pageview.
    • Which channel brings visitors to each Framer page: search, social, a launch post tagged with UTM parameters, or an AI assistant such as ChatGPT.
    • A core script of about 2.2 KB gzipped that loads with defer, so it does not hold up the first paint of your Framer page.
    • Optional web vitals from real visits (LCP, INP and CLS at p75), outbound link clicks and file downloads, each switched on with one attribute.
    • Sign-ups and form submissions as goals: send visitors to a thank-you page and add a goal with a Page visit rule for its path.
  • Notes and limits

    • Framer’s help article and lesson, read on 2026-11-23, did not state a plan requirement for custom code, and the pricing page did not mention it. If you do not see the setting, check your plan with Framer.
    • Framer’s pricing page says a custom domain needs a paid plan. On the Free plan the site lives on Framer’s free domain, so put that hostname in data-domains, or visits are not counted.
    • If Framer runs the code again on a later page, the second copy of the script does nothing, so visits are never counted twice.
    • Scrolling to a section with an #anchor link is not a new page. Framer routes with real paths, so leave out data-hash.
    • Framer cannot run the forwarding rule that serves the script from your own domain, so the script loads from in.crispstats.com and visitors whose ad blocker stops that host are not counted. If your domain already runs through Cloudflare, a Worker route on it can do the forwarding: see the proxy guide.
    • Preview and staging hostnames are left out when data-domains lists only your own domain. Add a hostname to count it too.

The docs page covers the optional steps this guide leaves out.

Setup questions. Straight answers.

What people ask before they connect it.

  • Yes. Framer changes the URL through the History API when a visitor moves between pages, and the script counts each new URL as one pageview.

  • Framer does not load custom code in the canvas preview. Publish the site, then open the live URL on the domain listed in the tag.

  • Framer's help article and custom code lesson did not name a plan when we read them on 2026-11-23. If the Custom Code setting is missing in your project, ask Framer what your plan includes.

  • Yes. Site-wide custom code is on every page Framer publishes, CMS item pages included, and each one is reported under its own path.

  • A Framer site sends pageviews only, unless you tag buttons with data-cs-event. Every account starts with a 14-day free trial with every feature and no card; then Starter is $5 a month for 250,000 events. Paid plans never pause: if a launch pushes you past your plan, extra events are billed and nothing is dropped.

Not answered here? Write to hello@crispstats.com

Go further

Related

  • Web analytics for startups

    Funnels, retention, revenue attribution and uptime from the first day, on a price that stays small while you find your market.

  • Funnels and goals

    Find the step where people leave, and count what matters.

  • Core Web Vitals in plain English

    What LCP, INP and CLS measure, the good and poor thresholds for each, why the 75th percentile matters, and the fixes that usually move them.

  • Cookieless analytics explained

    How cookieless analytics counts unique visitors with a daily rotating hash instead of a cookie, what it can and cannot tell you, and the trade-offs.

  • Webflow analytics

    Add CrispStats to Webflow by pasting one script tag into Site settings, Custom code, Head code, then publishing.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.