GA4 events by name
ga4_events_by_nameEvent-level breakdown over the last N days. Use for scroll depth, outbound clicks, file downloads, custom events.
Default returns one row per event_name with eventCount + totalUsers.
Pass group_by_page=True to also slice by pagePath (great for "what % of
homepage visitors scrolled to 90%?"). Pass event_name_filter="scroll"
to focus on a single event family.
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_events_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | lookback window (1-365), default 28 | |
| limit | No | max rows (1-1000), default 50 | |
| intent | No | Optional: the user's goal in a few words. No site names or URLs. | |
| end_date | No | optional YYYY-MM-DD. Alone, the window is `days` days ending on this date | |
| start_date | No | optional YYYY-MM-DD. With it the window is start_date to end_date (or today), and days is ignored | |
| property_id | Yes | GA4 property id (numeric or "properties/XYZ") | |
| group_by_page | No | if True, also slice by pagePath | |
| event_name_filter | No | if set, only return rows for this event_name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |