Skip to content
Research
Skill

/compatible-combinations

Which dimensions and metrics can be queried together in GA4 without triggering incompatible scope errors. Matrix of user, session, and event-level pairings.

From plugin
google-analytics-mcp
24417 skills

Claude Code

$ npx -y skills add surendranb/google-analytics-mcp --skill compatible-combinations --agent claude-code

SKILL.md

compatible-combinations.SKILL.md
name: compatible-combinations
titleTag: "GA4 Compatible Dimensions & Metrics (Avoid 400s)"
description: "Which dimensions and metrics can be queried together in GA4 without triggering incompatible scope errors. Matrix of user, session, and event-level pairings."

Compatible Dimension & Metric Combinations in GA4

Google Analytics 4 enforces strict scoping boundaries. Attempting to query dimensions and metrics with conflicting scopes causes the API to return a 400 error: `The request's dimensions & metrics are incompatible.`

This reference outlines which field pairings are valid across event, session, and user scopes.

The Scope Hierarchy

All data in GA4 is partitioned into three hierarchical scopes:

| Scope Level | Description | Key Dimensions | Key Metrics | |---|---|---|---| | **Event Scope** | Actions taken at a specific moment | `eventName`, `pagePath`, `linkUrl` | `eventCount`, `screenPageViews`, `keyEvents` | | **Session Scope** | Attributes of a single visit | `sessionDefaultChannelGroup`, `sessionSource` | `sessions`, `bounceRate`, `averageSessionDuration` | | **User Scope** | Lifetime attributes of an individual | `firstUserDefaultChannelGroup`, `firstUserSource` | `totalUsers`, `newUsers`, `activeUsers` |

---

Most Common Incompatible Pairings (What Fails)

| Dimension In Query | Incompatible Metric | What Fails | Valid Alternative | |---|---|---|---| | `sessionSource` / `sessionMedium` | `eventCount` | Mixing session dimension with hit metric | Use `sessions` or `engagedSessions` | | `eventName` | `sessions` | Asking for session counts of an event | Use `eventCount` | | `itemId` / `itemName` | `sessions` or `totalUsers` | Item dimensions do not carry session scope | Use `itemsViewed`, `addToCarts`, `itemsPurchased` | | `firstUserSource` | `sessions` | Lifetime acquisition with session metric | Use `newUsers` or `totalUsers` | | `promotionName` | `sessions` | Promotion items are hit-scoped | Use `promotionViews`, `promotionClicks` |

---

Guaranteed Safe Combinations (Universal Dimensions)

Certain dimensions are universally compatible across almost all metrics:

  • **Temporal Dimensions**: `date`, `month`, `year`, `week`
  • **Geographic Dimensions**: `country`, `city`, `region`
  • **Device & Platform**: `deviceCategory`, `operatingSystem`, `browser`

These can be safely combined with event metrics (`screenPageViews`, `eventCount`), session metrics (`sessions`, `bounceRate`), and e-commerce metrics (`purchaseRevenue`).

---

How to Resolve 400 Incompatible Errors

When Google Analytics returns an incompatibility error, the API payload explicitly names the offending field:

Please remove eventCount to make the request compatible for example.

Follow the recommendation directly: remove the conflicting metric and replace it with a metric from the same scope as your dimensions.

Read more
@surendranb
Ships withgoogle-analytics-mcp

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:

Stars on GitHub

Momentum

stars in total
244
Star history of surendranb/google-analytics-mcp on GitHub, a chart by star-history.com

Other skills on google-analytics-mcp.

More skills from other plugins.

academic-paper-review

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…

deer-flow10d85k
@bytedance@bytedanceInstall Skill
last30days

last30days

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…

@mvanhorn@mvanhornInstall Skill

Questions about compatible-combinations.

Which coding agents can use compatible-combinations?
compatible-combinations installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.