Get site analytics
get_analyticsFetch pageview and unique-visitor analytics for a site over a date range. Returns totals, a daily timeseries, top paths, and top referrers. Default range is trailing 28 days ending today. Use range_days for a trailing window, or since + until for explicit bounds. Pass include_activity: true to add form submissions and new contacts for the same window ('how's my site doing?'). Analytics is a Pro feature: on Free it returns billing_gate — say so once and don't ask again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| top_n | No | ||
| until | No | ||
| site_id | Yes | ||
| range_days | No | ||
| include_activity | No | Also return `activity` for the same window (up to 90 days), when the window ends today: form submissions by form type, new contacts, top pages and referrers — for 'how's my site doing this week?'. |