ga4_run_pivot_report
Create a GA4 pivot report with rows, columns, and values for cross-dimensional metric analysis.
Instructions
Run a GA4 pivot report.
pivots: list of pivot specs, each with:
field_names: list of dimension names to pivot on
limit: max rows per pivot
offset: pagination offset
order_bys: list of OrderBy dicts (same shape as run_report's order_bys)
metric_aggregations: list of TOTAL|MINIMUM|MAXIMUM|COUNT
Use when you want a 2D view: e.g. rows=date, columns=device, values=sessions.
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": {
"property_id": "<property_id>"
},
"name": "ga4_run_pivot_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pivots | No | ||
| metrics | No | ||
| dimensions | No | ||
| date_ranges | No | ||
| property_id | Yes | ||
| currency_code | No | ||
| metric_filter | No | ||
| keep_empty_rows | No | ||
| dimension_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |