πŸ“Š Metrics & Self-Improvement

BaC Principle

β€œA process that doesn’t measure itself can’t improve itself. Every KPI is a feedback signal. Every signal drives a proposal. Every proposal closes the loop.” β€” Business as Code Manifesto

Stage: S9 β€” Improvement Loop Type: AUTO (data collection + proposals) + HUMAN (proposal approval) Cadence: Weekly data collection; weekly metrics review; monthly strategy review

See Map of Content for full vault navigation.


πŸ”„ Improvement Loop Architecture

flowchart TD
    DATA["πŸ“₯ Data Collection<br/>GSC + Ahrefs + AI citation probes"]
    AGG["πŸ“Š Metric Aggregation<br/>SEO track + AEO track"]
    ANOM["🚨 Anomaly Detection<br/>Automated rules"]
    PROP["πŸ“ Improvement Proposals<br/>Generated by MetricsAgent"]
    REVIEW["πŸ‘€ Human Review<br/>~30 min/week"]
    DEPLOY["πŸš€ Deploy Changes<br/>Update manifest / agents / target spec"]

    DATA --> AGG --> ANOM --> PROP --> REVIEW --> DEPLOY --> DATA

πŸ“ˆ SEO Track KPIs

Primary Dashboard

MetricSourceTargetAlert Threshold
Organic sessions/weekGSCGrowing 10%+ MoMDrop > 15% WoW
Avg SERP position (all keywords)GSCImprovingRegression > 3 positions WoW
Avg SERP position (target clusters)GSC≀ 15> 25 β†’ deprioritized cluster
Organic CTRGSCβ‰₯ 3%< 2% β†’ title/meta review
Indexed pagesGSCGrowingStagnation > 2 weeks
Referring domainsAhrefsGrowingFlat for 30 days
New backlinks/monthAhrefsβ‰₯ 50 β†’ authority building alert
Core Web Vitals pass ratePageSpeedβ‰₯ 75%< 60% β†’ dev escalation
Pages with content score β‰₯ 75SurferSEOβ‰₯ 80% of indexed< 65% β†’ content optimization sprint

Funnel Metrics

StageMetricWeek NWeek N-1Delta
DiscoveryImpressionsβ€”β€”β€”
ClickOrganic clicksβ€”β€”β€”
EngagementAvg time on pageβ€”β€”β€”
ConversionGoal completionsβ€”β€”β€”

πŸ€– AEO Track KPIs

AI Citation Dashboard

MetricSourceTargetAlert Threshold
AI citation rate (probed queries)LLM probeβ‰₯ 20%< 10% β†’ AEO sprint
Google AI Overview appearancesGSC (AI)β‰₯ 5 queriesDeclining β†’ schema review
Perplexity citation count/monthManual probeGrowingDrop > 20% MoM
ChatGPT citation rateOpenAI API probeβ‰₯ 15%< 5% β†’ content gap issue
FAQ schema rich result rateGSC rich resultsβ‰₯ 60% of eligible pages< 40% β†’ schema fix
Avg AEO readiness score (site-wide)AEO agent outputβ‰₯ 75/100< 60 β†’ AEO agent re-run
Citation gap queries addressedContent inventory100% of top 10 gapsAny unaddressed β†’ priority

Weekly AI Citation Probe Protocol

citation_probe:
  frequency: weekly
  queries_per_run: 30
  platforms:
    - chatgpt: 10 queries (OpenAI API, model: gpt-4o)
    - perplexity: 10 queries (Perplexity API)
    - claude: 5 queries (Claude API, model: claude-opus-4-6)
    - gemini: 5 queries (Gemini API)
 
  query_categories:
    - definitional: "What is [target concept]?"
    - instructional: "How to [target action] with AI?"
    - comparative: "What is the best tool for [task]?"
    - brand: "What is Business as Code / businessascode.co?"
 
  output:
    - cited: true/false
    - citation_url: if cited
    - competitor_cited_instead: domain
    - answer_gap: what the model answered that we don't cover

🚨 Anomaly Detection Rules

anomaly_rules:
  - id: ANO-01
    name: traffic_drop
    condition: "organic_sessions this week < 85% of 4-week rolling average"
    action: Trigger immediate audit β€” check GSC for manual actions, algorithm updates, indexing drops
    notify: CMO
 
  - id: ANO-02
    name: ranking_regression
    condition: "avg SERP position for target clusters degrades > 5 positions WoW"
    action: Pull affected keywords; compare to competitor SERP changes; check for content updates needed
    notify: CMO
 
  - id: ANO-03
    name: indexing_stall
    condition: "indexed pages count unchanged for 14 days"
    action: Check sitemap submission status; check robots.txt; re-submit sitemap via GSC
    notify: CMO
 
  - id: ANO-04
    name: aeo_citation_drop
    condition: "AI citation rate drops > 25% MoM"
    action: Re-run AEO structuring agent on top 10 pages; check for schema validation errors
    notify: CMO
 
  - id: ANO-05
    name: gate_rejection_spike
    condition: "Gate #2 rejection rate > 30% of sampled pages for 2 consecutive weeks"
    action: Review content optimization engine prompt; likely quality regression
    proposal: Retune content brief template or Claude API system prompt
 
  - id: ANO-06
    name: backlink_stall
    condition: "zero new referring domains for 30 days"
    action: Review authority building agent output; check if outreach queue is being executed
    notify: CMO

πŸ“ Improvement Proposal Format

Every proposal generated by the MetricsAgent follows this schema:

improvement_proposal:
  proposal_id: "IMP-2026-04-001"
  generated_at: "2026-04-09"
  generated_by: MetricsAgent
  triggered_by: ANO-04   # or metric name, or human feedback from gate
 
  problem: >
    AI citation rate dropped from 18% to 9% over the past 3 weeks.
    Probe analysis shows Perplexity is now citing zapier.com for
    "business automation AI" queries that we previously captured.
 
  proposed_change:
    target: AEOStructuringAgent
    change_type: prompt_update
    description: >
      Add explicit entity relationship mapping to AEO pass:
      "Business as Code" β†’ related to β†’ [AI agents, process automation, BPM].
      This signals to LLMs how our content fits their knowledge graph.
 
  test_plan:
    method: a_b_test
    variant_a: current AEO pass (control)
    variant_b: AEO pass with entity relationship section
    metric: ai_citation_rate
    minimum_sample: 4 weeks
    success_threshold: "Citation rate returns to β‰₯ 18%"
 
  human_decision_required: true
  urgency: high
  estimated_effort: low

πŸ§ͺ A/B Test Registry

ab_tests:
  - test_id: AB-001
    element: content_title_format
    variant_a: "What is [Topic]? Complete Guide (Year)"
    variant_b: "[Topic]: Definition, Examples & How It Works"
    metric: organic_ctr
    started: 2026-04-02
    status: running
    minimum_pages: 10
    results: pending
 
  - test_id: AB-002
    element: faq_question_count
    variant_a: "5 FAQ questions per page"
    variant_b: "10 FAQ questions per page"
    metric: aeo_citation_rate
    started: 2026-04-02
    status: running
    minimum_pages: 8
    results: pending

A/B Promotion Rules:

  • Minimum 4 weeks per test
  • Statistical significance: β‰₯ 90% confidence
  • Minimum sample: β‰₯ 8 pages per variant
  • Winning variant becomes default in the relevant agent spec

πŸ“… Review Cadences

review_cadences:
  weekly:
    duration: 30 min
    owner: CMO
    agenda:
      - Review SEO + AEO dashboard (5 min)
      - Check anomaly alerts (5 min)
      - Review improvement proposals from MetricsAgent (10 min)
      - Approve / reject / defer proposals (10 min)
 
  monthly:
    duration: 60 min
    owner: CMO
    agenda:
      - Full funnel review (10 min)
      - A/B test results review (10 min)
      - Target Definition update β€” add/remove keyword clusters (15 min)
      - Content calendar planning for next month (15 min)
      - Agent prompt review β€” any systemic quality issues (10 min)

πŸ—’οΈ Improvement Log

improvement_log:
  - version: 1.0.0
    date: 2026-04-02
    change: Initial process definition
    impact: Baseline established

πŸ“Š Agent Reporting Matrix

AgentReportsFrequency
SiteAuditAgentAudit report + baseline metricsMonthly
KeywordResearchAgentKeyword universe + AEO gap analysisMonthly
ContentOptimizationEngineContent quality scores + batch completionWeekly
AEOStructuringAgentAEO readiness scores + schema validationWeekly
TechnicalSEOAgentIssues resolved + CWV statusWeekly
AuthorityBuildingAgentCitation rate + backlink acquisitionWeekly
MetricsAgentKPI dashboard + anomaly alerts + proposalsWeekly