AI MARKETING PLAYBOOKS
How to Connect Claude to Google Analytics 4 (GA4) via MCP
DIRECT ANSWER
To connect Claude to GA4, use a Google Analytics MCP server: authenticate it to your GA4 property via Google OAuth, register it in Claude (paste a remote server URL, or add a local server to Claude Desktop's config file), then ask a plain-English question like 'which channels drove the most conversions last month?' Claude calls the server, which queries the GA4 Data API with your credentials, and live analytics come back — without navigating the GA4 interface.
STEP-BY-STEP
Connect Claude to GA4 via MCP
Step 1 · Choose a GA4 MCP server
Pick a remote (URL-based) Google Analytics MCP server for no-install setup, or a local server you run yourself.
Step 2 · Authenticate to your GA4 property
Sign in through Google OAuth and grant access to the GA4 property you want Claude to query. Self-hosted servers may use a service account with the Data API enabled.
Step 3 · Register the server in Claude
Paste the remote URL into Claude's connectors, or add a local server to claude_desktop_config.json and restart Claude Desktop.
Step 4 · Run a test query
Ask: 'Show sessions and conversions by channel for the last 30 days.' Live GA4 data confirms the connection.
Step 5 · Add continuous monitoring (optional)
Connect the same property to Hadrian to get an agent that watches funnels and traffic and flags meaningful changes automatically.
Why connect Claude to GA4
GA4's interface is powerful but punishing — building the report you want often takes more clicks than the insight is worth. Connecting Claude flips that: you describe the question and Claude builds the query against the GA4 Data API. 'Show conversions by channel for the last 30 days, with the change versus the prior period' becomes one sentence instead of a ten-minute exploration build.
It also joins the dots across data. Because Claude can hold context, you can follow up — 'now break the top channel down by landing page' — and keep drilling conversationally. That turns GA4 from a reporting tool you dread into an analyst you can interrogate.
Setup notes for GA4
GA4 access goes through Google OAuth and the GA4 Data API, scoped to the property you grant. A remote MCP connector handles the API setup; a self-hosted local server means enabling the Data API and managing service-account or OAuth credentials yourself.
GA4 is naturally read-only — you're querying analytics, not changing campaigns — which makes it one of the safest, highest-value platforms to connect first. There's no write-access risk to worry about.
From queries to continuous insight
Claude + GA4 answers brilliantly when you ask, but you still have to know to ask. Hadrian connects the same GA4 data and runs an agent that watches your funnels and traffic continuously — flagging a conversion-rate drop or a channel that suddenly spiked, and tying it back to the campaign or content that caused it.
The pairing is natural: use Claude for ad-hoc analysis, and let Hadrian's agent surface the things you didn't think to query. Insight you have to request is only as good as your memory to request it; insight that finds you is the upgrade.
FAQ
Connect Claude to GA4 — common questions
How do I connect Claude to GA4?
Use a Google Analytics MCP server: authenticate to your GA4 property via Google OAuth, register the server in Claude (remote URL or local config), and confirm with a test query. Remote connectors handle the GA4 Data API setup for you.
Can Claude change anything in GA4?
No — GA4 is an analytics platform, so connections are read-only by nature. Claude can query and report on your data but cannot alter it, which makes GA4 one of the safest platforms to connect first.
Do I need the GA4 Data API?
Yes, under the hood — that's what returns the data. Remote connectors enable and manage the Data API for you; self-hosted servers require you to enable it and set up service-account or OAuth credentials.
How does Hadrian use GA4?
Hadrian connects GA4 and runs an agent that monitors your funnels and traffic continuously, flagging conversion drops or traffic spikes and tying them to the campaign or content responsible — insight that finds you instead of waiting to be queried.
BUILT BY HADRIAN'S AGENTS
This page was written by Hadrian — the autonomous CMO.
Hadrian runs every channel of your marketing on your live data. See it work on your brand.