Phase 2 part 7: the end of the funnel
Posts can be written for a buying signal: the prompt gets its hypothesis and angle, and links carry its campaign tag. Plausible (Stats API v2) is read once a day for visitors on tagged links, recorded per signal as Visited. Stripe (restricted key) is read every hour: $0 checkouts are Signed up, paid invoices and one-time payments are Paid with their value, tied to a signal by the checkout's utm_campaign metadata or the payer's email. The Core's Cal.com has no API, so booking emails from Cal.com in the outreach mailbox count as Booked. New Settings → Website & sales; the signal page lists its posts and tagged links. Schema 11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -626,7 +626,31 @@ data. Each becomes an adapter behind a `leadsource` interface.
|
||||
7. **Indirect and the end of the funnel**: content drafts tagged with a
|
||||
signal (UTM per signal), Plausible results per signal, Cal.com bookings,
|
||||
and Stripe sign-ups and payments (pulled forward from Phase 4's Stripe
|
||||
sync).
|
||||
sync). **Built 2026-11-22** (schema 11):
|
||||
- **Content.** Drafts can be written for a signal (`drafts.signal_id`).
|
||||
The prompt gets the signal's hypothesis and angle, and the UTM
|
||||
campaign becomes the signal's slug. The signal page lists its posts
|
||||
and the websites tagged with its campaign.
|
||||
- **Plausible.** `internal/api/plausible` (Stats API v2) and
|
||||
`internal/tracking`. Once a day it reads the completed days' visitors,
|
||||
filtered to the signals' campaigns, by day, source, medium and
|
||||
content. These become aggregate Visited events, with the channel from
|
||||
source and medium. Sites come from the profile.
|
||||
- **Stripe.** `internal/api/stripe`, with a restricted key. It reads
|
||||
completed Checkout Sessions and paid invoices every hour. A $0
|
||||
checkout is Signed up. Paid invoices, and one-time payments without
|
||||
an invoice, are Paid with their value. `stripe_customers` keeps each
|
||||
customer's signal: from checkout metadata `utm_campaign` (or
|
||||
`signal`), or else from the email matching a prospect person or
|
||||
company domain.
|
||||
- **Cal.com.** The Core's Cal.com has no API: /api/v1 and /api/v2 both
|
||||
return 404 (checked 2026-11-22). The user chose to read booking
|
||||
notices from the outreach mailbox instead: emails from the
|
||||
configured Cal.com sender count as Booked for the first address
|
||||
that isn't ours. Cancellations, reschedules, requests and reminders
|
||||
are skipped.
|
||||
- **Still to do.** The cart has to save the UTM tags in the Checkout
|
||||
Session's metadata. Settings → Website & sales says how.
|
||||
8. **Later, with Phase 5 (sites)**: Hugo pages per signal, created,
|
||||
duplicated or deleted from the scorecard, through Gitea PRs.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user