Phase 4 part 4: the spend log and CAC

Spend by month and channel (the funnel's channels and general), by hand
or from pasted CSV (all or nothing); origami.chat and explee.com campaign
spend added hourly as the difference since last seen. CAC per month and
over three months, and per channel over 12 months from each new
customer's first funnel step; unknown, not $0, without spend. Metrics →
Spend and CAC. Schema 21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 12:45:49 -07:00
co-authored by Claude Opus 5.5
parent 6ba524295b
commit a9a1cb97ac
12 changed files with 686 additions and 2 deletions
+19
View File
@@ -1118,6 +1118,25 @@ into `main`.
explee.com campaigns already report it).
- CAC = spend ÷ new paying customers, per month and per channel, with
the channel taken from the customer's first funnel touch.
- **Built 2026-11-22** (schema 21: `spend`, `spend_seen`):
- Spend is logged by month and channel: the funnel's channels plus
"general" for overheads. It comes in by hand, or from a pasted CSV
of month,channel,amount,note (all or nothing).
- `SyncOutsideSpend` runs with the hourly metrics. It adds each
origami.chat or explee.com campaign's spend since last seen to the
current month. The first time, a campaign's whole lifetime spend
goes into that month, with a note saying so. On the live account,
that was explee.com's $344.51, in November 2026.
- `BuildCAC`: each month's spend ÷ its new customers (from the MRR
model), plus a trailing three-month figure. With no spend logged,
CAC is unknown, never $0.
- By channel, over 12 months: each new customer's channel is their
first funnel event, matched by email; Stripe's own steps don't
count, and customers with none are "unknown". Phase 2's
`stripe_customers.channel` defaults to "website", so it isn't
used. General spend counts toward monthly CAC, not toward any
channel.
- The page is Metrics → Spend and CAC.
5. **CLV and cohorts.**
- CLV = ARPA × gross margin ÷ monthly churn rate, with the margin
weighted by each product's share of the revenue.