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:
2026-11-22 06:42:03 -07:00
co-authored by Claude Opus 5.5
parent 90d73cf907
commit d23d5e2a87
32 changed files with 1775 additions and 26 deletions
+6 -1
View File
@@ -86,7 +86,12 @@ func (d *Draft) UTM() utm.Params {
if slug := utm.Slug(d.InventoryName); slug != "" {
content = slug + "-" + fmt.Sprint(d.ID)
}
return utm.Params{Source: d.Channel, Medium: "social", Campaign: d.Kind, Content: content}
campaign := d.Kind
if d.SignalSlug != "" {
// Written for a buying signal: its visits count for the signal.
campaign = d.SignalSlug
}
return utm.Params{Source: d.Channel, Medium: "social", Campaign: campaign, Content: content}
}
// MarkPosted records a draft the user posted by hand (on a network