ai-referral-analysis
How to track and measure traffic from ChatGPT, Claude, Perplexity, and Gemini in GA4. Exact dimension filters, regex patterns,β¦
GA4 Data API boundaries: 10-dimension limit, 100,000 row caps, hourly token quotas, and sampling thresholds. How to query safely within API limits.
Claude Code
$ npx -y skills add surendranb/google-analytics-mcp --skill ga4-limitations --agent claude-code
Codex
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a codex -y
Cursor
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a cursor -y
Gemini CLI
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a gemini-cli -y
GitHub Copilot
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a github-copilot -y
OpenCode
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a opencode -y
Windsurf
$ npx skills add surendranb/google-analytics-mcp --skill ga4-limitations -a windsurf -y
name: ga4-limitations titleTag: "GA4 API Quotas, Token Limits & Cardinality Guard" description: "GA4 Data API boundaries: 10-dimension limit, 100,000 row caps, hourly token quotas, and sampling thresholds. How to query safely within API limits."
What the Google Analytics 4 Data API can and cannot do, where to find alternate data sources, and how to query within Google Cloud quota boundaries.
| Analytical Requirement | Available in GA4 Data API? | Recommended Alternative | |---|---|---| | **Multi-Step Funnel Visualizations** | Partial (Aggregate e-commerce metrics only) | **GA4 UI β Explore β Funnel Exploration** | | **Cohort Retention Over Time** | No (API does not expose `runCohortReport`) | **GA4 UI β Explore β Cohort Exploration** | | **Individual User Clickstreams / Journeys** | No (API returns aggregated rows only) | **BigQuery Export (Raw Event Tables)** | | **Segment Overlap / Venn Diagrams** | No (Aggregate dimension cuts only) | **BigQuery or GA4 Explore Comparisons** | | **Realtime User Event Streams** | Limited (Last 30-minute summary only) | **GA4 UI β Realtime Report** | | **Google Search Console Clicks & Queries** | Separate API (Not in GA4 Data API) | **Google Search Console MCP Server** | | **Historical Data Prior to GA4 Migration** | No (Universal Analytics data is separate) | **BigQuery UA Archive Tables** |
---
When querying GA4 through an agent, keep requests within Google's structural limits:
1. **Maximum Dimensions per Request:** 10 dimensions. Attempting to pass 11 dimensions returns an API validation error. 2. **Maximum Metrics per Request:** 10 metrics. 3. **Maximum Rows Returned:** 100,000 rows per query response (subject to client memory limits). 4. **Hourly Token Quotas:** Standard properties receive 25,000 tokens per hour; GA4 360 properties receive 250,000 tokens per hour.
---
Model Context Protocol (MCP) server for Google Analytics 4: real-time query exploration, schema discovery, metric aggregation, and audience insights for AI agents. π Live Documentation & Web Portal:
How to track and measure traffic from ChatGPT, Claude, Perplexity, and Gemini in GA4. Exact dimension filters, regex patterns,β¦
Why session, user, and event metrics never match in GA4. Rules for pairing dimensions and metrics across user-scoped,β¦
Detect and filter automated bot spikes in Google Analytics 4. Patterns for datacenter ASN spikes, zero-second sessions, andβ¦
How GA4 Default Channel Groups work, how to audit channel performance, and how to spot traffic falling into Unassigned or Directβ¦
Exact API field names for GA4 Data API queries. Avoid 400 errors from Universal Analytics names like ga:sessions or pageviews byβ¦
Which dimensions and metrics can be queried together in GA4 without triggering incompatible scope errors. Matrix of user,β¦
Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,β¦
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,β¦
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,β¦
Search literature across sources, verify or manage citations, and build MeSH strategies or citation-impact audits. Use forβ¦