# GET /websites/:website_id/google-analytics-traffic

**Resource:** [Websites](./websites.md)  
**MCP tool:** `get_website_google_analytics_traffic`  
**Scopes:** `websites:read`  
**Write operation:** no

Get a website's traffic from the workspace's connected Google Analytics, read live from the property linked to the website: visitors (total users), visits (sessions), page views, average visit length (seconds) and bounce rate (%), each with the previous period and the change in %, plus one breakdown table (visitors and page views per row, with the previous period). Breakdowns: channel (default), source, source_medium, campaign, page, entry_page, country, city, device, browser; page and entry_page rows also carry bounce rate and title (the page title). daily lists visitors and page views per day (date as YYYY-MM-DD) for the period. status is "ok", "no_data", "not_linked" (no property chosen for the website yet; suggested_property names one whose web stream matches the website's domain, link it with update_website_google_analytics_link), "not_connected" or "reconnect_required". For any other report use run_google_analytics_report.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `period` | query | string | no | How far back to look: 7d, 30d (default), 90d or 6m (six months). Numbers are compared with the period just before it. |
| `breakdown` | query | string | no | What to break visitors down by. Defaults to channel. |
| `limit` | query | number | no | Breakdown rows to return, 1 to 100. Defaults to 10. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/google-analytics-traffic"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`