Phase 7 part 1: sign-ups by page

Settings → Website & sales says which clicked links count as a sign-up:
Supermarket suggests the sign-up, trial and checkout links visitors
clicked, and the user ticks, unticks or adds their own. The Plausible
import reads, per page a visit began on, the visitors, sign-ups and form
leads (a new page_days table); What ranks, the audit and Sites show
visits and sign-ups next to each page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 07:07:47 -07:00
co-authored by Claude Opus 5.5
parent aeba28b658
commit e9871082b5
12 changed files with 733 additions and 26 deletions
+12
View File
@@ -613,6 +613,18 @@ ALTER TABLE site_pages ADD COLUMN live_note TEXT NOT NULL DEFAULT '';
// 25: a LinkedIn draft posts as the member ('') or the company page ('page').
`
ALTER TABLE drafts ADD COLUMN linkedin_as TEXT NOT NULL DEFAULT '';
`,
// 26: what each page turns visits into (Plausible, by entry page).
`
CREATE TABLE page_days (
site TEXT NOT NULL, -- the Plausible site
date TEXT NOT NULL, -- YYYY-MM-DD
page TEXT NOT NULL, -- the entry page's path, e.g. /freescout/
visitors INTEGER NOT NULL DEFAULT 0,
signups INTEGER NOT NULL DEFAULT 0, -- visitors who clicked a sign-up link
leads INTEGER NOT NULL DEFAULT 0, -- visitors who sent a form (the Lead goal)
PRIMARY KEY (site, date, page)
);
`,
}