Skip to content

Building Privacy-First Analytics for Ghost Publishers

Work · Project: circ, analytics for Ghost publishers

circapp.io


Why I built this

I didn't set out to build an analytics product. I needed one, and there aren't a lot of options that do what I wanted.

Ghost's built-in analytics are a good starting point. They're great for a quick overview of how the site is doing. What they weren't doing was helping us make editorial decisions, and that's what we needed analytics for. The gaps added up:

We tried some alternatives. The ones we tried either returned data that didn't add up, or needed heavy customization before they'd show the metrics we were actually after. Neither is a great place to be when you're trying to decide what to publish next.

So I built it. Some tools exist because someone got tired of waiting for them.

Starting from what it won't collect

I started with a list of what it wouldn't collect. No cookies. Nothing stored on the reader's device. No member IDs, emails, or names. No keystroke tracking, no mouse tracking, no session recordings.

The part worth explaining is how it counts unique readers. circ takes the IP address and browser string, mixes them with a secret that's specific to the site and the day, and keeps only the resulting code. The inputs get dropped. The secret is deleted about an hour after the site's day ends, and nobody keeps a copy. A code from Tuesday can't be traced back to a person, and it can't be matched to the same reader on Wednesday.

That choice has a cost, and I'd rather say so up front. There are no returning-visitor counts. Weekly and monthly unique figures are sums of daily ones, and they're labeled that way. Some publishers will want that data. circ isn't for them.

What I built

The tracker. One line in Ghost's Site Footer. It's about 1.5 KB with no dependencies, and it sends roughly two requests per pageview — one when the page loads, one when the reader leaves. No heartbeats. It's pinned to a specific version with an integrity hash, so a browser only runs the exact file it was meant to.

The Ghost connection. A read-only Content API key from a custom integration, stored encrypted. It lets circ match pageviews to actual posts, authors, and tags, and the match survives a slug change. Rename a story and it keeps its history.

The reports. Scroll depth through the story body in 10% steps, and engaged time — how long the page was actually visible, capped at 30 minutes. Those roll up by story, author, and tag, with timing by hour and day of week in the publisher's time zone. The sources view shows how far the readers each source sends actually get. Link clicks and member segments (signed-out, free, paid) exist too, but both are off by default, and any segment under 5 readers is withheld.

The infrastructure. circ runs on Cloudflare. If reporting goes down, pageviews are still accepted, and every event is stored as received so reports can be rebuilt. Each publication gets its own database, never combined with anyone else's.

Overview with 30-day comparisons (sample data, fictional publication).
Scroll depth and engaged time for a single story (sample data).
Pageviews by hour and day of week (sample data).

Where it stands

circ is new. There's no self-serve signup yet, so getting started means an email and a conversation. From there it's three steps: paste the line into Site Footer, add the Content API key, and update the site's privacy policy using the wording the dashboard suggests. Pricing depends on the site.

The screenshots on circapp.io use sample data from a fictional publication, and I'm not going to pass those off as customer results.

What I'd tell another publisher

Decide what you want to know before you open a dashboard. Which kinds of stories get finished? Which sources send people who actually read? Analytics without a question turns into a screen you check out of habit.

Know what you're giving up. With no cross-day tracking, you won't see returning readers. Two people on the same connection and browser, like an office, count as one. If you need ad attribution or per-reader funnels, circ is the wrong tool, and I'll tell you that.

Keep your privacy policy honest. Whatever you run, say plainly what it collects. I'm not a lawyer, and what that needs to say depends on where your readers are, so check with one if you're unsure.

The numbers worth having are the ones that change what you publish next. Everything else is decoration.

If you run a Ghost site and want to talk it through, I'd like to hear what you're trying to learn. The first conversation is free. No obligation, no pitch. Get in touch, or see exactly what circ collects, field by field, at circapp.io/how-it-works.

circ is my own product, so I'm not a neutral reviewer here. It's independent of Ghost Foundation and isn't affiliated with or endorsed by it. Ghost is a trademark of Ghost Foundation.

Comments

Next