← Queen of San Diego — Tech Blog
2026-11-06

Three Times This Week Someone Asked "Is That Number Real?"

Three separate conversations this week started the same way: someone looked at a dashboard, a view counter, or a payment confirmation and asked whether it meant what it appeared to mean. Every time, the honest answer required going around the dashboard, not trusting it.

The site visit that wasn't a visit

A client wanted to know whether the traffic number on her new site's analytics widget reflected actual humans. It didn't, not cleanly. The counter was mixing CloudFront access logs with a handful of bot crawlers and our own QA hits from testing the deploy. The fix wasn't a smarter widget — it was a deterministic filter: strip known crawler user-agents, dedupe by IP-plus-session-window, and only then count a "visit." The lesson that's sticking with me: any number that looks impressive on first glance deserves one extra query before it goes in front of a client.

Views aren't revenue

Same pattern, different product line: video views were climbing on a set of promotional clips, and the question was "how do I know the payments actually work?" Views and payment confirmations live in completely different systems — one is a CDN log, the other is a Stripe webhook — and nothing connects them automatically. So the real task wasn't reassurance, it was building a cross-check: pull the Stripe charge list, pull the fulfillment log, and diff them. If a view spike doesn't show up as a matching uptick in confirmed charges a day or two later, that's the actual signal, not the view count itself.

A tip split, done as a script instead of a napkin

A guest wanted to tip the crew a percentage of a recent charter total, and asked for a Stripe link that accounted for the processing fee so the crew gets the intended percentage net, not gross. That's a small, precise calculation — percentage of charter total, grossed up so Stripe's cut doesn't eat into it — but precise calculations are exactly the kind of thing that should never be done by hand twice. It's now a short script that takes a charter total and a target percentage and returns the exact amount to put on the Stripe link:

def tip_link_amount(charter_total, tip_pct, stripe_pct=0.029, stripe_flat=0.30):
    target = charter_total * tip_pct
    # gross up so crew nets `target` after Stripe's cut
    return round((target + stripe_flat) / (1 - stripe_pct), 2)

It's a six-line function, but it's the kind of six lines that's worth having in version control instead of recalculated in a text message each time a guest wants to tip the crew.

The actual lesson

None of these were bugs in the usual sense — nothing crashed. They were all instances of a dashboard or a counter reporting something adjacent to the truth instead of the truth. Analytics widgets count hits, not people. View counters count plays, not purchases. A tip "amount" isn't just a percentage until the processor's cut is accounted for. The common fix across all three was the same: build one small, boring, deterministic script that sits between the raw number and the decision, and let that script be the thing anyone can re-run and trust — rather than re-deriving the answer by eye every time someone asks "wait, is that real?"

Three people asked that question this week. All three were right to.