GA4 traffic sources
ga4_traffic_sourcesTraffic breakdown by acquisition channel / source / medium.
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_traffic_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | lookback window, default 28 | |
| limit | No | max rows, default 20 | |
| 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 | |
| dimension | No | "channel" -> sessionDefaultChannelGroup (Direct/Organic Search/...) "source" -> sessionSource (google, facebook.com, ...) "medium" -> sessionMedium (organic, cpc, referral, ...) "campaign"-> sessionCampaignName | channel |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |