Phase 3 part 2: the morning check and the Monday report

The morning check compares the last 7 days of final Search Console data
with the 7 before, by page and by search, and lists only moves past the
thresholds (editable). Each move is explained from the data: the search
whose clicks changed, and whether a position change is real or a change
in the mix of searches. Missing rows are "no data", not zero. The Monday
report has three numbers with where the change came from, the 3 pages
that moved most, and "Waiting for your yes"; it's written each Monday,
kept, and optionally emailed through the outreach mailbox. Schema 13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 07:23:23 -07:00
co-authored by Claude Opus 5.5
parent 5ea620a091
commit 68ff18690b
17 changed files with 1058 additions and 32 deletions
+39
View File
@@ -0,0 +1,39 @@
{{define "content"}}{{with .Data}}{{$d := .}}
<div class="heading">
<h1>Morning check</h1>
{{if .Current}}<div class="buttons">
<form method="post" action="/settings/search/sync" data-busy="Syncing…"><input type="hidden" name="back" value="/seo/check?site={{.Current.Index}}"><button type="submit" class="secondary">Sync now</button></form>
</div>{{end}}
</div>
<p class="lede">The last 7 days of final Search Console data against the 7 before, by page and by search. Only real moves are listed: the thresholds are under <a href="/settings/search">Settings → Search engines</a>. Causes are what the data shows, which is correlation, not proof.</p>
{{template "seo-sites" .}}
{{if .Current}}
{{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>
{{if .Quiet}}<p class="ok">Nothing real moved.</p>{{end}}
</section>
{{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>
<tbody>
{{range .Moves}}
<tr>
<td>{{if eq .Kind "page"}}<a href="{{.Key}}" target="_blank" rel="noopener noreferrer">{{pagePath .Key}}</a>{{else}}<span class="badge">search</span> {{.Key}}{{end}}</td>
{{if .NoData}}<td class="num">{{num .Before.Clicks}} → <span class="muted">no data</span></td><td class="num">{{num .Before.Impressions}} → <span class="muted">no data</span></td><td class="num">{{dec1 .Before.Position}} → <span class="muted">no data</span></td>
{{else if .New}}<td class="num"><span class="muted">new</span> {{num .After.Clicks}}</td><td class="num">{{num .After.Impressions}}</td><td class="num">{{dec1 .After.Position}}</td>
{{else}}<td class="num">{{num .Before.Clicks}} → <strong>{{num .After.Clicks}}</strong></td><td class="num">{{num .Before.Impressions}} → {{num .After.Impressions}}</td><td class="num">{{dec1 .Before.Position}} → <strong>{{dec1 .After.Position}}</strong></td>{{end}}
<td class="small">{{range .Why}}{{.}} {{end}}</td>
</tr>
{{end}}
</tbody>
</table>
{{with $d.More}}<p class="help">And {{.}} more: raise the thresholds if this is too much to read with your coffee.</p>{{end}}
{{end}}
{{else}}
<section class="card empty"><p>There isn't two weeks of Search Console data yet. Sync, and check again.</p></section>
{{end}}
{{end}}
{{end}}{{end}}