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.
What agents do in Google Analytics.
Run a traffic report
Run a report on sessions and conversions for a date range to summarize last week's campaign performance.
Check a property's settings
Look up a GA4 property's data retention and attribution settings before making a recommendation.
Create a custom audience export
Build an audience export from a defined segment for use in a remarketing campaign.
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
51Look things up. Allowed by default.
- google_analytics.get_accountGet Account
- google_analytics.get_audienceGet Audience
- google_analytics.get_metadataGet Metadata
- google_analytics.get_propertyGet Property
- google_analytics.get_key_eventGet Key Event
- google_analytics.list_accountsList Accounts (Deprecated)
- google_analytics.list_audiencesList Audiences
- google_analytics.get_report_taskGet Report Task
- google_analytics.list_key_eventsList Key Events
- google_analytics.list_propertiesList Properties (Deprecated)
- google_analytics.get_audience_listGet Audience List
- google_analytics.list_data_streamsList DataStreams
- google_analytics.list_report_tasksList Report Tasks
- google_analytics.query_report_taskQuery Report Task
- google_analytics.list_adsense_linksList AdSense Links
- google_analytics.get_audience_exportGet Audience Export
write
17Create and change things. Allow, or ask the user first.
- google_analytics.send_eventsSend Events
- google_analytics.update_propertyUpdate Property
- google_analytics.create_report_taskCreate Report Task
- google_analytics.create_audience_listCreate Audience List
- google_analytics.create_custom_metricCreate Custom Metric
- google_analytics.create_audience_exportCreate Audience Export
- google_analytics.create_rollup_propertyCreate Rollup Property
- google_analytics.create_custom_dimensionCreate Custom Dimension
- google_analytics.create_expanded_data_setCreate Expanded Data Set
- google_analytics.create_recurring_audience_listCreate Recurring Audience List
- google_analytics.run_reportRun Report
- google_analytics.run_pivot_reportRun Pivot Report
- google_analytics.batch_run_reportsBatch Run Reports
- google_analytics.run_funnel_reportRun Funnel Report
- google_analytics.run_realtime_reportRun Realtime Report
- google_analytics.batch_run_pivot_reportsBatch Run Pivot Reports
destructive
1Delete, cancel or archive. Ask first, or deny outright.
- google_analytics.archive_custom_dimensionArchive Custom Dimension
Google Analytics in three steps.
- 01Your users connect Google AnalyticsThey sign in to Google Analytics on Arc0 Connect, under your brand, and approve the access you ask for.
- 02You set the rulesReads run, writes like “create Report Task” can wait for the user, and “archive Custom Dimension” can be denied outright.
- 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.
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
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
Use Google Analytics from any agent.
Google Analytics and Arc0, answered.
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.
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.
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.
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.
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.
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