Skip to content
Get MCP AdsGet MCP Ads, home
Start free
View as Markdown

Connect Google Analytics 4 to an AI assistant

Connect Google Analytics 4 to Claude, ChatGPT, Codex or any MCP client, what to ask it once it is connected, and the 27 tools behind the answers.

For you

What the answer looks like, and what to type to get it.

Reports, realtime, funnels, key events, ecommerce and server-side tagging diagnostics.

Connect itLink to this section

  1. Open the dashboard and choose this platform.
  2. Approve the consent screen. The gateway stores an encrypted refresh token, never a password.
  3. Tick the accounts to expose. Nothing is readable until you do.
  4. Paste the endpoint into your assistant, or use the shared one for every platform at once.
textGoogle Analytics 4 on its own endpoint
https://mcp.getmcpads.com/ga4/mcp

What to askLink to this section

text
Sessions and conversions by channel group for the last 28 days.
Did the checkout funnel move after Tuesday's release?
What is happening on the site right now?
Which events are key events, and what custom definitions exist?
Is this dimension and metric combination even legal?

What answers each oneLink to this section

QuestionTools
Sessions and conversions by channel group for the last 28 days.ga4_run_report, ga4_get_channel_groups
Did the checkout funnel move after Tuesday's release?ga4_run_funnel_recipe, ga4_run_advanced_funnel_report
What is happening on the site right now?ga4_run_realtime_report
Which events are key events, and what custom definitions exist?ga4_get_key_events, ga4_get_custom_definitions
Is this dimension and metric combination even legal?ga4_check_compatibility

What it can changeLink to this section

For your agent

The tool sequence, the parameters that matter, and what will be refused.

Both readings as Markdown: /guides/sources/ga4.md

Platform id
ga4
Tool prefix
ga4_
Account parameter
propertyId
Dedicated endpoint
https://mcp.getmcpads.com/ga4/mcp
Tools
27, 0 of which write
Announced by default
ga4_get_key_events, ga4_health_check, ga4_list_properties, ga4_run_realtime_report, ga4_run_report
Metrics
51, see /docs/sources/ga4/metrics
Dimensions
62, see /docs/sources/ga4/dimensions

Scope requested from the platformLink to this section

ScopeGrantsAllows writes
https://www.googleapis.com/auth/analytics.readonlyRead GA4 reports, metadata and property configuration. Cannot modify anything.No

Reaching a tool that is not announcedLink to this section

text
search_tools({ task: "..." })      find it
describe_tool({ name: "..." })     read its schema
run_tool({ name, args })           execute, with the same checks

What will refuse youLink to this section

  • An account not ticked by the owner. Call list_accounts and use a propertyId from it.
  • Any write. Google Analytics 4 is read only here.
  • A call to this platform on another platform's dedicated endpoint. The refusal names the URL that serves it.

Questions this source answersLink to this section

QuestionTools, in order
Sessions and conversions by channel group for the last 28 days.ga4_run_report then ga4_get_channel_groups
Did the checkout funnel move after Tuesday's release?ga4_run_funnel_recipe then ga4_run_advanced_funnel_report
What is happening on the site right now?ga4_run_realtime_report
Which events are key events, and what custom definitions exist?ga4_get_key_events then ga4_get_custom_definitions
Is this dimension and metric combination even legal?ga4_check_compatibility