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
+25
View File
@@ -61,6 +61,31 @@ metadata[utm_content] = optional: which message or post</pre>
<div class="actions"><button type="submit">Save</button></div>
</form>
{{if .PlausibleSet}}
<form method="post" action="/settings/tracking/signups" data-busy="Saving and reading the pages…">
<section class="card" id="signups">
<h3>What counts as a sign-up</h3>
<p class="small">Each page of your site is measured by what its visitors go on to do: click through to sign up, or send a form. Plausible records clicks on links to other sites (its <em>Outbound Link: Click</em> goal), and ties each to the page the visit began on. Say which of those links start a sign-up.{{if not .Signups.Saved}} <strong>Supermarket's suggestion is ticked</strong>: the links that look like a sign-up, a trial or a checkout. Change it and save to make it yours.{{end}}</p>
{{with .Links}}
<table class="list">
<thead><tr><th>A sign-up?</th><th>Link clicked, last 30 days</th><th class="num">Visitors</th></tr></thead>
<tbody>{{range .}}<tr>
<td><input type="checkbox" name="link" value="{{.URL}}" aria-label="{{.URL}} is a sign-up" {{if .Signup}}checked{{end}}></td>
<td class="small"><code>{{.URL}}</code></td><td class="num">{{num .Visitors}}</td>
</tr>{{end}}</tbody>
</table>
{{else}}<p class="help">No clicks on outbound links in the last 30 days, or Plausible couldn't be read.</p>{{end}}
<label>Other links that count (optional)
<textarea name="patterns" rows="3" placeholder="cloud.federated.computer/signup">{{.OwnPatterns}}</textarea>
<span class="help">One per line. A link counts if it contains the text, in any case: <code>/signup</code> counts every sign-up page on every site.</span>
</label>
<p class="small">Form leads count too, once your forms send Plausible's <code>Lead</code> goal (Sites → Lead forms).</p>
<div class="actions"><button type="submit">Save what counts</button></div>
{{template "last-run" .LastPages}}
</section>
</form>
{{end}}
{{end}}{{template "settings-end"}}{{end}}
{{define "last-run"}}{{with .}}