Google Analytics 4
v2.1.2Google Analytics 4 MCP server: 27 read tools, no write tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ga4_health_check ga4 health check
Read-only GA4 health check. Verifies configured credentials, accessible properties, and metadata/property access without exposing OAuth tokens.
| Parameter | Type | Description |
|---|---|---|
propertyId | string | Optional property ID to check metadata and property details for |
ga4_list_properties ga4 list properties
List all GA4 properties accessible with the current credentials. Returns property ID, display name, timezone, and currency.
ga4_run_report ga4 run report
Run a GA4 analytics report with intelligent query planning. Supports 52 metrics, 63 dimensions, auto-pagination. Use ga4://metrics and ga4://dimensions resources for available fields. Max 9 dimensions + 10 metrics per request.
| Parameter | Type | Description |
|---|---|---|
metrics * | array | Metric keys (e.g., sessions, activeUsers, totalRevenue) |
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
autoPaginate | boolean | When true, omit the limit so the GA4 client paginates through all rows using offset. |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
dimensions | array | Dimension keys (e.g., date, sessionSource, country) |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
offset | integer | Optional 0-based row offset for explicit pagination. |
orderBy | string | Metric or dimension key to sort by |
orderDirection | string | Sort direction for the selected ordering field. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_run_realtime_report ga4 run realtime report
Run a read-only GA4 Data API realtime report. Realtime supports only a limited subset of dimensions and metrics.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
dimensionFilter | object | Native realtime-compatible GA4 FilterExpression JSON. |
dimensions | array | Realtime dimension API names, e.g. eventName, city, deviceCategory |
keepEmptyRows | boolean | Keep provider rows whose selected metrics are all zero, where supported. |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
metricFilter | object | Native realtime-compatible GA4 FilterExpression JSON. |
metrics | array | Realtime metric API names, e.g. activeUsers, eventCount |
minuteRanges | array | Optional named realtime minute ranges; zero is the current minute. |
orderBys | array | Native GA4 OrderBy JSON. |
ga4_get_metadata ga4 get metadata
Get the complete list of dimensions and metrics available for a specific GA4 property. Useful for discovering custom dimensions/metrics.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
ga4_get_custom_definitions ga4 get custom definitions
List custom dimensions and custom metrics exposed by GA4 Data API metadata. Read-only fallback for custom definition inventory.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
ga4_get_key_events ga4 get key events
Inventory GA4 key events/conversions using metadata-aware Data API reports. Returns best-effort event names and counts.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_get_ecommerce_diagnostics ga4 get ecommerce diagnostics
Read-only ecommerce coverage diagnostics for core ecommerce events, revenue metrics, and item-level reporting over a date range.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_get_event_parameters ga4 get event parameters
Best-effort event parameter inventory from GA4 metadata plus event reports. Documents Data API limitations for raw parameters.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
eventNames | array | Optional event names to sample, e.g. purchase, add_to_cart |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_run_funnel_recipe ga4 run funnel recipe
Run a read-only configurable funnel recipe using one GA4 report per eventName/pagePath step and return simple step counts.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
steps * | array | Ordered funnel steps. Each step needs eventName or pagePath. |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
metric | string | Metric used for the analysis; use a name from the platform metric catalogue. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_get_audience_export_diagnostics ga4 get audience export diagnostics
Read-only Audience Export diagnostics. Lists existing audience exports, state counts, and optionally samples rows from an existing export.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
audienceExportName | string | Optional resource name, e.g. properties/123456789/audienceExports/abc123 |
includePersonalIdentifiers | boolean | Explicitly include user/device identifiers in the optional sample. False redacts them by default. |
includeRowSample | boolean | If true, query a small row sample from audienceExportName. Can include user-level export dimensions. |
pageSize | integer | Maximum items requested per page. Follow the returned pagination information for remaining results. |
sampleLimit | integer | Maximum records included in the diagnostic sample. |
ga4_get_audience_diagnostics ga4 get audience diagnostics
Read-only audience diagnostics from Admin API audiences, Data API recurring audience lists, and observed audienceName report fallback.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
includeDefinitions | boolean | Include full Admin API audience definitions when available |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
recurringAudienceListName | string | Optional resource name, e.g. properties/123456789/recurringAudienceLists/abc123 |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
ga4_get_bigquery_export_diagnostics ga4 get bigquery export diagnostics
Detect GA4 BigQuery export links and diagnose export modes, stream coverage, excluded events, and dataset location.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
includeDataStreams | boolean | Include data stream summaries to compare against BigQuery exportStreams |
ga4_get_server_side_tagging_diagnostics ga4 get server side tagging diagnostics
Best-effort read-only server-side tagging diagnostics from data streams, Measurement Protocol secrets, event rules, and stream settings.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
includeRules | boolean | Fetch event create/edit rules for web streams |
includeSettings | boolean | Fetch enhanced measurement and data redaction settings for web streams |
ga4_run_advanced_funnel_report ga4 run advanced funnel report
Run the GA4 Data API v1alpha runFunnelReport endpoint with optional breakdown/next-action, falling back to read-only step counts if unavailable.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
steps * | array | Ordered funnel steps using eventName, pagePath, or fieldName+fieldValue |
breakdownDimension | string | Optional breakdown dimension, e.g. deviceCategory or sessionDefaultChannelGroup |
breakdownLimit | integer | Maximum breakdown values to include in the funnel response. |
datePreset | string | Named reporting period. Use the custom date range when you need exact start and end dates. |
endDate | string | End date YYYY-MM-DD or relative (today, yesterday) |
fallbackToStepCounts | boolean | If the advanced funnel is unavailable, return independent step counts with the limitation made explicit. |
isOpenFunnel | boolean | Allow users to enter at any funnel step instead of requiring the first step. |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
nextActionDimension | string | Optional next action dimension, commonly eventName |
nextActionLimit | integer | Maximum next actions returned for each funnel step. |
startDate | string | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) |
visualizationType | string | Supported funnel visualization mode. |
ga4_get_channel_groups ga4 get channel groups
List custom channel groups defined for a GA4 property.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | GA4 property ID (numeric, e.g., 123456789) |
ga4_validate_query ga4 validate query
Validate a metric/dimension combination BEFORE executing. Checks max limits (9 dims, 10 metrics), ecommerce rules, and dimension compatibility.
| Parameter | Type | Description |
|---|---|---|
metrics * | array | Metric keys to validate |
dimensions | array | Dimension keys to validate |
ga4_run_pivot_report ga4 run pivot report
Run a read-only GA4 Data API pivot report with native filters, ordering, quota state, multiple date ranges, and up to 250,000 pivot cells. Every pivot requires an explicit limit.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
report * | object | Native GA4 report request object for this endpoint. |
ga4_batch_run_reports ga4 batch run reports
Run 1-5 independent read-only GA4 Core reports for the same property in one official Data API batch request.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
reports * | array | Native GA4 report request objects to execute in one batch. |
ga4_batch_run_pivot_reports ga4 batch run pivot reports
Run 1-5 independent read-only GA4 pivot reports for the same property in one official Data API batch request.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
reports * | array | Native GA4 report request objects to execute in one batch. |
ga4_check_compatibility ga4 check compatibility
Ask the official GA4 Data API which dimensions and metrics are compatible with a proposed Core report selection.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
compatibilityFilter | string | Limit compatibility results to the requested GA4 compatibility category. |
dimensionFilter | object | Native GA4 FilterExpression JSON. |
dimensions | array | Native reporting dimensions. Validate compatibility with the selected metrics. |
metricFilter | object | Native GA4 FilterExpression JSON. |
metrics | array | Native or documented calculated metric names to request. Check compatibility with the selected dimensions. |
ga4_get_property_quotas_snapshot ga4 get property quotas snapshot
Read the current GA4 Data API property quota snapshot from the official v1alpha endpoint. This does not run a report, but Google still charges one property-quota token to the category with the most remaining quota.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
ga4_list_accounts ga4 list accounts
List raw GA4 Analytics Admin accounts accessible to the authenticated user (read-only, auto-paginated).
| Parameter | Type | Description |
|---|---|---|
pageSize | integer | Maximum items requested per page. Follow the returned pagination information for remaining results. |
ga4_list_admin_resources ga4 list admin resources
List an allowlisted GA4 Admin collection in read-only mode: streams, custom definitions, key events, audiences, product links, annotations, channel groups, expanded datasets, subproperty/rollup configuration, and access bindings.
| Parameter | Type | Description |
|---|---|---|
collection * | string | Allowlisted administrative resource collection to read. |
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
includePersonalIdentifiers | boolean | Access bindings only. Explicitly include user/email identifiers; false redacts them by default. |
pageSize | integer | Maximum items requested per page. Follow the returned pagination information for remaining results. |
ga4_get_property_configuration ga4 get property configuration
Read GA4 property details plus selected singleton Admin settings (attribution, retention, Google Signals, reporting identity, or user-provided-data settings).
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
settings | array | Property configuration surfaces to inspect. |
ga4_list_audience_exports ga4 list audience exports
List existing GA4 Audience Export snapshots and Recurring Audience Lists without creating new exports.
| Parameter | Type | Description |
|---|---|---|
propertyId * | string | Numeric GA4 property ID or properties/{id}. |
includeRecurring | boolean | Include recurring audience-export configurations. |
pageSize | integer | Maximum items requested per page. Follow the returned pagination information for remaining results. |
ga4_query_audience_export ga4 query audience export
Query rows from an existing GA4 Audience Export. User/device identifiers are redacted by default; include them only through explicit opt-in.
| Parameter | Type | Description |
|---|---|---|
audienceExportName * | string | Full GA4 audience-export resource name returned by list_audience_exports. |
includePersonalIdentifiers | boolean | Explicitly return user/device identifiers. False redacts identifier columns by default. |
limit | integer | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. |
offset | integer | Zero-based number of rows to skip before returning results. |