How to connect Google Analytics to Claude

Connect Claude Web, Desktop and Cowork to Google Analytics MCP. Show all google analytics accounts i manage, get detailed info for a specific account, and more using natural language, with authentication handled for you.

Google Analytics logoGoogle Analytics
Oauth2

Google Analytics tracks and reports website traffic, user behavior, and conversions. It helps marketers optimize performance and understand customer journeys.

82 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Google Analytics account to Claude via Composio Connect, enabling it to show all Google Analytics accounts I manage, get detailed info for a specific account, list audiences for your GA4 property, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

You can also connect Claude to multiple Google Analytics accounts with Composio.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Google Analytics with

Connecting Google Analytics to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Google Analytics account

Back in Claude, ask it to connect to Google Analytics or give it any Google Analytics-related task.

For example, ask Claude to:

  • "Show all Google Analytics accounts I manage"
  • "Get detailed info for a specific account"
  • "List audiences for your GA4 property"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Google Analytics account is ready to use.

What is the Google Analytics Claude Connector, and what's possible with it?

The Google Analytics MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Google Analytics account. It provides structured and secure access to your analytics data, enabling your agent to analyze traffic, retrieve account info, list audiences, and build custom datasets on your behalf.

  • View and manage analytics accounts: Let your agent retrieve detailed information about specific Google Analytics accounts or list all accounts you have access to.
  • Audience insights and segmentation: Easily have your agent list all audiences associated with a GA4 property, helping you understand and segment your visitors.
  • Create custom expanded datasets: Direct your agent to combine key dimensions and metrics into tailored datasets for deeper analysis and reporting.
  • Efficient property and resource discovery: Have your agent confirm the existence of properties and fetch their details, streamlining your analytics management workflow.

Troubleshooting

1. Why does Claude not use the Composio connector for Google Analytics?

The connector can show as connected, but Claude must use it in each Google Analytics conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Google Analytics again.

2. Why does Claude show an MCP server error before Google Analytics connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Google Analytics.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Google Analytics.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Google Analytics authorization link not work?

The Composio connector is one server. Your Google Analytics account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Google Analytics connection.
  • Composio creates a fresh Google Analytics authorization link.
  • Open that link in your browser and finish the Google Analytics sign-in.

4. Why do Google Analytics actions fail after they worked before?

The Google Analytics connection can expire or lose permission.

  • Ask Claude to inspect the Google Analytics connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Google Analytics account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Google Analytics.
  • If the action still fails with a permission error, check that the connected account has that permission in Google Analytics itself.

5. How do I switch to a different Google Analytics account?

Claude can manage the Google Analytics connection for you.

  • Ask Claude to disconnect or delete the current Google Analytics account.
  • Ask Claude to connect Google Analytics again.
  • Open the new Composio authorization link for Google Analytics.
  • Sign in with the other Google Analytics account in the browser.
  • After the account connects, ask Claude to retry the Google Analytics task.

6. Why is my Google Analytics connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Google Analytics connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Google Analytics tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Google Analytics.
TOOLS

Supported Tools

Every Google Analytics action and event your agent gets out of the box.

Archive Custom Dimension

Tool to archive a CustomDimension on a property.

Batch Run Pivot Reports

Tool to return multiple pivot reports in a batch for a GA4 property.

Batch Run Reports

Runs multiple analytics data reports for one GA4 property in a single request.

Check Compatibility

Tool to list dimensions and metrics compatible with a GA4 report request.

Create Audience

Create an Analytics audience from explicit membership filter clauses.

Create Audience Export

Tool to create an audience export for Google Analytics.

Create Audience List

Tool to create an audience list for later retrieval by initiating a long-running asynchronous request.

Create Channel Group

Create a custom GA4 channel group with ordered traffic grouping rules.

Create Custom Dimension

Tool to create a CustomDimension for a Google Analytics property.

Create Custom Metric

Tool to create a custom metric in Google Analytics.

Create Data Stream

Create a web, Android, or iOS data stream under a GA4 property.

Create Event Create Rule

Create a rule that emits a destination event when source-event conditions match.

Create Expanded Data Set

Create an expanded data set for a Google Analytics 360 property using specified dimensions and metrics.

Create Key Event

Create a key event definition for a Google Analytics property.

Create Property

Create an ordinary GA4 property under an Analytics account.

Create Recurring Audience List

Tool to create a recurring audience list that automatically generates new audience lists daily based on the latest data.

Create Report Task

Tool to create a report task as a long-running asynchronous request for customized Google Analytics event data reports.

Create Rollup Property

Tool to create a roll-up property.

Delete Key Event

Permanently delete a deletable key event from a Google Analytics property.

Get Account

Tool to retrieve a single Account by its resource name.

Get Attribution Settings

Tool to retrieve attribution configuration for a Google Analytics property.

Get Audience

Tool to retrieve a single Audience configuration from a Google Analytics property.

Get Audience Export

Tool to get configuration metadata about a specific audience export.

Get Audience List

Tool to get configuration metadata about a specific audience list.

Get Custom Dimension

Tool to retrieve a single CustomDimension by its resource name.

Get Data Redaction Settings

Retrieve client-side data redaction settings for a GA4 web data stream.

Get Data Retention Settings

Tool to retrieve data retention configuration for a Google Analytics property.

Get Data Sharing Settings

Tool to retrieve data sharing configuration for a Google Analytics account.

Get Data Stream

Retrieve one Google Analytics data stream by its resource name.

Get Global Site Tag

Retrieve the immutable installation snippet for a GA4 web data stream.

Get Google Signals Settings

Tool to retrieve Google Signals configuration settings for a GA4 property.

Get Key Event

Retrieve a Key Event by its resource name.

Get Metadata

Tool to get metadata for dimensions, metrics, and comparisons for a GA4 property.

Get Property

Tool to retrieve a single GA4 Property by its resource name.

Get Property Quotas Snapshot

Tool to retrieve all property quotas organized by category (corePropertyQuota, funnelPropertyQuota, realtimePropertyQuota) for a given GA4 property.

Get Recurring Audience List

Tool to get configuration metadata about a specific recurring audience list.

Get Report Task

Tool to get report metadata about a specific report task.

List Access Bindings

List principals and roles granted on an Analytics account or property.

List Account Summaries

Tool to retrieve summaries of all Google Analytics accounts accessible by the caller.

List Accounts (v1beta)

List Google Analytics accounts accessible to the caller using the v1beta API.

List AdSense Links

Lists a page of AdSense links for a Google Analytics property.

List Audience Exports

Tool to list all audience exports for a property.

List Audience Lists

Tool to list all audience lists for a specified property to help find and reuse existing lists.

List Audiences

List audience configurations for a Google Analytics property; audiences created before 2020 may not be supported.

List BigQuery Links

Tool to list BigQuery Links on a property.

List Calculated Metrics

List Calculated Metrics

List Channel Groups

Tool to list ChannelGroups on a property.

List Conversion Events

Lists deprecated conversion event resources configured for a Google Analytics property.

List Custom Dimensions

List Custom Dimensions

List Custom Metrics

Tool to list CustomMetrics on a property.

List DataStreams

Tool to list DataStreams on a property.

List Display & Video 360 Advertiser Links

Tool to list Display & Video 360 advertiser links on a property.

List DisplayVideo360 Advertiser Link Proposals

Tool to list DisplayVideo360AdvertiserLinkProposals on a property.

List Event Create Rules

Tool to list EventCreateRules configured on a web data stream.

List Event Edit Rules

List event edit rules configured on a GA4 web data stream.

List Expanded Data Sets

Tool to list ExpandedDataSets on a property.

List Firebase Links

Tool to list FirebaseLinks on a property.

List Google Ads Links

Tool to list GoogleAdsLinks on a property.

List Key Events

List key event definitions for a Google Analytics property.

List Measurement Protocol Secrets

Tool to list MeasurementProtocolSecrets under a data stream.

List Property

Tool to list GA4 properties based on filter criteria.

List Recurring Audience Lists

List a page of recurring audience lists for a GA4 property, with a continuation token when more results are available.

List Reporting Data Annotations

List a page of Reporting Data Annotations for a specific GA4 property, optionally filtering the results.

List Report Tasks

List a page of report tasks for a Google Analytics property, including task definitions and execution status.

List Search Ads 360 Links

Tool to list all SearchAds360Links on a property.

List SKAdNetwork Conversion Value Schemas

Tool to list SKAdNetworkConversionValueSchema configurations for an iOS data stream.

List Subproperty Event Filters

List a page of subproperty event filters on a property, including filters that route events to subproperties.

List Subproperty Sync Configs

Tool to list SubpropertySyncConfig resources for managing subproperty synchronization configurations.

Provision Account Ticket

Tool to request a ticket for creating a Google Analytics account.

Query Audience Export

Tool to query a completed audience export.

Query Audience List

Tool to query an audience list.

Query Report Task

Tool to retrieve a report task's content.

Run Funnel Report

Tool to run a GA4 funnel report.

Run Pivot Report

Tool to run a customized pivot report of Google Analytics event data.

Run Realtime Report

Tool to run a customized realtime report of Google Analytics event data.

Run Report

Run a customized GA4 event-data report for a property using dimensions, metrics, filters and date ranges or a cohort specification.

Send Events

Send GA4 web-stream events using the Measurement Protocol and an API secret.

Delete Property

Move a Google Analytics property to the Trash Can and return its deletion state.

Update Data Retention Settings

Update selected data retention settings for a Google Analytics property.

Update Data Stream

Update a stream's display name, web default URI, or both.

Update Property

Tool to update an existing GA4 Property.

Validate Events

Validate Measurement Protocol events for a web stream before sending them to production, checking event structure and parameters.

FAQ

Frequently asked questions

Start with Google Analytics.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Analytics tool your agent needs.Free to start.

Start building