get_traffic_sources
Retrieve GA4 traffic source data including channels, sources, and mediums for any date range. Specify property ID and date range to get detailed traffic attribution.
Instructions
Get traffic source data including channels, sources, and mediums
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": "get_traffic_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | GA4 property ID | |
| startDate | Yes | Start date in YYYY-MM-DD format | |
| endDate | Yes | End date in YYYY-MM-DD format |