Analytics

AI agent for Google Analytics: cross-channel analytics without spreadsheets

TL;DR

The agent reads Google Analytics reporting data — traffic, conversions, funnels, channel and landing-page breakdowns — on demand from a plain-language question, so you skip building the same Explore report every week. It can also mark converting events as Key Events and build audiences for remarketing, both gated behind approval since they change how Google Analytics measures and how Ads targets.

Availability
Available
Connection method
Provider sign-in (OAuth)

Can an AI agent work with Google Analytics?

Yes. Agent Planners connects to Google Analytics through the official API and gives the agent 35 read tools and 35 write tools. Available changes depend on account permissions and the connection’s approval policy. You can use the same tools in the app or from Claude, ChatGPT and Codex over MCP.

Connect Google Analytics and check permissions

  1. 1Open Integrations and click Connect on the Google Analytics card.
  2. 2Sign in with a Google account that has access to the properties you want.
  3. 3Select the property in the context picker before writing a goal.
The authorization asks for analytics.readonly for reads. Turning on Google Analytics writes re-authorizes with a wider set, and a re-connect REPLACES the stored token rather than adding to it. A first goal worth typing: Compare last month against the one before by channel, and tell me what actually changed.

What the agent does with Google Analytics

  • Runs ad-hoc reports — traffic, conversions, funnels, channel and landing-page breakdowns — from a plain-language question.
  • Cross-references Google Analytics conversions with Google Ads spend for a truer channel-level ROAS view.
  • Marks events as Key Events (Google Analytics' conversion designation) — a write, approval-gated.
  • Builds audiences for remarketing into Google Ads — a write, approval-gated.
  • Manages property settings: custom channel groups (create, edit, delete), web data streams, the Google Ads link, data retention, custom dimensions and metrics, and the property's name, time zone and currency — each a write, approval-gated.
  • Reads the property's own settings first — its reporting time zone (the day boundary of every report), currency and service level — so a "yesterday" is the property's yesterday.
  • Adds and edits reporting annotations, so a launch or a tracking change is marked on the date it happened.
  • Links several Google Ads accounts at once (up to 20, one result per account — Google has no batch call for links).

Writes go to the property you connected

One Google sign-in can usually reach many properties. A write names the property it changes, so the agent sends it only to the property you connected — or to another property that has its own connection in this workspace — and refuses any other before calling Google.

A change to the property's time zone or currency always waits for a person: Google never restates the days already collected, so the change splits your history at that date.

Example tasks for Google Analytics

Goal you'd typeWhat the agent does
"Give me a weekly funnel report — landing page → add-to-cart → purchase — by channel."Builds the funnel breakdown on demand instead of you rebuilding an Explore report by hand.
"Which channels actually drove revenue last month, not just sessions?"Pulls Google Analytics conversion/revenue data by channel and flags channels with high traffic but low conversion.
"Build a remarketing audience of cart-abandoners from the last 14 days and hand it to Google Ads."Creates the Google Analytics audience and proposes wiring it into a Google Ads remarketing campaign — both writes, gated.
"Mark 'newsletter_signup' as a Key Event — we want it counted as a conversion."Proposes the Key Event designation; applies once you approve.

Guardrails

  • Reporting is read-only and runs instantly — nothing about your Google Analytics property changes just by asking a question.
  • Key Event and audience changes are writes and pause for approval, since they change measurement and targeting.

Choosing a tool

Comparing options rather than reading about this one? We wrote an evaluation guide with the criteria, the red flags and where each category of tool fits: the best AI agent for Google Analytics.

Every Google Analytics tool, its arguments and what waits for a person: the Google Analytics guide. Pairing it with on-site behaviour: Microsoft Clarity and Google Analytics with an AI agent.

Frequently asked questions

Can the agent change my Google Analytics property configuration?
Yes, through the Google Analytics Admin API, and every change pauses for your approval unless you turn on auto-approve: key events, audiences, custom dimensions and metrics, custom channel groups, event create rules, enhanced measurement, attribution settings, web data streams, the Google Ads link, data retention, annotations and the property's name, time zone and currency. Deleting a channel group or a key event, unlinking Google Ads, changing attribution and shortening data retention always wait for you. Reporting itself is read-only.
Can it import data into Google Analytics (cost data, offline conversions)?
Partly, because Google offers only part of it through an API. Server-side events, such as an offline conversion, a CRM stage or a refund from the last 72 hours, go in through the Measurement Protocol. The agent checks them with Google's validation server first (nothing is recorded), and a send waits for your approval, because Google Analytics cannot delete an event it has received. Data Import files (campaign cost from other ad platforms, item, user and older event data) have no upload API. The agent builds the file in Google's format, checks it, and gives you the steps; you upload it in Google Analytics → Admin → Data import, or set up SFTP once.
Can it set up internal-traffic filters or referral exclusions?
No. Google's Admin API has no endpoint for data filters (internal or developer traffic), unwanted referrals, cross-domain measurement or IP exclusion, so the agent tells you where to set them in Google Analytics Admin instead of pretending.
Can it combine Google Analytics data with Google Ads spend?
Yes — that's one of the more common goals: joining Google Analytics conversions/revenue with Ads cost to see channel-level performance the platforms don't show you individually.
Do I need to build the report myself first?
No — describe what you want to know in plain language and the agent builds the underlying report.

Google Analytics tools the agent can use

The tool catalog lists 35 read tools and 35 write tools for Google Analytics — the same names MCP clients, the REST API and the in-app agent call. Full read/write support for the platform's API-supported operations.

These 40 are examples. See every tool for Google Analytics (70) or browse the complete tool catalog.

Read (20 of 35)

  • Readga4__query_overview

    Traffic/engagement overview

  • Readga4__query_top_pages

    Top pages report

  • Readga4__query_traffic_sources

    Traffic sources / channels

  • Readga4__query_conversions

    Conversions / key events report

  • Readga4__query_geo

    Geography report

  • Readga4__query_devices

    Device category report

  • Readga4__run_report

    Run a GA4 report (dimensions/metrics/dateRange)

  • Readga4__run_realtime_report

    Run a GA4 realtime report

  • Readga4__batch_run_reports

    Run several GA4 reports in one call

  • Readga4__run_funnel_report

    Step-by-step funnel completion + drop-off (GA4 Data API v1alpha — alpha surface, may change without a sunset notice)

  • Readga4__run_cohort_report

    Retention by acquisition cohort

  • Readga4__run_pivot_report

    Cross-tab dimensions in one call

  • Readga4__get_metadata

    Available dimensions/metrics for the property (field discovery)

  • Readga4__check_compatibility

    Validate a dimension/metric COMBINATION before spending a run_report.

  • Readga4__list_annotations

    GA4 reporting-data ANNOTATIONS on this property (newest first; Admin API v1alpha — alpha surface): title, description, date (or range), color, and…

  • Readga4__get_property

    The property's settings: REPORTING TIME ZONE (the day boundary of every GA4 report), currency, industry, service level (standard / 360), parent account.

  • Readga4__detect_anomalies

    Detect metric anomalies (spikes/drops vs weekday-aware baseline) over the recent days — for monitoring/异常检测.

  • Readga4__list_custom_dimensions

    List the property's custom dimensions

  • Readga4__list_audiences

    List GA4 audiences

  • Readga4__list_key_events

    List key events (conversions)

Write (20 of 35)

  • Writega4__create_annotation

    Pin an explanation to a DATE in GA4's own reports ("pricing change", "site migration", "Black Friday").

  • WritePerson approvesga4__delete_annotation

    Delete a reporting-data annotation by its resource name (from list_annotations).

  • Writega4__update_annotation

    Edit a reporting-data annotation (Admin v1alpha): title, description, color, or move it to another date / range.

  • Writega4__create_audience

    Create a GA4 audience

  • Writega4__create_key_event

    Mark an event as a key event

  • Writega4__create_custom_dimension

    Create a custom dimension

  • Writega4__create_custom_metric

    Create a custom metric — a numeric event param becomes reportable.

  • Writega4__update_custom_metric

    Rename/re-describe a custom metric (parameterName + scope + measurementUnit immutable)

  • WritePerson approvesga4__archive_custom_metric

    Archive a custom metric, freeing the property slot — no delete exists

  • Writega4__update_property

    Update GA4 PROPERTY settings: displayName (rename), timeZone, currencyCode, industryCategory.

  • Writega4__update_audience

    Rename/re-describe an audience (criteria are immutable in GA4)

  • WritePerson approvesga4__archive_audience

    Archive an audience — irreversible; GA4 has no audience delete

  • Writega4__update_key_event

    Change a key event's counting method (eventName is immutable)

  • WritePerson approvesga4__delete_key_event

    Delete a key event — stops the conversion feed Smart Bidding uses

  • Writega4__update_custom_dimension

    Rename/re-describe a custom dimension (parameterName + scope immutable)

  • WritePerson approvesga4__archive_custom_dimension

    Archive a custom dimension, freeing the property slot — irreversible

  • Writega4__create_google_ads_links

    Link SEVERAL Google Ads accounts to the property at once (≤ 20; GA4 has no batch call, so one link per account): a result per account — linked /…

  • Writega4__create_google_ads_link

    Link a Google Ads account (10-digit customer id) to the property — conversion import and audience sharing.

  • Writega4__update_google_ads_link

    Turn ads personalization (audience sharing for remarketing) on or off for a linked Google Ads account

  • WritePerson approvesga4__delete_google_ads_link

    Unlink a Google Ads account — conversion import and audience sharing stop; a person approves it on every lane

Authorized raw requests

ga4__raw_request sends a request in Google Analytics's own API format, with the connection's credentials injected and the path bound to the connected account. It needs the tools:raw scope. Reads run at once; a change waits for a person unless the credential is an API key whose raw writes an admin pre-authorized, or the workspace's own OAuth app — except a permanent delete, which always waits for a person, and a call the platform's fences refuse, which is never sent.

Limitations

  • Permissions: the connected login's role and the permissions it granted decide what each tool can read or change. A tool the login cannot use answers with what is missing; it never works around it.
  • Approvals: in the app, changes wait for approval unless the task runs with auto-approve. Over MCP and REST they follow the credential's setting (an API key applies ordinary changes at once unless it is set to require approval; a third-party OAuth connection waits). 13 writes are marked “Person approves”: they wait for a person on every lane — only the workspace's own OAuth app and an API key an admin set to apply changes you can't take back skip that wait. Forbidden Rules can block any of them.
  • Data Import has no upload API: cost and item data are uploaded in Google Analytics Admin (the agent prepares the file).
  • Internal-traffic data filters, unwanted referrals, cross-domain and IP exclusion are not in the Admin API.
  • A new Google Analytics account needs a person to accept Google's terms; properties can be created under a connected account.
  • Events sent through the Measurement Protocol cannot be deleted, so a real send waits for a person.
  • User-access changes are made only through the typed tools, approved by an admin — never through raw requests.
  • Operations the platform's API does not offer, and operations not in the catalog, are not available through these tools.

At most 40 tools are listed on this page. Read more about how changes are approved.

Check access to Google Analytics

Use the setup guide to check account eligibility, permissions and available operations. 4,400 one-time free credits and plan details.

Related platforms

How the agent works