# Connect Google Analytics 4 to Claude

Connect Google Analytics 4 to Claude with Supermetrics and turn your Google Analytics 4 data into answers, reports, and next steps without leaving Claude.

Don’t take our word. Try it free today.

[Connect Google Analytics 4 to Claude for free](https://claude.ai/directory/connectors/supermetrics)

![Start with one GA4 property](https://cdn.sanity.io/images/8ly2m84z/production-2025/4a904d59955a328b30bb8abe94221d2ea84c7315-7200x3504.png)

## At a glance
- **What it does.** Query GA4 sessions, engagement, key events and revenue through Supermetrics. Name the property, period and breakdown in your question.
- **What you need.** You need a Google Account with at least Viewer access to the GA4 property, either directly or inherited from its account.
- **Don’t add up users.** Request user totals for the period you need. Adding daily user counts can count the same user more than once; rates also need their underlying totals, rather than a simple average.

## Before you start

### Claude

You need a Claude account where you can add connectors, listed under Customize, then Connectors. If you can't see them, ask whoever manages Claude for your organization. Anthropic's [custom connectors guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) explains remote connectors.

### Supermetrics

You don't need a subscription to start, because Supermetrics creates a trial at login. If you already pay for Supermetrics, your subscription needs an [AI chats](https://docs.supermetrics.com/docs/ai-chats) destination in the [Supermetrics Hub](https://hub.supermetrics.com). If it isn't there, upgrade or swap an existing destination to AI chats.

The connection is tied to the subscription that was active when you first connected ([Supermetrics for Claude docs](https://docs.supermetrics.com/docs/supermetrics-for-claude)). If you later change team or plan, disconnect and reconnect Supermetrics and choose the right team. See [pricing](/pricing) for current plans.

### GA4

Use a Google Account with at least Viewer access to the property. Access can be granted directly or inherited from the account. Google explains [roles and data restrictions](https://support.google.com/analytics/answer/9305587) in its [Analytics help](https://support.google.com/analytics/answer/9305587).

This Google Account can differ from your Supermetrics login. If you don't have access yourself, the property owner can authorize it through a shared authentication link from the Hub.

## How do you connect GA4 to Claude?

1. **Add Supermetrics to Claude.** Open the [Supermetrics for Claude page](/products/claude) and click Try in Claude. Or open Claude, go to Customize, then Connectors, and search for Supermetrics.

2. **Pick your team.** Sign in to Supermetrics and select the team to use. If you have no subscription, Supermetrics creates a trial here.

3. **Authorize GA4 in the Hub.** Open Google Analytics 4 in the Hub, or follow the login link Claude supplies. Sign in with Google, select the accounts requested and grant the required permissions. If you lack access, ask the property owner to use the Hub’s shared authentication link.

   ![Illustrative diagram of the four steps to connect GA4 to Claude: add Supermetrics in Claude, choose your Supermetrics team, authorize Google Analytics 4 in the Hub, and name the property and date range.](https://cdn.sanity.io/images/8ly2m84z/production-2025/1828bb5ce1dac7b443025d40682c164a6f59e77e-7200x2712.png)

4. **Find your property.** Ask: "Use Supermetrics. List my GA4 properties." Then name the property in your next question. Each GA4 property counts as a separate data source account in Supermetrics.

5. **Run one small query.** Try: "Use Supermetrics. For [property], show sessions and engagement rate by session default channel grouping for the last 14 complete days."

6. **Check the numbers, then expand.** Compare a total with the equivalent GA4 report using the same property, dates and filters. Then explore landing pages, events or campaign performance.

Building your own agent or n8n workflow instead? Use the [standalone Supermetrics MCP server](https://docs.supermetrics.com/docs/supermetrics-mcp-server), which needs a Supermetrics subscription with API access. For more setup help, see the [AI tools connection guide](https://docs.supermetrics.com/docs/how-to-connect-supermetrics-to-ai-tools).

## What can you ask Claude about GA4?
Replace the property and dates with your own. The field IDs below are Supermetrics examples, not a guarantee that every combination is valid. GA4 calls important actions key events; Supermetrics still documents some related fields as Conversions.

| **Goal** | **Prompt** | **What you get** | **Fields used** |
| --- | --- | --- | --- |
| Reporting | Use Supermetrics. Show sessions, engaged sessions and engagement rate by day for the last 28 days. | A daily table you can chart | sessions, engagedSessions, engagementRate, date |
| Reporting | Which 15 landing pages brought the most sessions last month, and how long did visitors stay? | A ranked list of pages with sessions and average session duration | landingPage, sessions, averageSessionDuration |
| Diagnosis | Use Supermetrics. For [property], compare key event counts this week with last week by session channel grouping and device. Show the events included. | A two-period table that shows where the gap sits | conversions, sessionDefaultChannelGrouping, deviceCategory |
| Comparison over time | Compare total revenue by session source and medium this quarter against last quarter. State the reporting currency. | A table with change per source | totalRevenue, sessionSourceMedium; two date ranges |
| Cross-source | Put GA4 sessions by campaign name beside Google Ads cost by campaign for the last 30 days. | Campaign-level results with explicit matched and unmatched names | sessions, sessionCampaignName, plus the ad source's cost field |
| Dashboard | Build a dashboard of GA4 sessions, engagement rate and total revenue by session channel grouping in Supermetrics Studio. | A dashboard in Studio. Viewing and sharing work with [AI chats](https://docs.supermetrics.com/docs/ai-chats), and editing needs a Studio destination subscription | sessions, engagementRate, totalRevenue, sessionDefaultChannelGrouping |

### More example prompts

| **Goal** | **Prompt** | **What you get** | **Fields used** |
| --- | --- | --- | --- |
| Diagnosis | Use Supermetrics. For [property], show event counts for view_item, add_to_cart, begin_checkout and purchase over the last 30 complete days. | Counts of recorded actions; not a sequential user funnel | eventName, eventCount; filter to the four event names |
| Comparison over time | Show sessions and new users by complete ISO week for the last eight weeks. | A weekly acquisition trend | sessions, newUsers, yearWeekIso |
| Cross-source | Compare GA4 sessions tagged to my Meta campaigns with Meta spend by complete week. Show how campaigns were matched. | Weekly sessions against spend | sessions, sessionSourceMedium, sessionCampaignName, yearWeekIso; Meta cost |
| Cross-source | Compare Google organic landing-page sessions with Search Console clicks for the same dates. Normalize URLs and show unmatched pages. | Two distinct measures beside a shared page key | landingPage, sessions, sessionSourceMedium; Search Console page and clicks |

More patterns: [AI chats use cases](https://docs.supermetrics.com/docs/use-cases-for-supermetrics-ai-chats-and-mcp-server) and Google's [Data API schema](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema).

## What can you do with GA4 data in Claude?

Start with a reporting question and a date range. Treat the answer as a lead to investigate, especially when you are asking why a result changed.

- **Compare ecommerce activity.** Request event counts for view_item, add_to_cart, begin_checkout and purchase. These show recorded actions, not a sequence followed by the same users. Use a defined funnel in GA4 when you need user drop-off between steps.

- **Investigate a key-event drop.** Compare the same events across two periods by channel or device. Claude can show where the change sits; the breakdown alone does not establish its cause.

- **Check campaign tagging.** List sessions by source, medium and campaign name to spot traffic in buckets you didn't plan.

- **Review landing pages.** See which entry pages hold attention by comparing sessions, engagement rate and average session duration.

- **Compare ad cost and outcomes.** Where linked integrations or cost imports populate GA4’s advertiser fields, compare those figures with the ad platform’s reporting. Confirm currencies and attribution definitions before interpreting a gap.

- **Review weekly trends.** Compare sessions and new users across complete weeks to see whether acquisition is growing.

- **Run client reporting as an agency.** Ask Claude to list the properties it can see, then name the client property in each question. The Hub's shared authentication link lets a client authorize GA4 even if you have no direct access. Keep one chat per client.

![Illustrative Google Analytics 4 chart: recorded events are not a sequence of the same users. Separate event counts for view_item, add_to_cart, begin_checkout and purchase.](https://cdn.sanity.io/images/8ly2m84z/production-2025/3f8fdc61725813d3be5174acbfc656611b30e27d-7200x2898.png)

## How do you combine GA4 with other data in Claude?

GA4 can share a chat with your other Supermetrics sources.

- **Compare paid spend with GA4 outcomes.** Ask for sessions by tagged campaign alongside Google Ads or Meta cost for the same period. Keep the source results separate until you have checked the campaign mapping.

- **Compare organic search with on-site behavior.** Filter GA4 to Google organic sessions, then compare landing-page activity with Search Console clicks. Normalize full URLs and relative paths to a common page key. Clicks and sessions measure different things, so they need not match.

- **Compare analytics tools.** If you use Piwik PRO too, compare daily traffic trends after checking each tool’s session definition, time zone and consent coverage.

Before combining sources, align date ranges, time zones and reporting grain. Use an explicit campaign or page mapping and show unmatched rows. Matching dates alone does not identify the same campaign, visitor or conversion.

## What GA4 data can Claude query?

Available fields depend on the property, its configuration and the report. Check the current [Supermetrics GA4 metrics and dimensions](https://docs.supermetrics.com/docs/google-analytics-4-fields) reference rather than relying on a fixed field count. Custom definitions and key-event fields can vary by property. GA4 also restricts which fields can be requested together.

| **Field group** | **What it covers** | **Example field IDs** |
| --- | --- | --- |
| Users and sessions | Traffic volume and engagement | sessions, activeUsers, newUsers, engagedSessions, engagementRate |
| Session acquisition | Where a session came from | sessionSourceMedium, sessionDefaultChannelGrouping, sessionCampaignName, sessionManualCampaignName |
| Pages and events | Content and behavior | landingPage, pagePath, pageTitle, eventName, isConversionEvent |
| Key events and revenue | Goals and money | conversions, totalRevenue, purchaseRevenue, transactions, currencyCode |
| Ecommerce items | Item quantities and revenue | itemName, itemRevenue, itemsViewed, itemsAddedToCart, itemsCheckedOut |
| Audience, device, geography | Who and where | deviceCategory, country, city, newVsReturning, audienceName |
| Linked ads and Search | Ad cost and organic search | advertiserAdCost, returnOnAdSpend, sessionGoogleAdsCampaignName, organicGoogleSearchClicks |
| Cohorts | Users grouped by their starting period | weeklyCohort, cohortNthWeek; use compatible cohort metrics |

### Field glossary

| **Field ID** | **Plain-English meaning** | **Type** | **Watch out** |
| --- | --- | --- | --- |
| sessions | The number of sessions that began on your site or app | Metric | Sessions and users are different measures |
| activeUsers | Distinct users GA4 identifies as active | Metric | Can't be summed across rows |
| engagementRate | The percentage of engaged sessions | Metric | A ratio, so it can't be summed or averaged across rows |
| conversions | Supermetrics’ documented count of conversion events | Metric | GA4 now uses the term key events; confirm the event names included |
| totalRevenue | Purchase, subscription and ad revenue, less refunded transaction revenue | Metric | A monetary field, so state the currency |
| sessionDefaultChannelGrouping | The session's default channel grouping | Dimension | Session scoped, unlike firstUserDefaultChannelGrouping |
| landingPage | Path of the first pageview in a session, without its query string | Dimension | landingPagePlusQueryString keeps the query string |
| newVsReturning | Splits users by whether they had earlier sessions | Dimension |  |
| isConversionEvent | Supermetrics’ documented flag for an event marked as a conversion | Dimension | Used with eventCount and eventName to query key events |
| currencyCode | ISO 4217 currency code for the transaction | Dimension | A transaction dimension; it does not select the report’s output currency |

## What is the GA4 MCP connector for Claude?
The Google Analytics 4 MCP connector for Claude is the Supermetrics connector that lets Claude read your Google Analytics 4 data through the Model Context Protocol (MCP).

MCP, the Model Context Protocol, is an open standard that lets an AI application call outside tools and data sources ([modelcontextprotocol.io](https://modelcontextprotocol.io)). Supermetrics provides an MCP connector for Claude.

When you ask a GA4 question, Claude chooses the metrics and dimensions it needs, Supermetrics fetches them from your property and Claude presents the result. The connector reads GA4 report data and can't edit your tags, events, audiences or property settings.

Use [AI chats](https://docs.supermetrics.com/docs/ai-chats) to ask questions in Claude. For custom agents, n8n workflows or other MCP clients, use the standalone [Supermetrics MCP server](https://docs.supermetrics.com/docs/supermetrics-mcp-server).

## Which way should you connect GA4 to Claude?

| **Approach** | **Setup effort** | **Data scope** | **Blending with other sources** | **Maintenance** | **Suits** |
| --- | --- | --- | --- | --- | --- |
| Supermetrics connector for Claude | Low: add the connector, sign in with Google once | GA4 plus the other sources in your Supermetrics account | Yes, in the same chat | Reconnect if access changes | Marketers and analysts who want answers in Claude |
| [Supermetrics MCP server](https://docs.supermetrics.com/docs/supermetrics-mcp-server) (custom client) | Medium: you configure your own MCP host | Available Supermetrics sources under your subscription | Yes, if your agent combines results | You maintain the client | Engineers building agents or automations |
| [Google Analytics MCP server](https://developers.google.com/analytics/devguides/MCP) | Technical: configure Python, Google Cloud APIs and credentials | Google Analytics reports and property information | If your MCP client combines other tools | You maintain the local setup and credentials | Technical users who want Google’s own Analytics tools |
| CSV export and upload | Low, but manual every time | The reports you export | Compare files after aligning their fields | Export again to update the snapshot | One-off questions |
| Direct API and custom code | High: you write and host the script | Whatever you code | Whatever you code | You own the code and the auth | Teams with a developer who need full control |

Choose the Supermetrics connector for Claude if you want GA4 answers in chat without code, or sessions next to ad spend from other platforms.

Choose the standalone [Supermetrics MCP server](https://docs.supermetrics.com/docs/supermetrics-mcp-server) for a custom agent or automation. Google also offers an official Analytics MCP server for technical users. For questions inside GA4 itself, eligible accounts can use Google’s [Ask Advisor](https://support.google.com/analytics/answer/16675569); that is a separate experience from Claude.

Choose a CSV export or the API if you need a one-off snapshot (CSV) or a pipeline you control (API).

## When is this not the right tool?

- You need raw event-level rows. Chat answers are aggregated report data. For event-level exports, [send GA4 data to BigQuery](/connect/ga4-to-bigquery) and query it with SQL.

- You need a dashboard that refreshes for a team. [Report on GA4 in Looker Studio](/connect/ga4-to-looker-studio) or use a Power BI report.

- You work in spreadsheets. [Analyze GA4 in Google Sheets](/connect/ga4-to-google-sheets) for a grid you can schedule.

- You need the last few minutes of traffic. Use GA4's own realtime report.

- You need to change tracking. Configure tags in your tag manager and events or key events in GA4.

## How do you check Claude’s GA4 numbers?

Ask Claude to show the property, date range, filters and fields it used. Compare one total before exploring a detailed breakdown. A difference can reflect scope, attribution, processing or [GA4’s reporting limits](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/ResponseMetaData)—not just a calculation error.

| **Check** | **What happens** | **What to do** |
| --- | --- | --- |
| Date range | Every GA4 query needs one | State the period, and confirm it matches what you meant to ask |
| Many properties | Each GA4 property is a separate Supermetrics data source account | Ask Claude to list them, then name one per question |
| Inaccessible or disabled properties | The connected Google Account may lack access, or the property may not be selected | Check the property ID, Google permissions and selected accounts in the connection |
| User totals look too high | Distinct users are not additive across overlapping rows. Rates also require the correct denominator | Request the period total or the grouping you need directly. Don't sum or average returned rows |
| Channel counts disagree | The report may use sessionDefaultChannelGrouping or firstUserDefaultChannelGrouping | Check which scope was used |
| Key events do not match GA4 | Event selection, attribution settings and report scope can differ | Align event names and filters. Session and first-user dimensions answer different attribution questions |
| Revenue differs | totalRevenue and purchaseRevenue differ, and currency matters | Check the revenue field, report currency, dates and refund handling |
| Reporting limits | Thresholds, sampling or high-cardinality “(other)” rows can affect reports | Check GA4’s data-quality information. Try a simpler breakdown; do not treat an absent row as zero |
| Custom fields | Fields such as "Key event count for ..." are custom fields that only exist on certain properties | Use conversions with eventName when a per-event field isn't offered for your property |

## Troubleshooting

| **Symptom** | **Likely cause** | **Fix** |
| --- | --- | --- |
| LICENSE_NOT_FOUND | No active subscription was found for the account or team used by the connection | Confirm the email and team that belong to the paid subscription. In Claude Connectors, disconnect Supermetrics, reconnect and choose that team |
| Claude uses the wrong team, or answers without Supermetrics | Another team was selected at first login, or several data tools are connected | Disconnect and reconnect Supermetrics in Claude Connectors, pick the right team and put "use Supermetrics" in the prompt |
| "No accounts found" | The Google login behind the connection can't see a GA4 property | Follow the Supermetrics docs article "How to fix No accounts found errors" and reauthorize GA4 with a Google Account that has access |
| GA4 isn't authorized | GA4 hasn't been connected in the Hub, or the connection needs renewing | Ask Claude for the GA4 login link, or reconnect in the Hub and rerun the query |
| GA4 connects but queries behave oddly | Not every access scope was selected when you clicked Allow | Reconnect and select all scopes |
| A property you expect isn't offered | The connected Google Account lacks property access or the property was not selected | Ask a property administrator to raise your access, or use the shared authentication link from the Hub |
| A "Key event count" field you saw elsewhere isn't available | It's a custom field that only exists on certain properties | Use conversions with eventName, or run the query on the property that owns the field |
| A field combination fails | The dimensions and metrics may be incompatible, or a request limit was reached | Reduce the query to a small compatible set. For quota errors, wait before retrying; check the [GA4 connector limitations](https://docs.supermetrics.com/docs/good-to-know-about-google-analytics-4) |
| A query that used to work stops | The GA4 authorization may need renewing | Follow the Supermetrics reauthentication article and reconnect GA4 in the Hub |
| Still stuck | Something else | Contact Supermetrics support |

## Is it safe? Security and data handling

- Authorize only the properties needed for the work. GA4 report results returned to Claude become part of the chat, so take care when sharing it.

- This GA4 connection reads reporting data. It cannot change your tags, events, audiences or property settings. Creating a report in Supermetrics Studio is separate from changing GA4.

- Use aggregate reporting and exclude personal data, identifiers and sensitive details from prompts and results. Supermetrics’ [AI Terms](/ai-terms) restrict submitting personal data, with a limited exception for information strictly necessary for a feature. Avoid URLs or custom fields that contain personal information.

- [AI chats](https://docs.supermetrics.com/docs/ai-chats) connections are shared by default with eligible teammates assigned to the subscription. Review who can use the connection and who can open the Claude chat before connecting client properties.

- Supermetrics’ [AI Terms](/ai-terms) restrict its technology providers from using your data for general model training. Your Claude account is governed separately by Anthropic’s terms and settings. Commercial Claude products do not use inputs and outputs for training by default; consumer settings differ.

- Supermetrics may temporarily store connector data. Check its [security policy](/security) and Trust Center for retention and handling details; a question does not guarantee a fresh upstream pull.

## Related connectors

- [Send GA4 data to BigQuery](/connect/ga4-to-bigquery) to keep a warehouse copy for SQL analysis
- [Report on GA4 in Looker Studio](/connect/ga4-to-looker-studio) for scheduled dashboards
- [Analyze GA4 in Google Sheets](/connect/ga4-to-google-sheets) for spreadsheet views of traffic and conversions
- [Connect Piwik PRO to Claude](/connect/piwik-pro-to-claude) to add a second web analytics source
- [Connect Search Console to Claude](/connect/google-search-console-to-claude) to compare organic search queries with on-site behavior
- [Supermetrics for Claude](/products/claude) to browse the supported data sources

## FAQ

### Is there an official GA4 MCP, and how is this different?

Yes. Google provides an [official, read-only Analytics MCP server](https://developers.google.com/analytics/devguides/MCP) with its own technical setup. Supermetrics offers a ready-made Claude connection and access to other connected marketing sources. Google’s [Ask Advisor](https://support.google.com/analytics/answer/16675569) is a separate assistant inside Analytics.

### Does it work in Claude Desktop, claude.ai and Claude Code?

Yes. Remote connectors are available across Claude on the web, Claude Desktop and Claude Code, subject to your plan and organization settings. The standalone [Supermetrics MCP server](https://docs.supermetrics.com/docs/supermetrics-mcp-server) is a separate option for custom clients and automations.

### Does the connector give real-time access to GA4 data?

It provides access to GA4 reporting through Supermetrics, not a guarantee of instant or uncached data. Google’s processing and any temporary connector storage affect freshness. Use GA4’s realtime report for recent activity.

### Does it cost extra?

You can start without a subscription, because Supermetrics creates a trial at login. If you already pay for Supermetrics, your subscription needs an [AI chats](https://docs.supermetrics.com/docs/ai-chats) destination in the Hub. See [pricing](/pricing) for current plans.

### Is my data used to train models?

Supermetrics’ [AI Terms](/ai-terms) limit general model training by its technology providers. Claude’s handling is separate: commercial products do not train on your inputs and outputs by default, while consumer settings and exceptions differ. Check the terms for your Claude account.

### How is it different from exporting GA4 to Sheets or BigQuery?

The connector queries GA4 report data for analysis in chat. [Sheets](/connect/ga4-to-google-sheets) suits a stored reporting grid; GA4’s [BigQuery](/connect/ga4-to-bigquery) export provides event-level data for SQL analysis. The standard aggregate reports discussed here do not replace that event export.

### Why does Claude give a different user total from GA4?

Daily or channel user counts can overlap, so adding them may count a user more than once. Request the whole-period total directly. Also align property, reporting identity, dates, filters and metric definitions, then check GA4’s data-quality information.

## Connect GA4 to Claude

Add the Supermetrics connector to Claude and ask your first GA4 question.

[Connect Google Analytics 4 to Claude for free](https://claude.ai/directory/connectors/supermetrics)
