Google Analytics

by Google

Connect Google Analytics to an AI agent: run GA4 reports, read real-time traffic, and see which visits come from AI assistants, via the Data API v1.

AnalyticsFreeOAuth 2.0analyticsreportingga4web-analyticstrafficconversionsaudienceai-agentai-analyticsai-referrals

How agents use Google Analytics

  • Agent runs a weekly GA4 report and generates a plain-language traffic summary with highlights and anomalies
  • Agent compares traffic and conversion data across two date ranges to detect week-over-week regressions
  • Agent queries real-time active users and triggers a Slack alert when traffic drops below a defined threshold
  • Agent runs a funnel report to identify the step with the highest drop-off and surfaces it in a stakeholder report
  • Agent pulls channel-level session and revenue data from GA4 to populate a performance dashboard in Google Sheets
  • Agent retrieves available metrics metadata before building a dynamic report request based on user-defined goals
  • Agent filters sessions by AI assistant referrers such as chatgpt.com and perplexity.ai and reports which landing pages those visitors reach
  • Agent turns a team member's plain-language question into a GA4 report request and answers with the numbers, not a guess
  • Agent checks dimension and metric compatibility before running a report built from a natural-language request, so the request does not fail

Agent actions

Run ReportRun a custom GA4 report with dimensions, metrics, date ranges, and optional filters

Inputs: dateRanges, dimensions, metrics, dimensionFilter, metricFilter, orderBys, limit, offset, keepEmptyRows

Returns: rows, rowCount, dimensionHeaders, metricHeaders, metadata

Run Realtime ReportRetrieve real-time data for the GA4 property (users active in the last 30 minutes)

Inputs: dimensions, metrics, dimensionFilter, limit

Returns: rows, rowCount, activeUsers

Run Pivot ReportRun a pivot table report for cross-tabulation of GA4 data

Inputs: dateRanges, dimensions, metrics, pivots

Returns: rows, rowCount, pivotHeaders, metricHeaders

Batch Run ReportsRun up to 5 GA4 reports in a single API call to reduce quota usage

Inputs: requests

Returns: reports, count

Get Property MetadataRetrieve all available dimensions and metrics for a GA4 property, including custom definitions

Returns: dimensions, metrics, dimensionCount, metricCount

Run Funnel ReportAnalyze step-by-step funnel progression to understand where users drop off

Inputs: dateRanges, funnel, breakdownDimension, funnelVisualizationType

Returns: funnelTable, funnelVisualization

Check Dimension & Metric CompatibilityVerify whether a set of dimensions and metrics can be used together in a single report

Inputs: dimensions, metrics

Returns: dimensionCompatibilities, metricCompatibilities, compatible

Example workflows

  1. 1

    Weekly traffic summary report

    Run a report for the last 7 days with sessions, users, and bounce rate broken down by channel and country

  2. 2

    Real-time dashboard feed

    Poll active users by device and page every minute to power a live marketing dashboard

  3. 3

    Conversion funnel analysis

    Run a funnel report from session_start → view_item → add_to_cart → purchase to identify the highest drop-off step

  4. 4

    AI assistant referral report

    Agent groups the last 28 days of sessions by session source and landing page, filtered to AI assistant referrers such as chatgpt.com and perplexity.ai, to show how many visits arrive from AI answers and where they land

  5. 5

    Plain-language analytics questions

    Agent answers a question like "which channel brought the most conversions last month?" by checking which dimensions and metrics fit, then running the matching GA4 report

About Google Analytics

Vendor
Google
Pricing Always review details with the vendor
Free — The Google Analytics Data API is free to use. GA4 itself is free; Google Analytics 360 (enterprise) is paid but uses the same API.
Authentication
OAuth 2.0
Rate limit Always review details with the vendor
120 requests / minute
Compatible nodes
AgentResourceInput

Put Google Analytics behind your AI agent

Add Google Analytics alongside your other tools in the planner, without code, and map out how your AI agent works with it.

Open the planner →

Questions about Google Analytics

Agent runs a weekly GA4 report and generates a plain-language traffic summary with highlights and anomalies Agent compares traffic and conversion data across two date ranges to detect week-over-week regressions Agent queries real-time active users and triggers a Slack alert when traffic drops below a defined threshold Agent runs a funnel report to identify the step with the highest drop-off and surfaces it in a stakeholder report Agent pulls channel-level session and revenue data from GA4 to populate a performance dashboard in Google Sheets Agent retrieves available metrics metadata before building a dynamic report request based on user-defined goals Agent filters sessions by AI assistant referrers such as chatgpt.com and perplexity.ai and reports which landing pages those visitors reach Agent turns a team member's plain-language question into a GA4 report request and answers with the numbers, not a guess Agent checks dimension and metric compatibility before running a report built from a natural-language request, so the request does not fail

Run Report, Run Realtime Report, Run Pivot Report, Batch Run Reports, Get Property Metadata, Run Funnel Report, Check Dimension & Metric Compatibility

You add Google Analytics in the Fugentic planner, a no-code canvas for mapping out what your business does and which tools sit behind it. It shows how an AI agent would work with Google Analytics. Try it free at fugentic.ai/solutions/agentic-planner.

Related Analytics tools