---
title: website_analytics
description: Privacy-first analytics for websites.
section: MCP Reference
order: 16
---

# website_analytics

Retrieve analytics data for a website.

## Actions

### get

Get analytics data.

**Parameters:**
- `domain` — Website subdomain, domain, or UUID
- `start_date` — ISO 8601 date (e.g., `2026-05-16`). Defaults to 7 days ago.
- `end_date` — ISO 8601 date. Defaults to today.
- `granularity` — `daily` (default) or `hourly` (max 14 days)
- `metrics` — Metrics to include. Human traffic: `overview`, `time_series`, `top_pages`, `top_referrers`, `top_countries`, `top_cities`, `live_visitors`. Bots (granularity-independent, aggregated): `bot_overview`, `bot_time_series`, `top_bots`, `ai_agent_pages`

## Privacy

- No cookies, no trackers, no fingerprinting
- Server-side only
- Visitor hashes derived from SHA256(IP + User-Agent + date)
- Raw data retained for 90 days

## OAuth Scopes

| Action | Scope |
|--------|-------|
| get | `analytics:read` |
