System architecture
Campaign Performance View Architecture
- 01Ensure campaign metadata is
A campaign-level view that ties leads and bookings back to the campaign/UTM that drove them and reports volume, cost-aware efficiency (if spend is...
- 02SQL joining leads ->
Write SQL joining leads -> campaign with counts, booked/completed rates per campaign, and, if spend is present, cost-per-lead and cost-per-booked.
- 03Supabase Postgres
Supabase Postgres contributes the trusted model for Campaign Performance View so metrics are defined before they are visualized.
- 04UTM capture
Build a campaign table/panel (server component) sortable by volume or efficiency, with downstream quality columns so a high-volume low-quality campaign is obvious.
- 05Review Queue
If spend data isn't available, ship the volume-and-quality view (booked/completed rate per campaign) without cost metrics, and add efficiency once...
- 06Owner Review
Owners can see which campaigns produce booked, qualifying leads versus just traffic — directing budget toward what actually converts and flagging c...