piwik_traffic_sources
Retrieve traffic source breakdowns for a Piwik PRO site and optional date range to identify where visits originate.
Instructions
Get traffic sources breakdown for a site
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": {
"siteId": "<siteId>"
},
"name": "piwik_traffic_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | No | End date (YYYY-MM-DD). Defaults to today | |
| siteId | Yes | The site/app ID | |
| dateFrom | No | Start date (YYYY-MM-DD). Defaults to 30 days ago |