GA4 + ShopMCP

Understand traffic, attribution, funnels, and conversions so you know what is really driving revenue.

Start your 14-day free trial — no credit card required.

Ask GA4 questions in plain English from Claude or ChatGPT. Compare traffic and channel performance alongside your commerce data.

Connect GA4 to Claude or ChatGPT. Compare traffic, acquisition channels and ecommerce performance alongside your connected stores and ad accounts.

Try asking: “Compare revenue and conversion rate by acquisition channel for the last 28 days versus the previous 28 days.”

What's now possible with GA4 in Claude or ChatGPT

You stop the "let me build that Exploration" round-trip. You start asking the questions.

  • "Top organic landing pages by revenue last 7 days vs prior 7." — the SEO leaderboard week-over-week, with deltas, in 20 seconds.
  • "Pivot revenue by channel × device for last month." — the pivot that GA4's UI hid inside Explorations, on tap.
  • "What's happening on the site right now?" — realtime sessions, by country and page, the moment a campaign goes out.
  • "Compare sessions this Monday vs last Monday for the US." — apples-to-apples comparison without picking a custom date range twice.
  • "Which conversion events are configured on this property?" — the audit your analyst keeps meaning to do.
  • "Revenue by acquisition source for new vs returning users, last 90 days." — the cohort split that informs every ad spend conversation.
  • "Top 20 products by revenue across all 5 client properties." — portfolio rollup, automatic property routing.
  • "Sessions by sessionDefaultChannelGroup for last 28 days — flag any channel that dropped more than 15% vs the prior 28." — the anomaly check.
  • "For the UK property only, top 10 pages by entrances last week." — same prompt across every property, scoped by name.
  • "Funnel: landing page → product page → add to cart → purchase, last 30 days." — the conversion drop-off the dashboard team builds every quarter.

Reads only. GA4 schema edits — custom dimensions, audiences, data streams — stay in GA4's UI where they belong.

Paste-ready prompts

"Show me top organic landing pages by revenue last 7 days vs prior 7."

Picks `sessionDefaultChannelGroup` filtered to Organic Search, with `landingPagePlusQueryString` and `purchaseRevenue`, two date ranges. The Friday SEO report, written by your assistant before you get to it.

"Pivot revenue by channel × device for last month."

Runs a pivot report — the report type the GA4 UI hides inside Explorations. The kind of cut a Head of Ecom asks for daily and the analytics team builds weekly.

"What's happening on the site right now?"

Realtime sessions by country and page. Useful when a sale launches, a paid push goes out, or you're trying to debug a tracking issue live.

"Compare sessions this Monday vs last Monday for the US."

Two single-day date ranges, country filter, side by side. The "is today normal or weird?" question, answered in one sentence.

"Which conversion events are configured on this property?"

The audit. Every event marked as a key event, surfaced. The check before you sign off on attribution work.

The cross-integration plays GA4 alone can't ship

A GA4-only chat can answer GA4 questions. The interesting questions cross stacks — GA4 ↔ Shopify orders, GA4 ↔ Klaviyo flows, GA4 ↔ Google Ads. ShopMCP runs the join.

Channel revenue vs Shopify order revenue

GA4 channel revenue, side-by-side with the Shopify orders table for the same window. Catches tracking drift the week it happens — when GA4 says paid drove $40k and Shopify says paid drove $28k, the analytics team has a job for tomorrow.

Welcome flow revenue × acquisition source

Klaviyo flow revenue, split by the GA4 acquisition source of the subscriber. Which channels deliver email subscribers that actually buy — the answer to "should we spend more on Meta or Google?"

Ads attribution discrepancy

GA4 last-click vs data-driven conversion counts per Google Ads campaign. Where the two models disagree the most — the budget conversation with the most signal.

Landing-page revenue × GSC clicks

GA4 revenue per landing page, joined to GSC clicks/impressions for that URL. The pages getting traffic but not converting (UX problem) vs the ones converting but not ranking (SEO problem). Two different work queues.

Built for the four people who actually use GA4

SEO and analytics agencies. One workspace, every client GA4 property, one chat. Build the weekly SEO and channel report once, run it across the book of clients in twenty minutes instead of two days.

In-house Heads of Ecom and Marketing. The dashboard you keep meaning to commission — channel revenue, top landing pages, conversion-event audit — is now an ad-hoc question. Daily check, no analyst dependency.

Performance marketers debugging attribution. "Why does Google Ads say I drove $40k and GA4 says $28k?" — answer that question without scheduling a meeting. The discrepancy is right there in the data; ShopMCP just makes it easy to look.

Fractional CMOs inheriting accounts. Connect a new property, run the seven-prompt audit, walk into the kickoff knowing what the data actually says — not what the previous agency told the client.

Setup in 60 seconds

  1. Click Connect Google Analytics in your workspace settings.
  2. Approve the read-only Google scope. Pick the GA4 property — or every property you manage; multi-select is supported.
  3. Open Claude, ChatGPT, or Cursor and ask your first question.

That's the whole setup. No Python server to self-host, no per-property config, no Looker Studio in between.

Safety, in plain English

  • Read-only. GA4 schema edits — custom dimensions, audiences, data streams — stay in GA4 where they belong. Claude can answer; it can't change.
  • Sampling honesty. When the GA4 Data API returns a sampled response, you see it. Most MCP servers swallow the sampling flag silently — ShopMCP surfaces it so you don't quote an estimate as a number.
  • OAuth-scoped. Claude can only see the properties the OAuth user can see. Revoke from Google in one click.
  • Every call logged. Per-tool audit trail — useful for client work where you need to show what was queried.

When to use ShopMCP, when to stay in GA4

The GA4 UI is right for editing schema, building audiences, wiring data streams, and the high-touch configuration work. ShopMCP is right for the ad-hoc analyst questions:

  • "Revenue by channel for last week vs the week before — flag anything off."
  • "Top 20 organic landing pages across every property we manage."
  • "Pivot revenue by channel × device for last month."
  • "What's happening on the site right now?"

Google ships an open-source self-hosted GA4 MCP server, useful for developers comfortable hosting Python. ShopMCP is the managed, multi-property, multi-integration alternative — built so you ask questions instead of running infrastructure.

What's under the hood

ShopMCP's GA4 connector ships 20 read-only tools across the GA4 Data API and Admin API — `run_report`, `run_realtime_report`, `run_pivot_report`, `batch_run_reports`, metadata discovery, account summaries, custom dimensions and metrics, key events, audiences, Google Ads links, schema browsing, plus composite traffic and source overviews. Read-only by design; schema edits stay in GA4.

Full endpoint-by-endpoint reference: the GA4 integration spec.

Works with

Claude (Desktop, web, Claude Code), ChatGPT (with MCP support), Cursor, and any MCP-compatible assistant. One OAuth, every property you manage routed automatically.

Pricing

GA4 MCP is included in every ShopMCP workspace. Flat per-workspace pricing — not per-property, not per-query. Connect every property you manage. See pricing.

Frequently asked questions

What can I actually ask GA4 through Claude or ChatGPT?

Anything you'd open GA4 Reports or Explorations for. Channel and source attribution, landing-page performance, conversion event audits, realtime traffic, device and country splits, custom-dimension reports, pivot reports, batch reports, traffic overviews. The agent picks the right dimensions and metrics for the question — you don't have to remember whether the right field is `sessionDefaultChannelGroup` or `firstUserDefaultChannelGroup`.

Does it handle the GA4 "channel group" trap?

Yes. Pairing the event-scoped `defaultChannelGroup` with any ecommerce metric returns an API error — most operators hit it within their first hour. ShopMCP's tool descriptions route the agent to `sessionDefaultChannelGroup` for revenue and session questions before it builds the request. You never see the rejection.

What about sampling?

GA4 samples high-cardinality queries (long date ranges × high-cardinality dimensions). Most MCP servers hide the sampling flag. ShopMCP surfaces it on every response — when a metric is sampled, the agent tells you so you don't quote an estimate as exact. To avoid sampling: narrow the date range or drop a dimension.

Does it work across multiple GA4 properties?

Yes — that's the agency win. Connect every property the OAuth user can see; the `store` parameter auto-injects on every tool call so "what's revenue this week for the UK property" binds to the right property without manual ID-pasting. Same multi-tenant pattern as GSC and Google Ads.

Can Claude write to GA4 — create custom dimensions or audiences?

No. Read-only by design. GA4 schema edits belong in GA4's UI, not in a chat with an LLM. If you need writes, we'd ship them behind a per-workspace switch — but the demand hasn't been there.

How is this different from Google's open-source GA4 MCP?

Google's is a single-purpose self-hosted Python server — narrowly scoped to GA4. ShopMCP is the managed alternative, with multi-property routing, sampling-aware responses, the channel-group gotcha pre-handled, and GA4 bundled with Shopify, Klaviyo, Google Ads, GSC, Stripe, and GMC so one chat can join GA4 traffic to Shopify orders to Klaviyo flow performance.

Related reading

Connect GA4 in 60 seconds — start your free trial

Every property you manage, one chat, every analytics question answered in plain English. Start your connection.

Your coffee's still warm. Your Monday review is done.

Connect one platform in 5 minutes. Run your first playbook before the kettle boils.

2026 Copyright © ShopMCP. All rights reserved. A Perceptiv Digital initiative.