Cloud or self-host on your own Cloudflare account

Website analytics for dental and medical clinics

Visits, booking funnels, session replay, feature experiments and errors in one place, running on Cloudflare. One script tag, no cookies, and the data still belongs to your clinic.

~12 KB
Gzipped tracker, loaded with defer. SPA route changes are tracked automatically.
0 cookies
No cookies and no stored IP addresses. By default, visitors are counted with a hash that resets every month.
300+ cities
Events are collected on Cloudflare’s network, close to every visitor.
1 codebase
Cloud and self-host run the same code on the same Cloudflare stack.

Every clinic number in one dashboard

Measure visits to the booking page, find where patients drop off, watch sessions, roll out features per location and fix errors, instead of stitching five tools together.

Live clinic traffic

See how many people are on the booking page right now, where they came from and what they just clicked.

37people viewing

  • pageview/dat-lichVNnow
  • booking_click/dich-vuVN3s
  • pageview/bang-giaVN7s
  • form_start/dat-lichVN12s

Booking funnel

Find the exact step where patients abandon the booking.

  1. 100%Site visit
  2. 46%Viewed services
  3. 18%Booked appointment
  4. 11%Appointment confirmed

Patient return rate

Weekly cohorts show who keeps coming back to the clinic.

Booking session replay

Session recordings on the booking page, with sensitive inputs masked and sampling.

Feature experiments per location

Roll out one clinic at a time, target the right patient group and measure the effect on bookings.

  • new-booking-formrolled out to 50% of clinics
  • service-catalog-v2rolled out to 100% of clinics
  • booking-remindersOff

Errors on the booking page

Exceptions grouped into issues and linked to the sessions where patients hit them.

ErrorEventsUsers
TypeErrorCannot read properties of undefined (reading 'id')12834
ChunkLoadErrorLoading chunk 7 failed4119
UnhandledRejection429 Too Many Requests125

Features for clinics

  • PostHog SDK compatible
  • MCP server
  • Clinic insights
  • Booking page heatmaps
  • Clinic site speed
  • Clinic campaign reporting
  • Patient sources
  • Booking goals
  • Patient cohorts
  • Patient journeys
  • Patient satisfaction surveys
  • Automated workflows
  • SQL data warehouse
  • LLM analytics
  • Logs and traces
  • Clinic revenue
  • Alerts when bookings drop
  • Notebooks
  • Clinic email reports
  • Share links
  • Clinic boards
  • Historical import
  • Dentists and staff
  • Account security
View all features

From one script tag to answers

Every part runs on Cloudflare. On Cloud we operate it for you. Self-hosted, all of it lives in your account.

  1. Add the script

    Paste the snippet into the clinic website. Pageviews, SPA navigations and errors start flowing in right away.

    <script defer src="https://YOUR_INGEST_HOST/script.js"
      data-website-id="YOUR_WEBSITE_ID"></script>
  2. Collect at the edge

    An ingest Worker validates each event, Queues absorb traffic spikes, and an aggregator writes each website’s events and rollups to its own SQLite store on Durable Objects.

  3. Analyze and act

    Explore dashboards and reports, share read-only links with dentists and reception, and send scheduled email reports.

Your websitescript.js

Why clinics leave their old analytics

Lightweight measurement that respects patient privacy, with data your clinic can actually access.

See comparisons
  • Patient privacy by default

    No cross-site tracking and no stored IP addresses. Events belong only to your clinic website.

  • Cookieless tracking

    The tracker sets no cookies, which means fewer consent prompts and cleaner pages.

  • Your clinic owns the data

    Export CSV, query events in SQL or delete the data at any time. Data for each clinic lives in its own store; self-host to keep full control.

  • One tool instead of five

    Analytics, replay, flags, surveys, errors, logs and LLM traces share one script and one dashboard.

Frequently asked questions

Do I still need a cookie banner?

By default Hanu.Analytics sets no cookies and never stores IP addresses; visitors are counted with a hash that resets every month. If you turn on “Remember visitors across sessions”, a random visitor id is kept in localStorage. Whether you need a consent banner still depends on where you operate, the settings you choose and the other tools your site uses.

Will the script slow my site down?

The tracker is about 12 KB gzipped, loads with defer and sends events with keepalive requests, so it stays off your critical rendering path.

Can I self-host Hanu.Analytics?

Yes. The same code deploys to your Cloudflare account using Workers, Durable Objects, D1, R2, KV, Queues and Workflows. Self-hosting is free for non-commercial use; commercial use needs a license.

Can I bring my existing data?

On the Cloud plan you can import pageview history from GA4, Plausible, Matomo or Hanu.Analytics CSV exports.

Where is my data stored?

On Hanu.Analytics Cloud, each website’s events live in its own SQLite store on Cloudflare Durable Objects, account settings in D1 and session recordings in R2, all run by us on Cloudflare. When you self-host, everything stays in your own Cloudflare account.

I already use PostHog. Can I switch without rewriting my tracking?

Yes. Point posthog-js, posthog-node or posthog-python at your Hanu.Analytics ingest host and use the website’s project key (fb_pk_…). Events, identify, groups, feature flags and exceptions work as before; session recording and surveys use Hanu.Analytics’s own tracker.

Can AI tools read my analytics?

Yes, through Hanu.Analytics’s MCP server. Connect Claude, Cursor or any MCP client with a personal API key to list events, run trends, funnels and retention, and query data with read-only SQL. Keys with the write scope can also add annotations and toggle feature flags.