Phase 3 part 1: Search Console and what already ranks
PLAN: Phase 3 rewritten around a weekly seven-job SEO loop (what ranks, next keywords, brief, page, approval, morning check, Monday report), with chatseo.app's ideas borrowed and rankings from Search Console only. Google OAuth (PKCE, offline, read-only webmasters scope) from Settings → Search engines, with each website's property. Search Console is synced into SQLite by day (site, page, and page+query; 16 months, then twice a day). SEO → What ranks shows the last 90 days: totals, the share of clicks from hidden queries, best pages, queries shown but not clicked, and the pages to protect and to push, each with its numbers. Schema 12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{{define "content"}}{{template "settings-start" .}}{{with .Data}}{{$d := .}}
|
||||
<h2>Search engines</h2>
|
||||
<p class="lede">Google Search Console is where Google says what it really shows for your sites: every number in SEO comes from it. Supermarket reads it (read-only) twice a day and keeps 16 months of it.</p>
|
||||
|
||||
<form method="post" action="/settings/search" autocomplete="off">
|
||||
<section class="card" id="google">
|
||||
<h3>Google Search Console</h3>
|
||||
{{range .Fields}}{{template "key-field" (dict "F" . "Set" (index $d.Set .Name))}}{{end}}
|
||||
<p class="help">Redirect URI to register on the OAuth client: <code id="google-redirect">{{.Redirect}}</code> <button type="button" class="link small" data-copy="google-redirect">Copy</button></p>
|
||||
{{if .Connected}}
|
||||
<p class="ok">Connected{{with .Account}} as {{.}}{{end}}.</p>
|
||||
<label class="check small"><input type="checkbox" name="remove:google.refresh_token"> disconnect</label>
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
{{if .Connected}}
|
||||
<section class="card">
|
||||
<h3>Your websites' properties</h3>
|
||||
{{with .PropsError}}<p class="error">Couldn't list your properties: {{.}}</p>{{end}}
|
||||
{{if .Sites}}
|
||||
{{range .Sites}}
|
||||
<label>{{.URL}}
|
||||
<select name="property">
|
||||
<option value="">none</option>
|
||||
{{$cur := .Property}}{{range $d.Properties}}<option value="{{.URL}}" {{if eq .URL $cur}}selected{{end}}>{{.URL}}</option>{{end}}
|
||||
{{if and $cur (not $d.Properties)}}<option value="{{$cur}}" selected>{{$cur}}</option>{{end}}
|
||||
</select>
|
||||
{{with .Last}}<span class="help {{if .Error}}error-text{{end}}">Synced {{ago .At}}{{if .Error}}: {{.Error}}{{else}}; data through {{.Through}}{{end}}.</span>{{end}}
|
||||
</label>
|
||||
{{end}}
|
||||
{{else}}<p class="help">Add your websites to the <a href="/settings/profile">profile</a> first.</p>{{end}}
|
||||
{{if not .Properties}}<p class="help">This account sees no verified properties. Add your site in Search Console, or sign in with the account that owns it.</p>{{end}}
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
<div class="actions">
|
||||
<button type="submit">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="actions">
|
||||
{{if and (index .Set "google.client_id") (index .Set "google.client_secret")}}
|
||||
<form method="post" action="/auth/google/start"><button type="submit" class="{{if .Connected}}secondary{{end}}">{{if .Connected}}Connect again{{else}}Connect Search Console{{end}}</button></form>
|
||||
{{end}}
|
||||
{{if .Connected}}<form method="post" action="/settings/search/sync" data-busy="Syncing…"><button type="submit" class="secondary">Sync now</button></form>{{end}}
|
||||
</div>
|
||||
{{end}}{{template "settings-end"}}{{end}}
|
||||
Reference in New Issue
Block a user