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
+3
View File
@@ -87,6 +87,9 @@ func (s *Server) sitesPage(w http.ResponseWriter, r *http.Request) {
func (s *Server) renderSites(w http.ResponseWriter, r *http.Request, errMsg string) {
all, cur := s.currentSite(r)
data := map[string]any{"Sites": all, "Current": cur, "Gitea": s.gitea() != nil, "Synced": siteSynced{}}
if cur != nil {
data["Conv"] = s.pageConv(cur.URL)
}
if cur != nil && cur.Repo != "" {
var synced siteSynced
if ok, _ := s.DB.GetJSON(siteSyncKey(cur.Repo), &synced); ok {