Skip to content
Get MCP Ads, home

Run a GA4 pivot for two-dimensional questions

Pivot reports for questions shaped like X by Y, batched when several cuts are needed.

Recipe, Google Analytics 4

Intent The two-way cut a flat report cannot show.

Steps
2
Tools
2
Rules
1
Failure modes
1
skills/ga4-pivot-analysis.md

When to use it

Use it when

  • Device × channel, market × landing, any two-way question.

Do not use it when

  • Beyond two dimensions at once: readability collapses and thresholds bite.

What it needs first

Preconditions

  • The account is among the chosen accounts, confirmed via list_accounts.

Evidence every conclusion must carry

  • Every figure carries its account, metric and window.
  • Anything below a readable sample size is reported as unjudged, not as zero.
Inputs
InputRequiredWhat it is
windowAnalysis window.Default: last 30 days.

Procedure

In order. Every tool named is one the gateway ships, and links to its reference.

Steps

  1. Run the pivot with the two dimensions.ga4_run_pivot_report
  2. Batch related pivots in one call where the question needs several.ga4_batch_run_pivot_reports

Decision rules

The observable condition, what it lets you conclude, and what takes the conclusion back.

  • When A cell result rests on tiny countsConclude Mark it unjudged: pivots multiply thresholding, and small cells lie.

Where the agent stops

The readout changes nothing. Any change it motivates goes through Safe Writes: preview, human confirmation, then apply.

How it goes wrong quietly

The cases where the analysis is wrong and still looks right. Read them before trusting a number.

  • Row limits truncate long tails silently: state the limit used.

What the answer contains

What Pivot analysis returns
SectionWhat it holds
ReadoutThe figures, with windows and accounts named.
FlagsWhat deserves a deeper skill or a human decision.

Manage your ads from your AI assistant

Start for free

Free with 1 ad account, no card. Pro is free for 7 days.