AdPlug
Guide · Google Analytics to Claude

How to Connect Google Analytics to Claude

To connect Google Analytics to Claude, use AdPlug's remote MCP server: connect your GA4 properties in AdPlug with your Google login, add https://api.adplug.app/mcp/google-analytics to Claude as a custom connector, and approve each change from its preview. I built AdPlug for PPC people like me, who'd rather ask Claude what happened after the click than build another Exploration. Google's own open-source Google Analytics MCP server is free, but you set it up yourself (Python, a Google Cloud project and your own credentials), and it's read-only by default.

Updated · 8 minute read

AdPlug's plug mascot standing its ground, holding the Claude and Google Analytics logos on ropes as they try to fly off.

Google Analytics MCP server URL

  1. 1. Open Add custom connector in Claude ↗
  2. 2. Paste this as the name
    AdPlug - Google Analytics
  3. 3. Paste this as the URL
    https://api.adplug.app/mcp/google-analytics
  4. 4. Click Continue, then Add. On the connector page, click Connect, sign in to AdPlug if it asks, and click Approve.

01

What Claude can do with your Google Analytics

Once it's connected, you can ask Claude the things you'd normally click through GA4 reports to find: which channels brought in key events last month, which landing pages leak, whether a key event has gone quiet, or how much traffic ChatGPT sends you. Claude answers from the live property, with GA4's own totals. No exports, no CSVs, no clicking six levels deep to find one number.

It can also run 16 ready-made analyses, build funnels and check whether your tracking can be trusted. With your approval, it changes the property too: key events, custom dimensions, audiences, channel groups, annotations and Google Ads links, among 46 kinds of change.

02

Is it safe to connect Google Analytics to Claude?

Yes, if you keep Claude asking before each change. Here's what keeps a client's (or your employer's) property safe while Claude works on it:

AdPlug's guardrails when Claude works on Google Analytics
GuardrailWhat it means for you
Google's own sign-inAdPlug never sees your Google password. Google verified AdPlug's app for Google Analytics access on 23 November 2026, and the sign-in token is stored encrypted.
Preview firstEvery change starts as a preview that shows what's there now and the exact request. You have 15 minutes to approve it, it can only run once, and AdPlug refuses it if the connected Google account changed in between.
Claude asksEach tool on the connector's page in Claude has an approval setting. Needs approval waits for your yes, except in Auto mode. Set the execute tool to Always ask and Claude checks with you even in Auto mode.
Off limitsAdPlug can't delete a property or a data stream, and it can't change who has access to a property. It never asks Google for user-management access.
View onlyAdPlug's free plan reads and previews but doesn't apply changes. On Max and Agency, the team owner sets each teammate to View only or Can edit.
Your dataReports pass through to Claude and aren't stored. AdPlug caches property lists, settings and each property's dimensions and metrics for up to an hour, deletes a preview within two days, and logs which tool ran on which property and whether it worked. More in the privacy policy.
Off any timeDisconnect in AdPlug to delete the token and ask Google to revoke access. Google Ads and Search Console stay connected.
Claude's tool permissions for AdPlug's Google Analytics connector: nine read-only tools and Execute Google Analytics Change under Write/delete tools, each set to Needs approval, below Claude's note that Always ask keeps approvals on in Auto mode.
The connector's Permissions tab in Claude, with every Google Analytics tool on Needs approval.

03

Two ways to connect Google Analytics to Claude

Claude's connector directory has no Google Analytics connector from Google or Anthropic, so there are two routes: Google's open-source server, which you run yourself, or a hosted MCP server such as AdPlug's.

Ways to connect Google Analytics to Claude
RouteSetupWhere it worksWhat Claude can do
Google's Google Analytics MCP serverPython on your computer, a Google Cloud project with the Analytics APIs switched on, and your own credentialsClaude Desktop and Claude Code. Claude on the web needs it hostedReports, funnels and realtime. Read-only by default, with three create tools you can switch on (annotations, custom dimensions, key events)
AdPlug (this guide)Sign in with Google and add one address to ClaudeClaude on the web, the desktop app and Claude Code, plus ChatGPT, Grok Bot and other MCP clientsReports, 16 analyses, funnels, a tracking audit and 46 kinds of change, each previewed first
Per its GitHub repository, version 1.1.0 (6 November 2026) is the first with all three create tools. Google's developer page describes the server as read-only.

Which one I'd pick depends on where you work. If you're happy in a terminal and mostly need reports in Claude Desktop or Claude Code, Google's server is free and does the job. If you want GA4 in Claude on the web, the same connection in ChatGPT, or changes you preview first, use AdPlug.

04

Which Claude plans can do this

Custom connectors work on Claude's Free, Pro, Max, Team and Enterprise plans, on claude.ai and in the desktop app, per Anthropic's custom connector guide. The Free plan allows one. Google Analytics always needs a connector of its own (AdPlug's all-platforms address carries the ad platforms only), so on Claude Free it takes that one slot.

On Team and Enterprise, an Owner adds the connector first under Organization settings → Connectors. Each member then connects their own account from Plugins.

05

How to connect Google Analytics to Claude in 5 steps

It takes about three minutes to go from a new AdPlug account to Claude answering questions about your GA4 property. Connect Google Analytics in AdPlug first, so Claude has something to read as soon as you add the connector.

  1. Create your AdPlug account

    Go to adplug.app/signup, sign in with Google or email, and follow the short onboarding. It ends on your AdPlug dashboard.

    AdPlug Create your account screen with a Continue with Google button and name, email and password fields.
    AdPlug sign-up. One click with Google, or an email and password.
  2. Connect Google Analytics to AdPlug

    In onboarding, or any time on the Connections page, click Connect Google Analytics and sign in with the Google account that opens your properties in Google Analytics. Every GA4 property that account can open becomes available to Claude through the one connection.

    Google then asks you to let AdPlug “See and download your Google Analytics data” and “Edit Google Analytics management entities”. Leave both ticked. The first lets AdPlug read your data and the second lets it make the changes you approve, so without both, AdPlug refuses the connection and asks you to connect again. Allowing the second changes nothing by itself: AdPlug only makes a change from a preview you approve.

    The Google Analytics card on AdPlug's Connections page, with the line GA4 traffic, key events, funnels, tracking checks, marked Connected, the email hidden, the connection date 18/11/2026, and Reconnect and Disconnect buttons.
    Google Analytics connected on AdPlug's Connections page, with the date it was connected.

    Google Ads or Search Console already connected?

    Google Analytics has its own Google sign-in, even when it's the same Google account, so you can disconnect one without touching the others.

  3. Add the connector to Claude

    In Claude, open Plugins (or go straight to claude.ai/customize/connectors), click Add, then Add custom connector. Name it AdPlug - Google Analytics, paste the address below and click Continue.

    https://api.adplug.app/mcp/google-analytics
    Claude's Plugins page with the Add custom connector dialog open: the name AdPlug - Google Analytics, the server URL https://api.adplug.app/mcp/google-analytics, Anthropic's note to only use connectors from developers you trust, and the Continue button.
    Claude's Add custom connector form with the Google Analytics name and address.

    Claude then detects how AdPlug signs you in. Keep Sign in now and Register automatically, and click Add.

    The second screen of Claude's Add custom connector dialog for AdPlug - Google Analytics, with Authentication set to Sign in now and OAuth client set to Register automatically, both marked Detected.
    The second screen of the form. Leave both detected options as they are.

    Already use AdPlug for your ads?

    Keep that connector and add this one next to it. Google Analytics isn't on the all-platforms address.

  4. Approve Claude in AdPlug

    Claude opens AdPlug's approval screen. If it asks you to sign in, use the AdPlug account you connected Google Analytics in. Check what Claude is asking for and click Approve. This only approves the connection. It doesn't approve any change in Google Analytics.

    AdPlug's approval screen, Let Claude use your AdPlug account, listing what Claude will be able to do, then back to claude.ai, with Deny and Approve buttons above the badges GDPR compliant, DPA available, Verified by Google, LinkedIn Marketing Developer and Preview before every write.
    AdPlug's approval screen names Claude. Approve to let it use your AdPlug connection.

    Back in Claude, the connector says Connected and lists its 10 tools: 9 that read or preview, and 1 that makes the change you approved.

    The AdPlug - Google Analytics custom connector page in Claude, marked Added and Connected, with its connector URL, read-only tools including google_analytics_audit, google_analytics_funnel and google_analytics_insights, google_analytics_execute_mutation under Write/delete tools, and Show all 10.
    The AdPlug - Google Analytics connector in Claude, connected, with its tools.

    Before you ask for any change, set how Claude asks. Every tool starts on Needs approval, which waits for your yes in Manual mode, but in Auto mode Claude may act without asking. On the connector's page, set Execute Google Analytics Change (google_analytics_execute_mutation) to Always ask, so Claude checks with you before every change, Auto mode included. If your Claude doesn't offer Always ask, stay in Manual mode.

  5. Test the connection

    Start a new chat with the connector switched on (+, then Plugins) and ask:

    “List my Google Analytics properties.”

    Claude calls the google_analytics_list_properties tool and lists every GA4 account and property your Google login can open, and whether you can edit each one. If your properties are there, you're connected.

    Claude answering 'List my Google Analytics properties.' through AdPlug - Google Analytics: one GA4 property on this login, AdPlug Analytics, type Standard and Can edit Yes, with the account and property IDs hidden.
    Claude's reply to the test prompt on AdPlug's own GA4 property, with the IDs hidden.

Connect Google Analytics to Claude Code

Claude Code takes the same address. Run this in your terminal, then type /mcp in Claude Code to sign in:

claude mcp add --transport http --scope user adplug-google-analytics https://api.adplug.app/mcp/google-analytics

06

The 10 Google Analytics tools Claude can use through AdPlug

AdPlug gives Claude 10 Google Analytics tools: 8 that read, 1 that previews a change and 1 that makes it once you approve. The Google Analytics MCP integration page sets out the 46 kinds of change and what AdPlug never touches.

AdPlug's Google Analytics tools in Claude
ToolWhat it doesReads or changes
adplug_get_statusWhat's connected, and what your AdPlug plan allowsReads
google_analytics_list_propertiesEvery GA4 property your Google login can see, a 28-day comparison across up to 25 of them, or one property in detailReads
google_analytics_insights16 ready-made analyses, from an overview, channels and landing pages to Google Ads, key events, anomalies, ecommerce and AI assistant traffic, most of them against the period beforeReads
google_analytics_reportGA4 reports with your own metrics, dimensions, dates, filters and comparison, plus pivots and realtimeReads
google_analytics_metadataEvery dimension and metric the property can report on, custom ones included, and which ones work togetherReads
google_analytics_funnelA funnel like GA4's funnel exploration, open or closed: how many users reach each step and where they drop offReads
google_analytics_auditWhether the property's numbers can be trusted, with the fix for each problem it findsReads
google_analytics_settingsOne part of the property's setup: key events, Google Ads links, attribution, data retention, change history and moreReads
google_analytics_preview_mutationShows a change before it's made, next to what's there now: key events, custom definitions, audiences, channel groups, annotations, links and settingsPreviews a change
google_analytics_execute_mutationMakes a change you approved from its preview, onceMakes a change
You don't need the names. Ask Claude for the job in plain words and it picks the tools.

07

What you can ask Claude

These work as soon as Google Analytics is connected. Name the property if your login opens more than one, and Claude finds it by its name, website or G- measurement ID. There are more copy-paste prompts in the prompt playbooks.

What to fix first

“Review my Google Analytics over the last 30 days (ask which property if I have several): tracking I can't trust, key events gone quiet, channel shifts and landing pages that leak conversions. Come back with the top 5 things to fix, ranked by impact, and why each matters.”

Can I trust the data?

“Can I trust my Google Analytics data? Audit the tagging, key events, Unassigned and (not set) traffic, UTMs and referrals, and tell me what to fix first.”

After the ad click

“Compare Google Ads clicks with GA4 sessions by campaign, including untagged google / cpc traffic. What should I fix first?”

Key events gone quiet

“Have any key events stopped firing or dropped against a normal week? Tell me when each last fired and whether it's broken tracking or lost traffic.”

Where the funnel leaks

“Build last month's checkout funnel. Where does paid traffic drop off compared with organic, and is mobile worse?”

Monthly client report

“Turn last month's GA4 into a client-ready PDF report: a short summary, sessions and key events by channel against the month before, any tracking issues, and what we change next.”

Morning GA4 check

“Anything in GA4 yesterday that needs my attention? Check sessions and key events by channel against a normal day and flag only what's off.”

A remarketing audience

“Create a GA4 audience of people who added to cart but didn't buy, for Google Ads remarketing. Show me the preview first.”

The ad-click and remarketing prompts need the property linked to Google Ads in GA4. Claude can check that link for you.

I tested the connector on AdPlug's own GA4 property, which was a few days old at the time (so the numbers are tiny). The audit told me there was no double tagging, no email addresses in URLs and 14-month data retention, and offered to preview deleting three unused default key events. Here's part of Claude's answer to the “Can I trust the data?” prompt:

Part of Claude's GA4 audit through AdPlug: Unassigned and (not set) traffic explained, UTMs and referrals checked, what's already fine (no double tagging, no email addresses in URLs, 14-month data retention, Google signals off), and an offer to preview deleting three unused default key events.
Part of Claude's GA4 audit through AdPlug: what's quiet, what's already fine, and a change it offers to preview.

08

How changes work

AdPlug covers 46 kinds of GA4 change in 11 groups: key events, custom dimensions and metrics, audiences, channel groups, annotations, data streams, event rules, the Measurement Protocol, Google Ads and BigQuery links, property settings, and most other property-level Admin changes Google documents.

Claude asks AdPlug for a preview first, which shows what's there now and the exact request. With the execute tool on Always ask (step 4), nothing changes until you say yes, and then Claude applies it with the same values.

AdPlug's free plan previews changes but doesn't apply them, so applying needs a paid AdPlug plan. Every tool call is recorded in your AdPlug Usage and Audit Log.

09

Troubleshooting

Click any item to expand the answer.

Claude finds no Google Analytics properties
The Google account you connected needs a role on at least one GA4 property. Open analytics.google.com with that account and check the property is there. If it isn't, reconnect on the Connections page with the Google account that has it (AdPlug connects one Google login for Google Analytics).
AdPlug says a Google Analytics permission was unticked
Google's consent screen lets you untick each permission, and AdPlug needs both. Connect again and leave “See and download your Google Analytics data” and “Edit Google Analytics management entities” ticked.
Google says an admin has to approve AdPlug
On a Google Workspace account, the Workspace admin can block third-party apps. Ask them to allow AdPlug in the Admin console (Security, then Access and data control, then API controls), then connect again.
Claude doesn't use the connector
Connectors are switched on per chat. Open the + menu in the message box, then Plugins, and check AdPlug - Google Analytics is on. Or name it in the prompt: “Use AdPlug to list my Google Analytics properties.”
I can't add another custom connector
Claude's Free plan allows one custom connector, and Google Analytics can't share the all-platforms address https://api.adplug.app/mcp, which carries the ad platforms only. Remove the old connector, or move to a Claude plan that allows more.
A change is refused
It's usually one of five things. Your Google login needs a role that can edit the property (the property list shows Can edit). On a team, the owner may have set you to View only for Google Analytics. AdPlug's free plan previews changes but doesn't apply them, so applying needs a paid plan. A preview lasts 15 minutes, so ask for a fresh one if it expired. And AdPlug refuses a change if the Google account connected to AdPlug changed since the preview.

10

Questions people ask

Can I connect Claude to Google Analytics?
Yes. Connect Google Analytics in AdPlug with your Google login, then add https://api.adplug.app/mcp/google-analytics to Claude as a custom connector. Claude can then read your GA4 properties live, audit the tracking, build funnels and preview changes, and with the execute tool on Always ask, it checks with you before applying each one. There's no Google Cloud project, API key or service account to set up.
Is there an official Google Analytics connector for Claude?
No. Claude's connector directory has no Google Analytics connector from Google or Anthropic. Google publishes an open-source Google Analytics MCP server that you run yourself, and it works in Claude Desktop and Claude Code. For Claude on the web, you add a hosted server, such as AdPlug's, as a custom connector.
Do I need Google's Analytics MCP server or a Google Cloud project?
Not with AdPlug. You sign in on Google's own screen and allow two permissions, and AdPlug uses its own Google Cloud project. Google's own server needs Python, a Google Cloud project with the Analytics APIs switched on, and your own credentials.
Which Claude plans can add a custom connector?
Custom connectors work on Claude's Free, Pro, Max, Team and Enterprise plans, on the web and in the desktop app. The Free plan allows one, and Google Analytics always needs its own, because AdPlug's all-platforms address carries the ad platforms only. On Team and Enterprise, an Owner adds the connector first, and each member then connects their own account.
Does the Google Analytics connector work in Claude Code and the Claude desktop app?
Yes. A connector you add on claude.ai also shows up in the desktop app. In Claude Code, run claude mcp add --transport http --scope user adplug-google-analytics https://api.adplug.app/mcp/google-analytics, then type /mcp to sign in.
Which Google Analytics tools does Claude get?
10 tools through AdPlug: 8 that read, 1 that previews a change and 1 that makes it. The 8 cover your properties, 16 ready-made analyses, custom and realtime reports, the property's dimensions and metrics, funnels, a tracking audit, the property's settings and AdPlug's status check. You don't need the names: ask for the job in plain words and Claude picks the tool.
Can Claude change my GA4 settings?
Yes, on a paid AdPlug plan, and only from a preview. AdPlug covers 46 kinds of change, such as key events, custom dimensions, audiences, channel groups, annotations, data retention and Google Ads links. Set the execute tool to Always ask on the connector's page and Claude checks with you before each change, even in Auto mode. AdPlug can't delete a property or a data stream, or change who has access to one, and its free plan previews changes but doesn't apply them.
Can I connect several clients' GA4 properties?
Yes, every property your Google login can open, through one connection. Ask for a portfolio view and AdPlug compares up to 25 properties' last 28 days with the 28 before. AdPlug connects one Google login for Google Analytics, so use the login your clients have added to their properties.
Does it work with Universal Analytics?
No, GA4 properties only. Google switched off Universal Analytics, including its reports and API, on 1 July 2024.
Is Google Analytics a separate connection from Google Ads and Search Console?
Yes. Google Analytics has its own Google sign-in and its own connector in Claude, even when it's the same Google account. Disconnecting it doesn't touch Google Ads or Search Console.
Why do Claude's numbers differ from the GA4 interface?
Usually they don't, once the dates match. AdPlug reads dates in the property's own time zone, ends most date presets yesterday as GA4 does, and uses GA4's own totals, so users aren't counted twice. GA4 keeps processing for 24 to 48 hours, and the answer says so when a date range touches that window. Sampling, thresholding and (other) rows come back as notes with the numbers.
Can Claude show how much traffic ChatGPT, Claude and Perplexity send my site?
Yes. AdPlug's AI traffic analysis counts sessions and key events from ChatGPT, Perplexity, Claude, Gemini, Copilot and other assistants against the period before, then compares AI traffic as a whole with the whole site on engagement and key event rate. Some apps send no referrer, so treat it as a floor: part of that traffic still lands in Direct.
Is connecting Claude to Google Analytics free?
It can be. Claude's Free plan allows one custom connector, and AdPlug's free plan covers one platform, which can be Google Analytics: view only, with 500 requests in the first 5 days and 50 a month after that. AdPlug Pro is $29 a month with every platform and 200 AI edits a month, and AdPlug Max includes unlimited edits.

Try it on your account.

Connect Google Analytics to Claude through AdPlug in a few minutes. Free plan, no card needed.