Google Analytics for AI agents

Google Analytics tracks website traffic and user behavior, helping marketers measure conversions and site performance. Analysts and operators pull this data into reports and dashboards instead of collecting it by hand. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

AnalyticsOAuth 2.0MCP + RESTanalytics.google.com
AUDIT LOG · GOOGLE ANALYTICSPOLICY: acme-support
09:41:07 · claude · u_8f2read
google_analytics.list_accounts
List Accounts (Deprecated)✓ allowed · 212ms
09:41:08 · claude · u_8f2read
google_analytics.get_account
Get Account✓ allowed · 164ms
09:41:09 · claude · u_8f2write
google_analytics.create_report_task
Create Report Task✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
google_analytics.archive_custom_dimension
Archive Custom Dimension✕ blocked · policy: deny
EVERY GOOGLE ANALYTICS CALL, ON THE RECORD
01 · USE CASES

What agents do in Google Analytics.

01

Run a traffic report

Run a report on sessions and conversions for a date range to summarize last week's campaign performance.

02

Check a property's settings

Look up a GA4 property's data retention and attribution settings before making a recommendation.

03

Create a custom audience export

Build an audience export from a defined segment for use in a remarketing campaign.

02 · ACTIONS

69 Google Analytics actions, graded by risk.

Every Google Analytics action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

51

Look things up. Allowed by default.

  • google_analytics.get_account
    Get Account
  • google_analytics.get_audience
    Get Audience
  • google_analytics.get_metadata
    Get Metadata
  • google_analytics.get_property
    Get Property
  • google_analytics.get_key_event
    Get Key Event
  • google_analytics.list_accounts
    List Accounts (Deprecated)
  • google_analytics.list_audiences
    List Audiences
  • google_analytics.get_report_task
    Get Report Task
  • google_analytics.list_key_events
    List Key Events
  • google_analytics.list_properties
    List Properties (Deprecated)
  • google_analytics.get_audience_list
    Get Audience List
  • google_analytics.list_data_streams
    List DataStreams
  • google_analytics.list_report_tasks
    List Report Tasks
  • google_analytics.query_report_task
    Query Report Task
  • google_analytics.list_adsense_links
    List AdSense Links
  • google_analytics.get_audience_export
    Get Audience Export
+ 35 MORE

write

17

Create and change things. Allow, or ask the user first.

  • google_analytics.send_events
    Send Events
  • google_analytics.update_property
    Update Property
  • google_analytics.create_report_task
    Create Report Task
  • google_analytics.create_audience_list
    Create Audience List
  • google_analytics.create_custom_metric
    Create Custom Metric
  • google_analytics.create_audience_export
    Create Audience Export
  • google_analytics.create_rollup_property
    Create Rollup Property
  • google_analytics.create_custom_dimension
    Create Custom Dimension
  • google_analytics.create_expanded_data_set
    Create Expanded Data Set
  • google_analytics.create_recurring_audience_list
    Create Recurring Audience List
  • google_analytics.run_report
    Run Report
  • google_analytics.run_pivot_report
    Run Pivot Report
  • google_analytics.batch_run_reports
    Batch Run Reports
  • google_analytics.run_funnel_report
    Run Funnel Report
  • google_analytics.run_realtime_report
    Run Realtime Report
  • google_analytics.batch_run_pivot_reports
    Batch Run Pivot Reports
+ 1 MORE

destructive

1

Delete, cancel or archive. Ask first, or deny outright.

  • google_analytics.archive_custom_dimension
    Archive Custom Dimension
03 · HOW IT WORKS

Google Analytics in three steps.

  1. 01Your users connect Google AnalyticsThey sign in to Google Analytics on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, writes like “create Report Task” can wait for the user, and “archive Custom Dimension” can be denied outright.
  3. 03Any agent can actYour agent calls Google Analytics through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('google_analytics', {
  read: 'allow',
  write: 'ask',        // create_report_task
  destructive: 'deny',  // archive_custom_dimension
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Google Analytics connects.

Users sign in to Google Analytics on Arc0 Connect and approve the scopes you request. Build with Arc0’s Google Analytics OAuth app, or bring your own so the Google Analytics consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same Google Analytics connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
OAuth 2.0
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Google Analytics from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Google Analytics and Arc0, answered.

Q01

Can I use Google Analytics with Claude, ChatGPT or Cursor?

Yes. Connect Google Analytics to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Google Analytics actions you allow.

Q02

How do users connect Google Analytics?

Users sign in to Google Analytics on Arc0 Connect and approve the scopes you request. Build with Arc0’s Google Analytics OAuth app, or bring your own so the Google Analytics consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which Google Analytics actions can my agent take?

69 in total: 51 read, 17 write and 1 destructive, such as “create Report Task”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Google Analytics?

Yes. Actions like “archive Custom Dimension” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Google Analytics too?

Yes. The same Google Analytics connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Google Analytics into your agent.

Your users connect Google Analytics once, under your brand. Your agent gets 69 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan