ga_check_compatibility
Validate dimension and metric combinations for GA4 properties before running reports. Avoid invalid requests and discover which fields remain compatible with your chosen set.
Instructions
Check whether a combination of dimensions and metrics is valid for this property BEFORE running a report.
Avoids wasted report requests and token-heavy error loops. Also lists which other fields remain compatible with the given combination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | Metrics to check (e.g., [{name: "activeUsers"}]) | |
| dimensions | No | Dimensions to check (e.g., [{name: "city"}]) | |
| propertyId | No | GA4 property ID to query (overrides the default GA_PROPERTY_ID). Accepts "123456789" or "properties/123456789". Use ga_get_account_summaries to discover IDs. | |
| compatibilityFilter | No | Only return fields with this compatibility (recommended: COMPATIBLE) |