Last 10 free Supermetrics migrations
Google Analytics 4 · MCP

Google Analytics 4 MCP Server: ask Claude about your data

The Detrics MCP server gives Claude read-only access to your Google Analytics 4 account. You ask in plain language and Claude answers from your live data, not a stale export.

Available on the free plan: 35 queries/month, no credit card.

Ask your agent about Google Analytics 4

Traffic dropped this week according to Google Analytics 4. Find out why.

Which pages lost the most visits in Google Analytics 4 this month?

What were my top traffic sources in Google Analytics 4 this month?

Compare my Google Analytics 4 active users against last quarter

What you can analyze in Google Analytics 4

E-commerce Revenue Tracking

Monitor purchase revenue, item revenue, and purchase quantities with complete funnel metrics. Track add to carts, checkouts, cart-to-view rates, and purchase-to-view rates for optimization.

User Acquisition & Retention

Analyze first user source, session source, and campaign attribution. Track new users, active users, engagement duration, and average session duration.

Event & Conversion Analytics

Monitor event counts, conversions, and event values by event name. Track custom events and goal completions throughout the user journey.

Content Performance Metrics

Analyze page paths, landing pages, and page titles. Track page views, engagement duration, and bounce rates for content optimization.

Technology & Platform Insights

Break down by device category, operating system, browser, and screen resolution. Compare mobile device brands and models across platforms.

Geographic & Demographic Analysis

Track performance by country, region, and city. Monitor language preferences and demographic insights for complete audience understanding.

What Claude can see in Google Analytics 4

84 metrics and 168 dimensions, including:

session source mediumsessionstotal usersbounce rate
HOW IT WORKS

How the Google Analytics 4 MCP server works

Connect Google Analytics 4 once and query it in plain language.

First step

Connect your first datasource

Link any of 32+ marketing and ecommerce platforms in a couple of clicks.

Second step

Connect Detrics to Claude

Add Detrics as an MCP connector in Claude. Your marketing data is ready to query in plain language.

DetricsClaudeMCP
And that's it

Start talking to your data

Ask Claude for any report in plain language. It builds the dashboard from your real numbers, no hallucinations.

Build a buyer-journey dashboard from my marketing data
Buyer journey LIVE
Sessions 12,302
Checkouts 145
Purchases 55
Close rate 37.9%
Done · generated by Detrics
Technical setup for developers

Add Detrics to any MCP-compatible client using your API key from app.detrics.io/mcp:

{
  "mcpServers": {
    "detrics": {
      "command": "npx",
      "args": ["-y", "detrics"],
      "env": {
        "DETRICS_API_KEY": "dk_••••••••"
      }
    }
  }
}

Available tools include list_connections, list_accounts, list_fields, and query_marketing_data. All Google Analytics 4 access is read-only.

MCP

Frequently Asked Questions

You connect Google Analytics 4 to Detrics once. The Detrics MCP server then exposes read-only query tools that Claude can call. Claude never sees your credentials and can never modify your Google Analytics 4 account.
Anything the Google Analytics 4 API exposes through Detrics, including audience & behavior, e-commerce & revenue, traffic & acquisition. That covers 84 metrics and 168 dimensions, over any date range your account allows.
Any MCP-compatible client: Claude Desktop, Claude.ai, Claude Code, Cursor, Windsurf, and more.
MCP access is available on every Detrics plan. On the free plan it uses your 35 monthly data refreshes (the same quota as Google Sheets), no credit card required. Paid plans unlock higher quotas.

Ask your first Google Analytics 4 question today

*No credit card required

  • Works with Claude, Cursor, Windsurf & more
  • Read-only access, OAuth 2.0 secured
  • Free plan with 35 queries/month