← Studio dev log

When the dashboard lies: forensics on bot-inflated traffic

#data#infra#web#solo-founder

A wide field of dim dots falls into a funnel crossed by three narrowing lines, and only five amber dots glow at the bottom

The traffic chart on my studio dashboard looked great this week. Too great. That dashboard is a private page of traffic and usage for each of my products. One product was showing daily visit counts that nobody had done anything to earn. The numbers were real in the sense that the edge, the CDN servers in front of the site, had served those requests, but they were lying about who was on the other end.

What the edge actually counts

Nobody tells you this about CDN analytics: the daily request totals count everything. Bots, crawlers, API pings, health checks, the lot. The unique-visitor figure is distinct IP addresses including bots, so it isn't a human count either. When I compared raw edge pageviews against the RUM beacon, a small script that only fires client-side in a real browser, the edge was inflated 4 to 5 times. I had read that this is normal. Seeing it on my own data was different.

Bots were the majority of the main traffic number on the dashboard, and the chart made it look like traffic was climbing. The same inflation turned up in two more places, each wearing a different disguise.

Four tiers with honest labels

The fix wasn't a better single number. It was layered verification, with every tier labeled for what it measures:

  • Raw edge requests: kept on the chart but hidden in the legend by default, labeled "incl. bots & app API, not humans", where app API means API calls rather than page loads.
  • Edge visits: filtered to traffic that looks like people and to successful (HTTP 200) page responses. Headless browsers still get through.
  • Beacon visits: the beacon fires client-side, so crawlers that don't run JavaScript are excluded. I use it as a cross-check.
  • Verified humans: a strict analytics event that requires 8 seconds of dwell plus an interaction.

Each tier is a stricter filter than the one above it, and no tier pretends to be something it isn't.

EACH TIER IS A STRICTER FILTER Raw edge requests Edge visits Beacon visits Verified humans 4 to 5 times inflated: bots, crawlers, API pings bot-partial: headless browsers remain client-side cross-check 8s dwell + an interaction keep eyeball traffic, HTML, status 200 must run in a real browser strict event gate
The gap between the top bar and the bottom bar is the finding. Hiding either one hides it.

The same lie in the social tiles

The dashboard's social tiles, which show 30-day totals for my social accounts, had a different version of the disease. The TikTok metrics coming back from the platform's API were account-lifetime counters: total views since the account existed. The dashboard summed those into 30-day tiles as if they were period totals. A lifetime counter summed across a window doesn't give the window's flow. It gives a number that looks big and means nothing.

Overlapping metrics were double-counted too. Facebook page impressions and media views both counted toward views, and so did Pinterest engagement and pin clicks. Follower daily-gain series were charted as levels instead of deltas, so the line said nothing about growth.

The rebuild keeps one canonical metric per channel per category. Lifetime counters are split out and excluded from windowed totals. Where accumulated daily snapshots exist, a lifetime counter yields a derived daily delta. Channels that report weekly, like X, stay off the daily axis entirely. A note under the chart states every exclusion, so the reader knows what's missing.

Visitors equal to views means crawlers

One project's raw pageview count had the cleanest tell. A human browsing a site generates several pageviews per visit. A crawler hits one page and leaves. So when visitors roughly equal views, I'm looking at crawlers, and the raw pageview event wore that signature openly for weeks.

The fix was the strict human-signal event: 8 seconds of dwell time plus an interaction such as a scroll or a click. It only fires for real people doing real things. Raw pageview visitors got demoted to a context line on the chart, deselected in the legend by default.

A guard against flattened charts

One small change made a big difference. Bot-scale series start hidden in the legend, but only when they would flatten the primary line. The threshold is 8x: if a raw series is 8 or more times the primary human series, the primary would occupy less than 12% of the axis and become unreadable.

// Series whose scale would flatten the primary human line start
// legend-deselected. One legend click restores any of them.
var primaryMax = hasVerified
  ? maxOf("verified")
  : hasSessions ? Math.max(maxOf("visitors"), maxOf("appUsers"))
  : maxOf("beaconVisits");
// 8x+ the primary means the primary occupies <12% of the axis
var edgeOff = maxOf("edgeVisits") > primaryMax * 8;

The pattern is reusable: measure the primary series, measure the context series, and hide the context when it would crush the axis. One legend click restores it. What a reader can't do is read a chart where the interesting line is 3 pixels tall.

Every single number lies

I spent the first hour hunting for the one correct number. There isn't one. Raw edge counts include bots. RUM beacons miss people with ad blockers. Session analytics count someone who bounced in 2 seconds. The 8-second event is the strictest filter, but it's also the newest, so it has no history.

Un-gated counters lie, and the fix is layered verification instead of one better number. Show every tier, label what each one measures, and compare them. When the verified-humans line diverges from the raw edge line, that gap is the story.

This is the build log for Studio (aneury.org) · All entries · Weekly essays