get_analytics
Retrieve site analytics (visitors, page views, bounce rate) with automatic period comparison and optional filters by country, browser, device, or source.
Instructions
Get aggregate analytics for a site (visitors, page views, bounce rate, etc.) with automatic comparison to the previous period. Returns average_duration in seconds. Optional filters segment the result by country, browser, os, device type, UTM source, or referrer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain (e.g. 'example.com') or UUID | |
| period | No | Time period: 'today', 'yesterday', '7d', '30d', '90d', or 'YYYY-MM-DD..YYYY-MM-DD' | 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') |