# POST /google-analytics/properties/:property_id/web-streams

**Resource:** [Websites](./websites.md)  
**MCP tool:** `create_google_analytics_web_stream`  
**Scopes:** `websites:write`  
**Write operation:** yes

Add a website to a Google Analytics property (a web stream). Returns its measurement id (the "G-" id the tag uses); status "exists" with the existing stream when the property already measures that address. Needs edit access: without it the answer is 409 MANAGE_ACCESS_NEEDED with the link a workspace admin opens to allow it (get_google_analytics_manage_link).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `property_id` | path | string | yes | Google Analytics property id from list_google_analytics_properties. |
| `url` | body | string | yes | The website's address, e.g. "https://www.acme.com.au". |
| `display_name` | body | string | no | Name of the web stream. Default: the website's host. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/google-analytics/properties/:property_id/web-streams"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"url":"...","display_name":"...","require_approval":"..."}'
```

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