ga_run_pivot_report
Cross-tabulate GA4 metrics with pivot reports using row and column dimensions. Limit dimensions and date ranges to keep output size manageable.
Instructions
Run a pivot table report with row and column dimensions.
⚠️ TOKEN OPTIMIZATION: Pivot reports can be VERY large. Limit dimensions and use small date ranges. Recommended for analysis, not raw data extraction.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dateRanges": "<dateRanges>",
"metrics": "<metrics>",
"pivots": "<pivots>"
},
"name": "ga_run_pivot_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pivots | Yes | Pivot specifications with fieldNames | |
| metrics | Yes | ||
| dateRanges | Yes | ||
| dimensions | No | ||
| propertyId | No | GA4 property ID to query (overrides the default GA_PROPERTY_ID). Accepts "123456789" or "properties/123456789". Use ga_get_account_summaries to discover IDs. |