SEO: daily clicks chart, top searches, percentages, daily email

- The morning check draws clicks by day, this week over the week before.
- The morning check and the Monday report list the searches that gained
  and lost most clicks (any size; real moves stay on their own list).
- The week's clicks and impressions show their change in percent.
- Settings → Search engines can email the morning check, at most once a
  day, when something really moved. Both emails carry the new lists.
- With a domain property, a line says how many clicks went to its other
  hosts (a shop, a Gitea…) and for which search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 06:55:54 -07:00
co-authored by Claude Opus 5.5
parent 1702fccbcc
commit aeba28b658
13 changed files with 598 additions and 20 deletions
+5 -1
View File
@@ -12,9 +12,12 @@
{{with .Check}}
<section class="card">
<p class="small muted">{{.From}} to {{.To}}, against {{.PrevFrom}} to {{.PrevTo}} · {{.Pages}} pages and {{.Queries}} searches compared</p>
<p>Clicks <strong>{{num .Before.Clicks}} → {{num .After.Clicks}}</strong> · impressions {{num .Before.Impressions}} → {{num .After.Impressions}} · position {{dec1 .Before.Position}} → {{dec1 .After.Position}}</p>
<p>Clicks <strong>{{num .Before.Clicks}} → {{num .After.Clicks}}</strong>{{with change .Before.Clicks .After.Clicks}} <span class="muted">({{.}})</span>{{end}} · impressions {{num .Before.Impressions}} → {{num .After.Impressions}}{{with change .Before.Impressions .After.Impressions}} <span class="muted">({{.}})</span>{{end}} · position {{dec1 .Before.Position}} → {{dec1 .After.Position}}</p>
{{with $d.Chart}}{{template "click-chart" .}}{{end}}
{{range .Outside}}<p class="small muted">{{.Sentence}}</p>{{end}}
{{if .Quiet}}<p class="ok">Nothing real moved.</p>{{end}}
</section>
{{template "query-changes" .}}
{{if not .Quiet}}
<table class="list">
<thead><tr><th>Page or search</th><th class="num">Clicks</th><th class="num">Impressions</th><th class="num">Position</th><th>What the data shows</th></tr></thead>
@@ -37,3 +40,4 @@
{{end}}
{{end}}
{{end}}{{end}}