get_traffic_sources
Analyze website traffic sources: referrers, trackable links, and UTM campaigns. Compare two periods to see shifts in visitor origin, using filters like country, device, or referrer.
Instructions
Get traffic sources: referrers, trackable links, and UTM campaigns combined. Shows where visitors are coming from. Call twice with different periods to compare source mix over time. Optional filters segment by country, browser, os, device type, UTM source, or referrer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain or UUID | |
| limit | No | Max results (1-1000) | |
| period | No | Time period | 30d |
| filter_os | No | OS substring match (e.g. 'iOS') | |
| filter_browser | No | Browser substring match (e.g. 'Chrome') | |
| filter_country | No | 2-letter country code (e.g. 'US') | |
| filter_utm_source | No | Exact UTM source (e.g. 'twitter') | |
| filter_device_type | No | Device type: 'desktop' | 'mobile' | 'tablet' | |
| filter_referrer_contains | No | Referrer substring (e.g. 'google') |