Case study
A report that builds itself, every month.
Client reporting usually means a dashboard nobody logs into, or a deck that is out of date the week after. This is a third way: the numbers are pulled, checked, published and locked, by script.
The problem
A monthly report has to answer one question for a client: did it work, and how do you know. Most reports fail on the second half. The numbers come from a screenshot, the comparison period is unclear, and nobody can retrace where a figure came from.
How it works
Five steps. Each one leaves a file behind, so any number in the report can be traced back to the API response it came from.
- 1. PullScripts call the Google Analytics and Search Console APIs for 28-day and 60-day windows, each against the window before it.
- 2. BuildAggregation, page classification and roll-ups turn the raw responses into the finished numbers.
- 3. VerifyA separate check compares the build with Google's own totals and fails the run if they disagree. A failed report is not published.
- 4. BakeThe numbers are written into one static HTML page as plain text. The page never talks to Google, so no credentials are ever in it.
- 5. PublishThe page goes to a dated URL on Cloudflare Pages, one folder per report and month. Earlier months are never overwritten.
What the report shows
Five tabs: an overview, search channels, AI search, the keywords ranking in the top 10, and page performance. Pages are split into the ones that were optimized and everything else, so the effect of the work can be read on its own.
Numbers from the September 2026 report, comparing 28 days with the 28 before: ranking keywords on optimized pages went from 653 to 1,346, and impressions on those pages rose 81%.
It says when it was pulled. The footer carries the pull date, taken from the data itself. A stale report can't pretend to be current.
Why static, not live
A live dashboard would need the client's Google credentials sitting behind a shareable page. That is not an acceptable trade. A static page has nothing to break into, loads with no network, and reads the same in a year as it does today.
Tired of reports you can't check?
I'll show you what a month of this reporting looks like for one site.