analytics_traffic_sources
Analyze GA4 traffic sources by channel, source, and medium to pinpoint which channels drive the most visits. Use this data to refine your marketing strategy.
Instructions
Analyze traffic sources (Channel, Source, Medium) in GA4
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": {
"propertyId": "<propertyId>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "analytics_traffic_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | GA4 Property ID | |
| accountId | No | GA4 account ID for multi-account setups | |
| startDate | Yes | Start date (YYYY-MM-DD) | |
| endDate | Yes | End date (YYYY-MM-DD) | |
| channelGroup | No | Filter by Channel Group (e.g. 'Organic Search') | |
| limit | No | Max rows (default 50) | |
| offset | No | Starting row for pagination (0-based) |