Campaign Analytics Dashboard | Content Collaboration Receivables
An 11-page Python and Dash dashboard that turns six years of content collaboration campaigns into collections analytics. Schema normalization across drifting spreadsheet formats, a validated local snapshot, client records, payment-processor reconciliation, DSO and aging, and seasonality-adjusted forecasting. Runs on the operator's machine.
Every name and figure in the screenshots on this page is sample data. Real client names, rates, and revenue stay on the machine the tool runs on.
Who it helps
This dashboard helps a small business that runs on years of spreadsheets get answers out of them: who owes money, how long they have owed it, which clients stopped buying, and whether the ledger agrees with the payment processor. The spreadsheets stay where they are.
The problem
This is the back office for a portfolio of content sites that run sponsored content and brand collaboration campaigns. A brand or its agency commissions a placement, the piece gets scheduled and published, an invoice goes out, and eventually it gets paid. Multiply that by several sites and six years and you have a real operations problem hiding inside what looks like a simple workflow.
A small business that has been operating for six years keeps its records in spreadsheets rather than a database, one per year, each with slightly different columns than the last, because the business changed and each column was added for that year’s needs.
That works fine for recording things and terribly for answering questions. The spreadsheets technically hold the answers to “Who owes me money right now, and how long have they owed it?”, “which clients stopped buying” and “does my ledger actually agree with what the payment processor collected,” buried across six yearly files.
The tool meets the spreadsheets where they are.
What it does
A local Dash application, eleven pages of Python, that does the analysis on top of the spreadsheets. The spreadsheets stay the system of record. A sync step reads six sources (the yearly campaign workbooks, payment-processor invoice exports, the agency list, the rate card, a quote ledger and a placements log) read-only and writes one SQLite snapshot on the operator’s machine, and every page reads only that snapshot.
The sync refuses bad data. Each run checks for the required tabs, parses money strictly, and blocks any source whose row count or money total drops more than 10 percent. A source that fails keeps its last good copy, and a banner on every page says so, red for a failed source and amber for stale data.
A double-click launcher opens it: it syncs first if the data is more than 20 hours old, then serves the app on the local machine only. For a tool whose entire content is client names, contact details and payment history, keeping it on one machine is the requirement.
Schema drift is the actual work
The oldest spreadsheets have a different shape than the newest. A column that was once split into two payment fields later became one. A field called one thing in year one is called something else by year four. Each choice made sense at the time.
So the loader carries a normalization layer that maps each year’s real columns onto a single internal schema before anything else runs. Every downstream page queries the normalized frame and reads every year the same way.
This is the unglamorous majority of the codebase and the reason the rest of it is short. Analytics code that has to branch on data vintage gets hard to maintain quickly. Analytics code that runs on one clean schema stays readable indefinitely, and the entire cost of that is paid once, in one module.
Two clients with the same name are one client
The subtler problem is identity. Over six years the same customer appears under a personal name, a company name, a slightly different company name after a rebrand, and occasionally a colleague’s name. Counting those as four customers destroys every retention and lifetime-value number the tool produces.
Grouping works off email domain plus name normalization, which stays stable when the display name changes. Everything that depends on knowing who a client is, retention, concentration, lifetime value, reads the resolved identity rather than the raw cell.
Money is stricter. The Clients page, one record per client with search, puts what the client owes first, then their orders, rates against the rate card, quotes, invoices, placements and contact details. It matches invoices to a client by exact email only, and uses the domain just for context, and only on business domains, so each balance lands on the right client’s record. The ledger balance and the payment processor’s open amount sit side by side, each labeled by source, and every amount shows in its own currency. Client names on the Outstanding, Retention and Revenue pages link straight to the record.
Reconciliation against the payment processor
The ledger audit is the page to build first, because it catches the errors that cost real money.
It pulls the invoice identifier out of each campaign row, reduces the payment processor’s export to one summary row per invoice, and joins the two. Then it reports two kinds of disagreement: rows where the spreadsheet’s recorded payment differs from what the processor collected, and invoice references missing on the processor side. Both export to CSV so they can be worked through offline.
The audit is strictly read-only. Automated reconciliation that silently “fixes” a financial record is deliberately out of scope, because its failure mode is a quietly corrupted ledger.
Collections, in-flight versus stale
Aging reports usually lump everything unpaid into buckets by age, which flatters the numbers. An invoice sent nine days ago and an invoice ignored for nine months are different problems, and averaging them produces a misleading days-sales-outstanding figure.
So the collections view separates receivables that are still moving from receivables that have stopped, and reports payment velocity alongside the aging. The practical output is a short list of who to chase and in what order.
The rest of the pages
Insights carries the strategic view: revenue split by new versus returning, client concentration expressed as top-N share, and a revenue forecast adjusted for seasonality. Concentration is the number worth watching in any small business, because losing one client is survivable and losing the client that is a third of revenue is a crisis.
Retention finds accounts that have gone quiet past a configurable threshold, estimates win-back value, and drafts the outreach.
Pricing compares the live rate card against what was charged and surfaces the gap.
Upload has three drop zones, and each re-ingests only its own source, so the whole thing stays usable by someone who prefers to stay out of a terminal.
Dependencies are pinned, deliberately
Every dependency is pinned to an exact version in a uv lockfile rather than a floating range, and new versions are only adopted after a 10-day cooldown has passed since publication. 156 automated tests cover the ingest rules, the money parser and the design tokens.
The same supply-chain posture applies across every Frog Stone Media project. Most malicious package versions are caught soon after publication, so waiting out a cooldown avoids being among the first to install a bad release. On a tool that reads financial records on a machine that also holds production deploy keys, a 10-day wait on new versions costs little.
Why a spreadsheet-backed tool was the right answer
The instinct with a project like this is to migrate everything into a real database and build a proper application. That instinct is usually wrong for a business of this size.
Migration means a one-time conversion that will be subtly lossy, a new system the operator has to learn, and a permanent obligation to maintain a schema. Keeping the spreadsheets as the record means the operator keeps working exactly as before, the tool can be turned off tomorrow with every record intact, and every number it produces can be traced back to a cell someone can go look at.
If your business runs on spreadsheets that have outgrown what a spreadsheet can answer, that is a solvable problem and the spreadsheets usually stay.
For your technical team
- Python with Dash and Plotly for the eleven dashboard pages, served by gunicorn on the local machine.
- pandas and openpyxl read the yearly spreadsheets; a strict ingest step writes one validated SQLite snapshot, and a failed source keeps its last good copy.
- A normalization layer maps each year’s columns onto one internal schema before any page runs.
- Client grouping uses email domain plus name normalization; invoice money matches by exact email only.
- The ledger audit joins campaign invoice identifiers against the payment processor’s export, read-only, with CSV exports of mismatches.
- Every dependency is pinned in a uv lockfile and adopted only after a 10-day cooldown, with 156 automated tests.
- Light and dark themes from one set of design tokens, with a test that fails on any hard-coded color.
- Runs on the operator’s machine; sources are read-only.
Want something like this for your business?
Send a short email about the problem you want solved and get a written scope back.
Start With a Free Email Scope