Count your visitors. Leave them alone.

Skopia is open-source web analytics that deploys to your own Cloudflare account in one click. It sets no cookies, needs no consent banner and leaves you no database to look after. Every row of data stays in infrastructure you control.

you.dev
Pageviews today
1,284
Online now
7

Simulated traffic in the real event shape. These numbers are not a claim about anyone's site.

Latest arrival AU /pricing

A country lights when a pageview arrives from it and fades over a minute. The collector keeps that two‑letter code and nothing finer: no city, no coordinates.
  1. 09:41:52AU/pricingnews.ycombinator.comdesktop
  2. 09:41:47DE/(direct)mobile
  3. 09:41:40US/docs/installgithub.comdesktop
  4. 09:41:33GB/bloggoogle.commobile
  5. 09:41:29IN/duckduckgo.comdesktop
  6. 09:41:21JP/changelog(direct)tablet
  7. 09:41:14NL/pricinggoogle.commobile
  8. 09:41:06SE/lobste.rsdesktop

Counted without setting a cookie.

What happens to one pageview

The script sends three fields on every pageview, plus the referrer and screen width when there is one. A Worker in your account derives a few more, drops everything that could identify a person, and writes one row to Analytics Engine. Nothing calls home to the Skopia project, and CI checks that on every build.

Showing: AU, /pricing
  1. In the browserPOST /e

    {
      "t": "pv",
      "s": "default",
      "p": "/pricing",
      "r": "https://news.ycombinator.com/",
      "w": 1440
    }

    t, s and p are always sent; r only with the first hit after a page load. The script never reads or writes cookies, localStorage or sessionStorage.

  2. Your WorkerDerive, then drop

    ip
    203.0.113.24hashed, never stored
    cf.city
    Sydneynever stored
    cf.country
    AU
    user-agent
    Chrome · macOS · desktop
    referrer
    news.ycombinator.com
    vid
    3f9c01a2e4b7d855daily-salted HMAC
  3. Your Analytics EngineOne row

    pathname/pricing
    referrerHostnews.ycombinator.com
    countryAU
    deviceClassdesktop
    browserChrome
    vid3f9c01a2e4b7d855

    The SiteLive Durable Object bumps the live count and writes an exact daily rollup to D1.

The visitor hash rotates every UTC day, so the same person tomorrow counts as someone new. It is also why Skopia can't report monthly uniques.

Skopia will

  • Keep every row in your account. Not on someone else's server. Query it, export it or delete it with Cloudflare's own tools.
  • Show you the live picture. Realtime, top pages, sources, devices and geography.
  • Stay out of the way. 554 bytes gzipped, loaded with defer. It never blocks paint.
  • Be readable. AGPL-3.0, every line on GitHub. Read it, fork it, audit it.

Skopia won't

  • set a cookieVisitors are counted with a hash whose salt changes every day.
  • keep your visitors' IP addressesThe IP goes into that hash, then it's dropped.
  • track across sitesThe site is part of the hash, so one person on two sites counts as two.
  • make you run a databaseD1 is provisioned for you and run by Cloudflare.
  • need a consent bannerIn most jurisdictions. Confirm your own obligations with counsel.

The tracking script is 554 bytes

The bar is to scale against the 2 KB budget in scripts/check-script-size.mjs. gzip header 1f 8b 08 00 00 00 00 00 02 13 CRC32 + length 1b 1d e9 ab b0 03 00 00
<script defer
  src="https://skopia.you.workers.dev/skopia.js"
  data-site="default"
  data-endpoint="https://skopia.you.workers.dev/e"></script>

Paste it into your page's head. It loads with defer, so it never blocks the first paint, and it follows client-side route changes on its own. Custom events are one call: skopia.track(name, props).

The dashboard

Realtime visitors, pages, sources, devices, campaigns and custom events. Any view can become a public, read-only link cached at the edge. This one is the project's own demo site, with its real and fairly modest traffic.

app.skopia.dev/share/shr_UW5R…Open it live Skopia's overview dashboard for the public demo, shown at actual size: 14 visitors, 16 pageviews, 1.1 views per visitor and 86% single-page visits over the last 30 days, above a visitors chart.

How it compares

Hosted analytics is effortless but keeps your data. Classic self-hosting keeps your data but hands you a server. Skopia is built from Cloudflare parts you already rely on: Workers, Analytics Engine, D1, KV and Durable Objects.

SkopiaHosted SaaSOther self-host
Raw data lives in your accountYesNoYes
Server or database to runNoneNoneYours
Cookieless, no consent bannerYesYesVaries
Monthly unique visitorsNo, the hash resets dailyVariesVaries
Import past analyticsNot yetVariesVaries
Cost at scale~$5/mo$19–90/moA server, plus your time

Where it falls short

  • Keep raw events past 90 days. That is Cloudflare's cap on Analytics Engine. Daily rollups in D1 are kept for as long as you like.
  • Count monthly uniques. The visitor hash resets every day by design.
  • Run anywhere but Cloudflare. It is built from Cloudflare primitives. If you need another cloud, this isn't it.
  • Import your history. There is no importer yet. Run it alongside Google Analytics or Plausible while you switch.

What it costs to run

At 500K pageviews a month, Cloudflare bills you $0. Skopia itself is free.

Inside Cloudflare's free tier, which covers roughly 0.9M pageviews a month.

Beyond 10M, usage adds roughly $0.55 per extra million, so 20M comes to about $10.50. The software is AGPL-3.0 with every feature unlocked: unlimited sites and events, realtime, geography and custom events.

Questions before you deploy

Where does my data live?

In your own Cloudflare account. Raw events go to Workers Analytics Engine and daily rollups to a D1 database you provision. Skopia has no central server and never sees your visitors, so the data never leaves your infrastructure.

Do I need a consent banner?

Skopia sets no cookies, stores no personal data by default, and never tracks people across sites, so in most jurisdictions no consent banner is required. Confirm your specific obligations with counsel.

What does it cost to run?

The software is free and AGPL-3.0 licensed. You pay Cloudflare directly: $0 on the free tier (roughly up to 0.9M pageviews a month), and around $5 a month on Cloudflare's Workers Paid plan once you pass that ceiling.

How big is the tracking script?

554 bytes gzipped, about 0.6 KB. It loads deferred and never blocks rendering.

Can I migrate from Google Analytics or Plausible?

Not today. Skopia starts collecting from the day you deploy and there's no historical importer yet. You can run it alongside your current analytics during the switch.

Do I have to manage a database?

No. The Deploy to Cloudflare button provisions D1 and the rest of the stack for you. There's nothing to patch, scale or back up.

Deploy it to your account

The button forks the repository and creates everything below inside your Cloudflare account. Then it asks for four secrets; the install guide shows how to generate them.

  1. WorkerCollector, dashboard and share links, in one
  2. Analytics EngineRaw events, 90 days
  3. D1Sites, users and daily rollups
  4. KVResponse cache and the daily salt
  5. Durable ObjectSiteLive: live counts, exact rollups