Google Analytics 4
Claude Desktop

How to Connect Google Analytics 4 to Claude

Give Claude access to your website analytics. Query traffic, conversions, and user behavior in natural language.

2 min setupbeginnerUpdated 2026-02-11

Google Analytics 4 is the single most important tool for understanding what happens on your website. It tracks every visit, every click, every conversion. The problem is getting answers out of it. The GA4 interface is powerful but notoriously unintuitive — Explorations take time to build, standard reports never show quite what you need, and by the time you have compared two date ranges with the right segment applied, you have forgotten what you were looking for.

What if you could just ask? "Where is my traffic coming from this week?" "Which landing pages convert best from organic search?" "How did my email campaign perform compared to paid social?"

That is what connecting GA4 to Claude gives you. Through MCP (Model Context Protocol), Claude gets direct access to your Google Analytics data — sessions, users, pageviews, conversions, traffic sources, engagement metrics, and more. No Explorations to build. No segments to configure. Just questions and answers.

This guide walks you through the setup in about 2 minutes. GA4 is included in the Free plan — it shares the same Google OAuth connection as Google Ads, so if you have already connected Google Ads, GA4 may already be available.

The Old Way

Open GA4. Navigate to Explore. Create a new exploration. Add dimensions. Add metrics. Set date range. Apply segment. Wait for it to process. Realize you forgot a metric. Start over.

The New Way

Open Claude. Ask "How did my organic traffic perform this week compared to last week?" Get the answer in seconds — with trends, anomalies, and suggestions.

What You Need

  • A Google Analytics 4 property with data
  • Claude Desktop installed (macOS or Windows) — download from claude.ai/download
  • 2 minutes of your time

Step-by-Step Setup

1

Sign up for Ad Superpowers (free)

Go to app.adsuperpowers.ai and create your account. You can sign up with Google — using the same Google account linked to your GA4 property makes the next step seamless. GA4 is included in the Free plan, no credit card needed.

If you already have an Ad Superpowers account with Google connected, GA4 may already be available. Check your dashboard.
2

Connect Google Analytics 4

In the Ad Superpowers dashboard, click "Connect Platform" and choose Google Analytics. You will authorize access through Google OAuth — the same flow as Google Ads. Select the GA4 properties you want to access. If you manage multiple properties (different websites or apps), you can connect them all at once.

GA4 shares your Google OAuth connection. If you have already connected Google Ads or Google Search Console, your Google authorization is already in place.
3

Copy your MCP server URL

Navigate to Settings in the Ad Superpowers dashboard and copy your MCP server URL: https://mcp.adsuperpowers.ai/v1. You will also need your API key — find it under "API Keys" on the same page. If you have already set up Ad Superpowers for another platform, you can use the same URL and key.

4

Add the MCP server to Claude Desktop

Open Claude Desktop. Go to Settings (gear icon) and navigate to "Connectors". Click "Add Custom MCP" and paste the URL: https://mcp.adsuperpowers.ai/v1. Add your API key as a Bearer token in the Authorization header. Save the settings.

If you have already configured Ad Superpowers in Claude Desktop for Meta Ads or Google Ads, you do not need to add it again — GA4 tools are automatically available through the same connection.
5

Ask your first analytics question

Restart Claude Desktop (if this is a new MCP connection) and ask a question: "Show me my GA4 properties" is a good first test. If you see your properties listed, the connection is working. Now try something useful: "How much traffic did my website get this week, broken down by source?"

Claude has access to 2 GA4 tools: a flexible reporting tool for historical data (sessions, users, conversions, any dimension/metric combo) and a real-time tool for what is happening on your site right now.

Try These Prompts

Once connected, try these prompts to explore your data. Click to copy.

What data can Claude access from GA4?

Once connected, Claude can query the same data you see in GA4 — but faster and in combinations that would take multiple Explorations to build manually. Specifically:

Sessions, users, and pageviews with flexible date ranges and comparisons. Ask about any period and compare it to any other — last week vs the week before, this month vs same month last year, or any custom range.

Traffic sources and acquisition data: organic search, paid search, social, direct, email, referral, and any custom UTM parameters you use. See exactly where your visitors come from and which sources convert best.

Engagement metrics: average engagement time, bounce rate, pages per session, scroll depth, and events. Understand not just how many people visit, but what they do when they get there.

Conversion tracking: goals, ecommerce transactions, and custom conversion events. See which traffic sources, landing pages, and user segments drive the most value.

User demographics: country, city, language, device, browser, operating system, and screen resolution. Know who your audience is.

Real-time data: see who is on your site right now, which pages they are viewing, and where they came from. Useful for monitoring campaign launches or content drops.

The real power is in combining these. "Which country drives the most organic traffic but has the lowest conversion rate?" is one question for Claude, but would require a custom Exploration in GA4.

Full-funnel analysis: GA4 + your ad platforms

GA4 alone tells you what happens on your website. But the real magic happens when you combine it with your advertising data. Since Ad Superpowers connects multiple platforms through a single MCP server, Claude can cross-reference your analytics with your ad performance.

Here is what becomes possible:

Ad-to-site correlation: "My Meta Ads show 500 link clicks yesterday, but GA4 only shows 380 sessions from Facebook. Where is the drop-off?" Discrepancies between ad platform clicks and analytics sessions are one of the most common (and frustrating) issues in digital marketing. Claude can help you diagnose them.

Landing page optimization: "Which landing pages from my Google Ads campaigns have the highest bounce rate?" By combining Google Ads keyword data with GA4 engagement metrics, you can identify where paid traffic lands and whether it sticks.

Attribution comparison: "GA4 says organic drove 50 conversions. Meta says its ads drove 45. Google Ads claims 30. What is the real picture?" Every platform takes credit for conversions differently. Having all the data in one conversation lets Claude help you reconcile the numbers.

If you are running ads on Meta, Google, or other platforms, consider connecting those too — see our integrations page for the full list. The cross-platform insights are where the biggest optimization opportunities hide.

Common use cases

Here is how marketers use GA4 + Claude every day:

Morning traffic check: Instead of opening GA4 and clicking through reports, ask Claude for a traffic summary. It highlights changes, flags anomalies (traffic spikes or drops), and tells you which sources are driving the change.

Content performance analysis: Ask Claude which blog posts or pages drive the most engaged traffic. Identify content that attracts visitors but does not convert, and content that converts well but needs more traffic.

Campaign monitoring: After launching a new ad campaign or email blast, ask Claude to show real-time active users and where they are coming from. Watch your campaign perform live without refreshing GA4 dashboards.

SEO insights: Combine GA4 traffic data with Google Search Console (also available through Ad Superpowers on the free plan) to see which keywords bring organic visitors and what those visitors do on your site. Check our setup docs for connecting both.

Conversion funnel debugging: "Where do users drop off between landing page and purchase?" Claude can analyze the funnel steps and identify where you are losing people.

Monthly reporting: Ask Claude for a monthly performance summary and it will cover traffic, sources, top pages, conversions, and trends — all in one conversational response. Check our cookbook for more reporting prompts.

Troubleshooting

If Claude does not show your GA4 data after setup:

1. Make sure Claude Desktop is restarted after adding or modifying the MCP server. 2. Check that your API key is correct. You can regenerate it in the Ad Superpowers dashboard under Settings. 3. Verify your Google connection is active in the dashboard. If it shows "disconnected", click to reconnect and re-authorize. 4. Try the simple test: "Show me my GA4 properties." If this works, your connection is fine and the issue is with a specific query. 5. Make sure your GA4 property has data. New properties with no traffic will return empty results. 6. Date range matters: GA4 data can have a processing delay of 24-48 hours for some metrics. If yesterday's data looks incomplete, try asking for data from 2 days ago.

Note on data freshness: GA4 standard reports are near-real-time, but some dimensions and metrics (like conversion data) can take up to 48 hours to finalize. If numbers look off, ask Claude to compare "final" data from a few days ago rather than yesterday.

For more help, visit our troubleshooting docs at adsuperpowers.ai/docs/troubleshooting or reach out through the dashboard.

Frequently Asked Questions

Related Guides

Learn More About Google Analytics 4

See all tools, features, and technical details for the Google Analytics 4 integration.

View Integration

Ready to Connect?

Create your free account and set up Google Analytics 4 with Claude Desktop in under 2 minutes.