How Do I Connect GA4 to Claude Without Code?
Google's official GA4 MCP server was built for developers. A hosted connector gets GA4 into Claude with a URL and a browser sign-in. The steps, the plan rules, and the questions worth asking first.
Answered by Aditi Chaturvedi · Updated November 26, 2026 · 7 min read

Short answer
Use a hosted connector. In Claude, open Customize, then Connectors, click Add custom connector, paste the server URL, and approve access in your browser. With CrawlRaven, link GA4 first with a read-only Google sign-in, then add mcp.crawlraven.com/mcp. Google's own Analytics MCP server also works, but it needs Python, pipx, the gcloud tool and a Google Cloud project.
The short answer: a hosted connector
To get GA4 into Claude without code, use a hosted connector. You add it by URL in Claude's connector settings and approve access in a browser window. There is nothing to install.
The alternative is Google's own Analytics MCP server. It is free and well built, and it was written for developers: it needs a terminal, Python, pipx, the gcloud tool and a Google Cloud project.
For the no-code route you need three things:
- A Claude account. Any current plan can add a custom connector, including Free, which gets one.
- A Google account with Viewer access to the GA4 property. CrawlRaven asks for at least Viewer.
- A hosted connector that reaches GA4. This page uses CrawlRaven, which serves GA4 and Search Console through one server URL.
Google's GA4 MCP vs a hosted connector
Here are both setups, step by step. The left column follows the README in Google's repository.
Eight setup steps or three
Google's Analytics MCP
Runs on your computer
- 1Install Python 3.10 or newer
- 2Install pipx
- 3Install the gcloud command-line tool
- 4Create or pick a Google Cloud project
- 5Enable the Analytics Admin API and Analytics Data API
- 6Create an OAuth client and download its JSON file
- 7Run gcloud auth application-default login with the right scopes
- 8Add the server to Claude Code with two environment variables
GA4 only. No Search Console data.
Hosted connector
Runs on the provider's server
- 1Sign in with Google inside the connector's app
- 2Paste one server URL into Claude's connector settings
- 3Approve access in a browser window
With CrawlRaven: GA4 and Search Console in the same chat.
Three details in Google's README matter for non-developers:
- The OAuth client file. The sign-in command takes a client JSON file, which you create in Google Cloud. That puts you on the same consent screen and test-user setup described in the Google Cloud setup, decoded.
- The client list. The README shows configuration for Gemini CLI and Claude Code. It does not show setup for Claude Desktop or the Claude web app.
- The data. It reads GA4 only. Search Console needs a second server and a second setup.
Google's server is the better pick in three cases:
- You already use a terminal daily and have a Google Cloud project you trust.
- You want to read every line of code that touches your data.
- You need write tools. Its README lists tools such as creating key events and custom dimensions, switched on with an extra flag and the analytics.edit scope.
The steps with CrawlRaven
CrawlRaven joins GA4, Search Console and a crawl in one plan, and its MCP server lets Claude read them. The whole setup takes a few minutes:
- Link GA4 in CrawlRaven. Open your site, select GA4 under Traffic, choose Connect Google Analytics, and pick the property. The account needs at least Viewer access. The GA4 guide shows each screen.
- Open Customize, then Connectors, in Claude. Click + Add, then Add custom connector.
- Paste the URL
https://mcp.crawlraven.com/mcp, name it CrawlRaven, click Continue, review the detected authentication, click Continue, then Add. - Click Connect and approve in the browser. You sign in to CrawlRaven and tick the permissions Claude gets. Tick View analytics for GA4.
The Google screen you see in step 1 asks for read-only Analytics access, which means reading reports. It cannot change your property, events or settings. The full tool list is on the MCP server page, and per-client steps are in how to connect Claude to an SEO MCP.
What Claude can read from GA4
Paid access adds two GA4 tools to the connector:
- Analytics summary: active users, sessions, key events, event count, a daily series, and a comparison with the previous period.
- Analytics breakdown: up to 100 top rows by content group, landing page, source / medium, country or device, with a flag when rows were cut.
- Date ranges: up to 365 complete days, ending no later than yesterday.
If GA4 does not show up
- No properties after sign-in. The Google account needs at least Viewer access in GA4. Add it, or choose Authorize a different Google account.
- The wrong property is linked. Use Change property above the GA4 chart in CrawlRaven and connect again.
- Claude answers with Search Console only. The View analytics permission was not approved. Existing connections do not gain it on their own, so reconnect Claude and tick it.
- You are on the free preview. GA4 tools are not part of it. Paid access starts from $29/month.
Which Claude plans allow custom connectors
Anthropic's help center says custom connectors work on every current plan, with a few rules about who adds them:
- Free: one custom connector.
- Pro, Max and Ultra: you add your own under Customize, then Connectors.
- Team and Enterprise: an Owner adds the connector in Organization settings, then Connectors, using Add, then Custom, then Web. Members then find it under Customize, then Connectors, and click Connect.
Anthropic also warns that custom connectors reach services it has not verified, and that a malicious server can carry hidden instructions. Connect only servers whose owner you know.
You only add the connector once. Anthropic says the connection is made from its own servers for every Claude client, so it also works in Claude Desktop, Cowork and the mobile apps. On a Team plan, if you cannot see Add custom connector, ask an Owner to add it for the organization.
What to ask Claude about GA4
Name the site and the date range in every question. Ask Claude to say when results were truncated, so you know if you are reading a sample.
For [your site], list the top landing pages from organic search over the last 28 days with sessions and key events, and compare each with the previous 28 days.
For [your site], which pages gained Search Console clicks last month but did not gain GA4 sessions or key events? Keep query data and page outcomes separate.
Write a short monthly summary for [your site]: organic sessions, key events, the five pages that moved most, and the queries behind them.
Why GA4 needs Search Console beside it
GA4 tells you what visitors did after they arrived. It cannot tell you what they searched or where you ranked. Most SEO questions need both halves.
Five questions: GA4 alone vs GA4 with Search Console
Which searches bring visitors who stay?
GA4 alone
Shows organic sessions per page, with no search terms
GA4 + Search Console
Shows the queries behind a page next to that page's engagement
Did organic traffic fall because rankings fell?
GA4 alone
Shows that sessions fell
GA4 + Search Console
Shows whether impressions or position fell on the same dates
Which pages rank but get few clicks?
GA4 alone
Cannot see impressions or position
GA4 + Search Console
Shows high impressions, low click rate, and what visitors do after
Which pages earn key events from search?
GA4 alone
Shows key events per landing page
GA4 + Search Console
Adds the queries and positions that send people to those pages
Why do clicks and sessions not match?
GA4 alone
Shows one number
GA4 + Search Console
Puts both numbers for the same page and dates side by side
The two tools will still disagree on totals, because a click and a session are different events. That gap is explained in why Search Console and GA4 numbers do not match.
One rule keeps the joined answers honest. Search Console queries describe how people found a page. GA4 describes what happened on that page. Claude should never say one query caused one key event, and the prompts above ask it to keep the two apart.
If you have not linked Search Console to GA4 inside Google yet, the five-minute GA4 link is worth doing anyway. And if ChatGPT is your main assistant, can ChatGPT read your Search Console data covers its plan rules.
I like Google's Analytics MCP. If you already live in a terminal, it is a good free tool. For most SEOs I work with, the blocker is the Google Cloud part, and it is a reasonable thing to be wary of.
My rule for client work: whichever route you pick, approve read-only access only. Reading GA4 answers every reporting question on this page. Nothing here needs write access.
For quick checks before you ask Claude, the free UTM builder keeps campaign tagging consistent, so GA4 source and medium reports stay readable.
Sources
Frequently asked questions
Does Google have an official GA4 MCP server?
Yes. Google publishes one at github.com/googleanalytics/google-analytics-mcp. By default it runs on your own computer, installed with pipx, and needs Python 3.10 or newer, the gcloud tool, a Google Cloud project, and the Analytics Admin and Data APIs turned on. It covers GA4 only.
Can I use a custom connector on the free Claude plan?
Yes, one. Anthropic's help center says custom connectors are available on Free, Pro, Max, Ultra, Team and Enterprise plans, and that Free users are limited to one custom connector. Team and Enterprise members connect to connectors their owners have added.
Can Claude change my GA4 settings through a connector?
Not through CrawlRaven. Its Google sign-in requests the analytics.readonly scope, and its MCP tools cannot connect or switch properties or change Analytics configuration. Google's own server has optional write tools, which need an extra flag and the analytics.edit scope.
Does the connector work in Claude Desktop and the mobile app?
Yes. Anthropic says connections to custom connectors come from its own servers, across claude.ai, Claude Desktop, Cowork and the mobile apps. Add the connector once in your settings and it is available everywhere you sign in.
Which GA4 access do I need to connect it?
Viewer is enough. CrawlRaven asks for a Google account with at least Viewer access to the GA4 property you want. If no properties appear after sign-in, add that account as a Viewer in GA4 Admin, or sign in with a different Google account.
Is GA4 included in CrawlRaven's free MCP preview?
No. The free preview covers Search Console on one site. The two GA4 tools, an analytics summary and an analytics breakdown, are part of paid access, which starts from $29/month. After upgrading, reconnect Claude and approve the View analytics permission.
Does CrawlRaven store my GA4 data?
CrawlRaven's documentation says it does not persist the GA4 report rows returned through MCP. Claude then processes whatever a tool returns under Anthropic's own policies, so connect only the AI clients you trust with that data.
Why does Claude say GA4 sessions and Search Console clicks differ?
Because they count different events. A click is recorded by Google on the results page. A session is recorded by GA4 on your site, and only if the GA4 tag loads. A gap is normal, and the size of the gap is useful to watch.
15+ years of growing SaaS websites through SEO | Author, The Complete SEO Audit Checklist
Aditi has spent 15+ years helping SaaS companies scale organic traffic through technical SEO and content strategy. She is the author of the CrawlRaven SEO audit checklist used by agencies and in-house teams to systematically improve search performance.
Where to go next
People ask this next
Go deeper
- Connect Search Console to Claude: The Google Cloud Setup, Decoded11 min read
- Search Console Says 600 Clicks. GA4 Says 400 Sessions. Neither Is Broken.10 min read
- How to Connect Claude to an SEO MCP Server (and ChatGPT, Codex, Cursor)11 min read
- Best SEO MCP Servers: 9 Compared, and What Each Costs Before It Works17 min read
Check it yourself
- UTM BuilderBuild a tagged campaign URL for GA4, with presets for email, social and ads, and warnings for mixed case, unknown mediums and tagged internal links.
- GSC Regex GeneratorDescribe a Search Console filter in plain English and get an RE2 regex back, explained token by token, with a live match tester.
Stop exporting. Start shipping.
Connect Search Console, import your Ahrefs or Semrush lists, and get content priorities and separate audits. Start a 7-day free trial. Plans from $29/month.