界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

seo-data-analyst

seo-data-analyst

【数据与研究】Use when querying Google Search Console, Google Analytics 4, or Microsoft Clarity data for SEO analysis. Covers API endpoints, authentication, rate limits, and agent workflow recipes for content decay detection, cannibalization analysis, funnel optimization, and behavioral insights.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: seo-data-analyst description: Use when querying Google Search Console, Google Analytics 4, or Microsoft Clarity data for SEO analysis. Covers API endpoints, authentication, rate limits, and agent workflow recipes for content decay detection, cannibalization analysis, funnel optimization, and behavioral insights. family: seo

SEO Data Analyst

Overview

Data-driven SEO requires querying three platforms: GSC (search performance), GA4 (user behavior), and Clarity (behavioral/UX signals). This skill covers what an AI agent can access programmatically, rate limits, and practical workflow recipes.

This skill is the READ side — pulling and analysing existing data. To DESIGN and RUN experiments against it (A/B tests, sample-size and statistical-validity guards, cache-safe variation delivery, readout rules), see ecommerce-cro-experimentation.

Platform Summary

PlatformWhat It ProvidesAuth MethodRate LimitCost
GSCKeywords, impressions, clicks, CTR, position, indexing statusService account1,200 QPM / 50K rows/dayFree
GA4Sessions, engagement, conversions, funnels, e-commerceService account200K tokens/dayFree
ClarityHeatmaps, rage clicks, dead clicks, scroll depth, session recordingsBearer token10 requests/dayFree

All three use service accounts or tokens for headless access — no browser required.

Authentication (Headless Setup)

GSC & GA4 (Google Service Account)

  1. Create GCP project, enable "Search Console API" and "Google Analytics Data API"
  2. Create service account, download JSON key
  3. Add service account email as user in GSC (Settings → Users) and GA4 (Admin → Property Access)
  4. Set GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json

Clarity (Bearer Token)

  1. Clarity Dashboard → Settings → Data Export → Generate API token
  2. Pass as Authorization: Bearer TOKEN header

MCP Servers (Direct AI Agent Access)

ToolPackagePlatform
mcp-gscgithub.com/AminForou/mcp-gscGSC
Clarity MCP@microsoft/clarity-mcp-serverClarity
SEO MCPseomcp.devGSC + GA4 + 39 tools

Agent Workflow Recipes

1. Content Decay Detection

Data source: GSC Search Analytics API

Method: Compare two 28-day periods, per-page metrics.

Period A: last 28 days    → dimensions: ["page"], metrics: clicks, impressions, position
Period B: previous 28 days → same query

Alert thresholds:

  • Clicks down 20%+ AND position dropped 2+ = competitive loss → refresh content
  • Clicks down, position stable = SERP feature crowding → refresh meta/title
  • Impressions down, everything stable = demand shift → new angle or consolidation

Content published < 3 months ago is too fresh to diagnose.

2. Keyword Cannibalization

Data source: GSC Search Analytics API

Dimensions: ["query", "page"] → paginate to 50K rows
Group by query → filter where count(distinct page) > 1
Flag: queries where different pages have similar positions (both competing)

Resolution: See seo-keyword-strategist skill for decision framework.

3. Striking Distance Keywords (Positions 4-20)

Data source: GSC Search Analytics API

Dimensions: ["query", "page"]
Filter: exclude branded queries (regex)
Post-filter: position >= 4 AND position <= 20 AND impressions > 50
Sort: impressions descending

These are your highest-opportunity keywords — close to page 1, worth optimizing.

4. Purchase Funnel Analysis

Data source: GA4 Data API (runFunnelReport — v1alpha)

GA4 tracks the e-commerce funnel: view_item → add_to_cart → view_cart → begin_checkout → add_shipping_info → add_payment_info → purchase

Calculate drop-offs:

  • Cart rate = add_to_cart / view_item
  • Checkout rate = begin_checkout / add_to_cart
  • Purchase rate = purchase / begin_checkout

Break down by deviceCategory and sessionSource to find device/source-specific friction.

5. Blog-to-Conversion Attribution

Data source: GA4 Data API

Dimensions: ["landingPage"]
Filter: pagePath BEGINS_WITH "/blog/"
Metrics: conversions, purchaseRevenue, sessions, engagementRate

Identifies which blog posts drive the most revenue — prioritize these for refresh.

6. UX Frustration Analysis

Data source: Clarity API or MCP server

Dimension: URL
Metrics: Dead Click Count, Rage Click Count, Quickback Click, Excessive Scroll

Cross-reference: Pages with high frustration signals + declining GSC metrics = highest-priority fixes.

7. Combined GSC + GA4 Analysis

Join key: URL path (strip domain from GSC URLs to match GA4 pagePath).

AnalysisGA4 DataGSC DataInsight
Content gapHigh bounce rateLow impressionsContent doesn't match intent
SEO winsHigh conversion pagesLow positionImprove ranking for converting pages
CTR optimizationHigh engagementLow CTRMeta descriptions need work
Keyword intentConversion ratesSearch queriesMatch content to buyer intent

Key Limitations

PlatformLimitationWorkaround
GSC50K rows/day per site per search typeBigQuery bulk export (free, unlimited)
GSC~47% of queries anonymizedBigQuery reveals slightly more
GSC2-4 day data delayUse dataState: "all" for preliminary data
GSC16 months retentionBigQuery export (indefinite retention)
GSCNo AI Overview/AI Mode data in APIMonitor Google announcements
GA4Sampling above ~10M eventsBigQuery export (unsampled)
GA4Segments not available via APIUse audiences instead
GA4Path exploration not in APIBigQuery for sequence analysis
GA4Predictive metrics need 1K+ qualifying usersMay not activate for small stores
GA420-60% data loss in EU without advanced consent modeEnable Consent Mode v2 advanced
Clarity10 requests/day per projectCSV export for deeper analysis
Clarity1,000 row max, no paginationFilter to specific segments
ClarityNo heatmap image APIManual dashboard review
ClarityCopilot AI insights not in APIRaw data only via API/MCP

BigQuery (Power Tool)

Both GSC and GA4 can export to BigQuery for unlimited, unsampled data access.

FeatureGSC ExportGA4 Export
DataSite/URL impression tablesRaw event-level data
GranularityAggregated (like API)Every event with all parameters
SamplingNoneNone
Cost (small store)~$0/month (free tier)~$0-5/month
SetupGSC Settings → Bulk data exportGA4 Admin → BigQuery Links

For small e-commerce: BigQuery free tier (10 GB storage, 1 TB queries/month) is likely sufficient.

Google Trends (Keyword Research)

No official stable API. Options:

  • pytrends (Python): Free but unreliable, may break
  • SerpAPI Google Trends: $75-275/month, reliable
  • Manual: trends.google.com — compare keywords, identify seasonality, geographic demand

Use Google Trends for: seasonal trend identification, geographic demand analysis, comparing keyword popularity, identifying rising topics for content planning.

Anti-Patterns

Don'tWhy
Rely solely on search volume from tools54% overestimated; use GSC actual impressions as proxy
Ignore anonymized queries (~47%)Nearly half of click data has hidden query strings
Pull Clarity data more than needed10 requests/day — be strategic
Skip BigQuery for large sitesAPI has 50K row cap; BQ is unlimited and free
Use GA4 data retention default (2 months)Change to 14 months; API not affected but Explorations are
Diagnose decay on content < 3 months oldToo fresh — wait for data to stabilize
我的收藏