GA4: Create custom metric
ga4_create_custom_metricGA4 Custom Metric anlegen. measurement_unit: STANDARD, CURRENCY, SECONDS, MINUTES, HOURS, MILLISECONDS, METERS, KILOMETERS, FEET, MILES. scope: nur EVENT. restricted_metric_types: Liste aus COST_DATA und/oder REVENUE_DATA (Zugriffsbeschränkung der Metrik) — bei CURRENCY Pflicht; fehlt sie, kommt {'error': 'restricted_metric_types_required'} zurück, ohne die API aufzurufen. Antwort: name, parameter_name, display_name, measurement_unit, scope, restricted_metric_types. property_id: die GA4-Property des Workspace (andere werden abgelehnt). workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | EVENT | |
| workspace | No | ||
| description | No | ||
| property_id | Yes | ||
| display_name | Yes | ||
| parameter_name | Yes | ||
| measurement_unit | No | STANDARD | |
| restricted_metric_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||