# get_website_analytics (/docs/mcp/tools/get-website-analytics)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/get_website_analytics.mdx. */}

**Get website audience breakdown** · Read-only

Summarises who the identified leads on a website are, over a date range (default the last 30 days): top 10 industries, all company-size ranges, top 10 job titles and top 5 countries, each with a count. Empty lists mean no data in the range. For leads per day use get_website_daily_stats; for the leads themselves use get_leads. websiteId comes from list_websites.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `dateFrom` | `string` | No | Start date, e.g. 2026-10-01 (ISO), 10/01/2026 or epoch milliseconds. Only used when dateTo is also given; otherwise the last 30 days. |
| `dateTo` | `string` | No | End date (inclusive), same formats as dateFrom. Only used together with dateFrom. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "get_website_analytics",
  "title": "Get website audience breakdown",
  "annotations": {
    "title": "Get website audience breakdown",
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "dateFrom": {
        "type": "string",
        "description": "Start date, e.g. 2026-10-01 (ISO), 10/01/2026 or epoch milliseconds. Only used when dateTo is also given; otherwise the last 30 days."
      },
      "dateTo": {
        "type": "string",
        "description": "End date (inclusive), same formats as dateFrom. Only used together with dateFrom."
      }
    },
    "required": [
      "websiteId"
    ]
  }
}
```
