Phase 3 part 3: the audit, ranked by traffic, with AI visibility
A polite crawl of each website (Search Console's busiest pages, the sitemap, then links; up to 300 pages; robots.txt honoured) checks titles and descriptions (characters and pixels), headings, canonical, noindex, status and redirects, broken links (outside ones twice), alt text, Open Graph, JSON-LD, text without JavaScript, and whether the title says what the page's main search asks. Issues are ranked by severity, then the page's clicks and impressions. AI visibility: AI crawlers in robots.txt, llms.txt, structured data, Organization data. Optional PageSpeed checks. Weekly in the background, or Audit now. Schema 14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ func Through(d *db.DB, site string) string {
|
||||
// that, from a few days before the last final day.
|
||||
func Sync(ctx context.Context, d *db.DB, c *gsc.Client, site string, now time.Time) (*SyncResult, error) {
|
||||
res := &SyncResult{Site: site, At: now}
|
||||
err := sync(ctx, d, c, site, now, res)
|
||||
err := syncSite(ctx, d, c, site, now, res)
|
||||
if err != nil {
|
||||
res.Error = err.Error()
|
||||
}
|
||||
@@ -73,7 +73,7 @@ func Sync(ctx context.Context, d *db.DB, c *gsc.Client, site string, now time.Ti
|
||||
return res, err
|
||||
}
|
||||
|
||||
func sync(ctx context.Context, d *db.DB, c *gsc.Client, site string, now time.Time, res *SyncResult) error {
|
||||
func syncSite(ctx context.Context, d *db.DB, c *gsc.Client, site string, now time.Time, res *SyncResult) error {
|
||||
today := now.UTC().Truncate(24 * time.Hour)
|
||||
from := today.AddDate(0, 0, -historyDays)
|
||||
if t := Through(d, site); t != "" {
|
||||
|
||||
Reference in New Issue
Block a user