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.
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
Inputs: dateRanges, dimensions, metrics, dimensionFilter, metricFilter, orderBys, limit, offset, keepEmptyRows
Returns: rows, rowCount, dimensionHeaders, metricHeaders, metadata
Inputs: dimensions, metrics, dimensionFilter, limit
Returns: rows, rowCount, activeUsers
Inputs: dateRanges, dimensions, metrics, pivots
Returns: rows, rowCount, pivotHeaders, metricHeaders
Inputs: requests
Returns: reports, count
Returns: dimensions, metrics, dimensionCount, metricCount
Inputs: dateRanges, funnel, breakdownDimension, funnelVisualizationType
Returns: funnelTable, funnelVisualization
Inputs: dimensions, metrics
Returns: dimensionCompatibilities, metricCompatibilities, compatible
Example workflows
- 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
Real-time dashboard feed
Poll active users by device and page every minute to power a live marketing dashboard
- 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
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
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
- 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
- Website
- https://analytics.google.com
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
Amplitude
Connect agents to Amplitude to track events, identify users, and query product analytics data.
Segment
Connect agents to Segment to track events, identify users, and route data to any downstream destination.
PostHog
Connect agents to PostHog to capture events, manage feature flags, and query product analytics.