Traffic sources
traffic_sourcesIdentify where visitors come from with GA4 sessions grouped by channel, source/medium, campaign, country, device or landing page, including change, engagement, key events and bot flags.
Instructions
Where do my visitors come from? GA4 sessions by channel, source / medium, source, campaign, country, device or landing page, with change, engagement, key events and bot or spam flags.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "traffic_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Group by, default channel. | |
| site | No | Site as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site. | |
| limit | No | Rows to return, default 25, max 500. | |
| period | No | Named date range ending on the last settled day. Default last_28_days. | |
| compare | No | Compare with the previous period (default), the same dates last year, or none. | |
| end_date | No | End date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days). | |
| start_date | No | Start date YYYY-MM-DD. Overrides period. | |
| ga4_property | No | GA4 property ID (numbers only). Optional: found from the site's web stream when left out. |