Skip to content
Weavz
Menu
Google Analytics

Google Analytics MCP integration

Google Analytics 4 reporting, realtime metrics, metadata, and property discovery

Sign in, add Google Analytics in Apps, then choose the account your AI can use.

6 tools
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Get started with Google Analytics

  1. Add Google Analytics to your Weavz workspace and connect the account you want to use.
  2. Review the available tools below and enable the actions your task needs. Check the account permissions before allowing changes.
  3. Connect a compatible AI client to your workspace, or use the actions API from your application.

Tools

Name

Run Report

run_report

Run a bounded Google Analytics 4 Data API report.

Run Realtime Report

run_realtime_report

Run a GA4 realtime report for activity from the last 30 minutes, or up to 60 minutes for GA360 properties.

Get Metadata

get_metadata

Get dimensions and metrics available for a GA4 property.

Check Compatibility

check_compatibility

Check whether requested dimensions and metrics can be used together in a GA4 report.

List Account Summaries

list_account_summaries

List accessible Google Analytics accounts and property summaries.

List Properties

list_properties

List GA4 properties under one Google Analytics account.

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('google-analytics', 'run_report', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'google-analytics',
  input: { /* ... */ },
})

Related Integrations

Explore integrations in other categories

Frequently Asked Questions

Is there a Google Analytics MCP server through Weavz?

Yes. Add the Google Analytics integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 6 Google Analytics actions.

What can an AI agent do with Google Analytics?

Available actions include Run Report, Run Realtime Report, Get Metadata, Check Compatibility, List Account Summaries, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.

How do I connect Google Analytics to Claude or ChatGPT?

Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add Google Analytics, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.

Can I use Google Analytics through an API or SDK?

Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.

What authentication does Google Analytics require?

The catalog lists OAuth2 for Google Analytics. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.

How do I review sensitive Google Analytics actions?

Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.

What limits or costs apply to Google Analytics?

Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.

Connect Google Analytics in minutes

Get 20,000 free action executions every month. No credit card required.