Tag Pilot GA4
v0.3.0Free, read-only Google Analytics 4: reports, funnels, realtime.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_account_summaries List GA4 accounts and properties
Lists every Google Analytics account and GA4 property the signed-in Google account can read, with property IDs. Start here to find the property_id for other tools.
get_property_details GA4 property details
Returns a GA4 property's settings (time zone, currency, industry, service level: standard or 360) and its data streams, including web measurement IDs (G-XXXX) and default URLs.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
list_google_ads_links Google Ads links
Lists the Google Ads accounts linked to a GA4 property (customer IDs, personalization setting, who created the link).
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
list_property_annotations Property annotations
Lists the reporting annotations of a GA4 property (notes on dates such as releases, tracking changes or campaigns, plus system-generated ones). Useful to explain jumps in data.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
get_custom_dimensions_and_metrics Custom dimensions and metrics
Lists the custom dimensions and metrics of a GA4 property with the API names to use in run_report (e.g. "customEvent:payment_type", "customUser:plan"). Set include_standard to also list built-in dimensions/metrics (large; combine with search).
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
include_standard | boolean | Also return built-in dimensions and metrics. Default false. |
search | string | Case-insensitive filter on API name, UI name and category, e.g. "item" or "revenue". |
run_report Run a GA4 report
Runs a Google Analytics 4 report (Data API runReport): metrics broken down by dimensions over date ranges, with optional filters, sorting and paging. Rows come back as objects keyed by dimension/metric name. Default: last 28 days, 100 rows. Tips: put "date" in dimensions for a time series; use order_bys + limit for top-N lists; event-scoped custom dimensions are "customEvent:<param>".
run_realtime_report Run a GA4 realtime report
Realtime data for the last 30 minutes (60 on GA4 360): active users and events right now. Good for checking that a tracking change is live. Only realtime dimensions/metrics are allowed (see the dimensions description).
| Parameter | Type | Description |
|---|---|---|
metrics * | array | Realtime metrics: "activeUsers", "eventCount", "keyEvents", "screenPageViews". |
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
dimension_filter | array | List of conditions that must ALL match (AND). An item can also be {"any": [conditions]} for OR. Each condition: {field, op, value}, optionally "not": true. Example: [{"field": "eventName", "op": "exac… |
dimensions | array | Realtime dimension API names (a limited set), e.g. "eventName", "unifiedScreenName", "country", "city", "deviceCategory", "platform", "minutesAgo". List: https://developers.google.com/analytics/devgui… |
limit | integer | Max rows to return. Default 100. The result says when more rows exist (next_offset). |
metric_filter | array | List of conditions that must ALL match (AND). An item can also be {"any": [conditions]} for OR. Each condition: {field, op, value}, optionally "not": true. Example: [{"field": "eventName", "op": "exac… |
minute_ranges | array | Default: the last 30 minutes. Two ranges are allowed (e.g. last 5 vs last 30 minutes). |
order_bys | array | |
return_property_quota | boolean | Include the property quota status in the result. |
run_funnel_report Run a GA4 funnel report
Funnel exploration (Data API v1alpha runFunnelReport): how many users reach each step and where they drop off. Steps are events (e.g. view_item → add_to_cart → begin_checkout → purchase), optionally with parameter or dimension conditions. Result rows per step: activeUsers, funnelStepCompletionRate, funnelStepAbandonments, funnelStepAbandonmentRate. Note: this Google API is in alpha.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
steps * | array | Funnel steps in order (2–10). Each needs event_name and/or conditions. |
breakdown_dimension | string | Split each step by a dimension, e.g. "deviceCategory" or "sessionDefaultChannelGroup". |
breakdown_limit | integer | Max breakdown values. Default 5. |
date_ranges | array | Up to 4 date ranges. Default: last 28 full days (28daysAgo to yesterday). Several ranges add a "dateRange" column (e.g. for period comparisons). |
dimension_filter | array | Limit the funnel to users matching these dimension conditions (e.g. a country). |
limit | integer | Max rows to return. Default 100. The result says when more rows exist (next_offset). |
next_action_dimension | string | Show what users did next after each step: "eventName", "pagePath", "pageTitle", "unifiedScreenName" (and a few more). |
open_funnel | boolean | Open funnel: users can enter at any step. Default false (closed: everyone starts at step 1). |
return_property_quota | boolean | Include the property quota status in the result. |
trended | boolean | Also return a day-by-day (trended) funnel. Default false. |
check_duplicate_transactions Tag Pilot check: duplicate purchases
Tag Pilot tracking-health check. Counts purchase events per transaction_id to find duplicated purchases (usually thank-you page reloads, or the same order sent by both browser and server tagging) and purchases with no transaction_id at all. Returns totals, the duplicate rate and the worst transaction IDs. Uses 3 runReport calls.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
date_range | object | Default: last 28 full days (28daysAgo to yesterday). |
top | integer | How many duplicated transaction IDs to list. Default 20. |
check_traffic_attribution Tag Pilot check: unassigned and (not set) traffic
Tag Pilot tracking-health check. Shows how sessions split by default channel group and flags attribution problems: the share of "Unassigned" sessions (with their top source/medium pairs), "(not set)" source, "(not set)" landing page (sessions without a page_view/session_start, often server-side or Measurement Protocol hits without session data, or consent mode pings) and a very high Direct share (lost referrers/UTMs). Uses 4 runReport calls.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | number | GA4 property ID, e.g. "123456789" or "properties/123456789" (not the G-XXXX measurement ID). get_account_summaries lists them. |
date_range | object | Default: last 28 full days (28daysAgo to yesterday). |
connect Connect GA4 MCP
Connects this computer to Tag Pilot GA4 MCP (free Tag Pilot account + read-only Google Analytics access). Call it when the user asks to connect, or when another tool says the computer is not connected. It returns a link and a code: show both to the user as given (a clickable link), ask them to open it, approve and allow Google access, and tell you when done; then call connection_status. Never ask the user to run terminal commands. If already connected, it says so.
connection_status GA4 MCP connection status
Whether this computer is connected to Tag Pilot GA4 MCP: "connected" (with the device name), "waiting" (a sign-in link is open; shows the link and code again), "not_connected" (call connect) or "error" (with the next step). While a sign-in is open it waits up to 25 seconds for the approval before answering, so call it after the user says they approved, not in a fast loop.
| Parameter | Type | Description |
|---|---|---|
wait | boolean | Wait up to 25 s for an open sign-in to complete. Default true. |