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.
Latest arrival AU /pricing
- 09:41:52AU/pricingnews.ycombinator.comdesktop
- 09:41:47DE/(direct)mobile
- 09:41:40US/docs/installgithub.comdesktop
- 09:41:33GB/bloggoogle.commobile
- 09:41:29IN/duckduckgo.comdesktop
- 09:41:21JP/changelog(direct)tablet
- 09:41:14NL/pricinggoogle.commobile
- 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.
-
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.
-
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
-
Your Analytics EngineOne row
pathname /pricing referrerHost news.ycombinator.com country AU deviceClass desktop browser Chrome vid 3f9c01a2e4b7d855 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
<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).
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.
| Skopia | Hosted SaaS | Other self-host | |
|---|---|---|---|
| Raw data lives in your account | Yes | No | Yes |
| Server or database to run | None | None | Yours |
| Cookieless, no consent banner | Yes | Yes | Varies |
| Monthly unique visitors | No, the hash resets daily | Varies | Varies |
| Import past analytics | Not yet | Varies | Varies |
| Cost at scale | ~$5/mo | $19–90/mo | A 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 pageviews a month, Cloudflare bills you . 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.
- WorkerCollector, dashboard and share links, in one
- Analytics EngineRaw events, 90 days
- D1Sites, users and daily rollups
- KVResponse cache and the daily salt
- Durable ObjectSiteLive: live counts, exact rollups