# POST /google-analytics/properties/:property_id/key-events

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

Count an event as a key event (a conversion) on a property. TrustPager's site code sends generate_lead, book_appointment, purchase. status "exists" when it already is one. 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. |
| `event_name` | body | string | yes | The event to count as a key event, e.g. "generate_lead" (a form sent), "book_appointment" or "purchase". |
| `counting_method` | body | string | no | Count every time (once_per_event, default) or at most once a visit (once_per_session). |
| `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/key-events"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"event_name":"...","counting_method":"...","require_approval":"..."}'
```

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