What this layer controls
- Whether every paid click can be traced to a conversion and a revenue number
- Spend vs outcome reconciliation per campaign and day
- Landing page health and speed, which you own
- The alerting that catches a broken campaign before the month ends
What it looks like when it is wrong
These are the symptoms that show up in a marketing report or a Monday meeting. Each one has a technical cause in this layer, and each is cheaper to fix before it has a quarter of history behind it.
- Platform-reported conversions are accepted without reconciliation
- Click ids lost on the landing page, so offline conversion upload is impossible
- Zero-conversion spend runs for days before anyone notices
- Landing pages are built by the platform’s editor and never performance-tested
- Attribution is last-click by default and nobody knows
An open-source stack for this layer
Every project below is open source and self-hostable, with the licence the project publishes today. This is a reference build, not a recommendation to run all of it: pick the layers your stack is missing.
| Layer | Project | Licence | What it does |
|---|---|---|---|
| Spend ingestion | Google Ads API client | Apache-2.0 | Daily cost, clicks and conversions into your own table. |
| Click capture | Your own first-party tag | n/a | Stores gclid/fbclid on landing and carries it to the conversion record. |
| Reconciliation | dbt-core | Apache-2.0 | Platform conversions vs your own, per campaign per day, as a test. |
| Landing pages | Your own stack + Lighthouse CI | Apache-2.0 | You own the page the ad points at, and its budget. |
| Alerting | Grafana + Alertmanager | AGPL-3.0 / Apache-2.0 | Zero-conversion spend, conversion-rate collapse, landing page 5xx. |
Evaluation checklist
Answer each of these about your current stack. A ‘no’ is a work item, and the count is a fair summary of the layer’s health.
- Is every paid session tagged with a click id, and is the capture rate measured?
- Is spend ingested daily with a gap detector for missed pulls?
- Is the platform-vs-own conversion delta published per campaign?
- Are landing pages performance-budgeted like the rest of the site?
- Do the four money-losing alerts actually fire in a test?
- Is the attribution model stated on every report?
What to instrument
Numbers that make the layer’s health visible before a customer complains.
- Click id capture rate
- Cost per conversion, own measurement vs platform
- Zero-conversion spend per week
- Landing page p75 LCP
Where this fits
Scope. This page describes the category and an open-source way to build it. It does not publish 5 Kings’ internal method, client data or vendor terms, and it is not an endorsement of every project listed: check the licence and the maintenance activity against your own constraints before you adopt one.