# PATCH /google-analytics/default-property

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

Set the workspace's default Google Analytics property: the one reports use when no property_id is given. The property must be visible to the connected Google account (see list_google_analytics_properties). Returns the property id and name.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `property_id` | body | string | yes | The Google Analytics property id (a number like "123456789") from list_google_analytics_properties. |
| `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 PATCH   "https://api.trustpager.com/functions/v1/api/v1/google-analytics/default-property"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"property_id":"...","require_approval":"..."}'
```

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