# GET /google-analytics/properties/:property_id/fields

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

List the dimensions and metrics a Google Analytics report can use for a property, including its custom dimensions and metrics (custom: true, named like "customEvent:plan_tier"). Each has api_name (what run_google_analytics_report takes), ui_name and category; metrics also have a type (integer, float, seconds, currency...). Filter with search (matches name or category, e.g. "session" or "ecommerce") and custom_only. Use it to find the right names before running a report.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `property_id` | path | string | yes | Google Analytics property id from list_google_analytics_properties. |
| `search` | query | string | no | Only fields whose name or category contains this text. |
| `custom_only` | query | boolean | no | Only the property's own custom dimensions and metrics. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/google-analytics/properties/:property_id/fields"   -H "Authorization: Bearer YOUR_API_KEY"
```

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