Google Analytics integration
Web analytics and reporting API. Access website traffic data, user behavior, conversions, and audience insights. Query real-time data, generate reports, and manage GA4 properties. Essential for marketing analytics, performance tracking, and data-driven decisions.
Say what should happen.
The workflow builds itself.
Common Google Analytics use cases
- dashboard data
- report builder
- remarketing lists
- performance optimization
- field discovery
- live monitoring
- query validation
- traffic analysis
- audience extraction
- audience management
What you can do with Google Analytics
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Audienceexport, 4 operations
create_audience_exportCreate audience exportPOSTCreates an audience export job for a GA4 property.get_audience_exportGet audience exportGETRetrieves configuration metadata for a specific audience export.list_audience_exportsList audience exportsGETLists all audience exports created for a GA4 property.query_audience_exportQuery audience exportPOSTQueries and retrieves user data from a completed audience export.
Pivot, 2 operations
batch_run_pivot_reportsBatch run pivot reportsPOSTExecutes multiple pivot reports in a single API call.run_pivot_reportRun pivot reportPOSTCreates a pivot table report with multi-dimensional data cross-tabulation.
Report, 2 operations
batch_run_reportsBatch run reportsPOSTExecutes multiple analytics reports in a single API call.run_reportRun reportPOSTGenerates a custom analytics report with specified dimensions, metrics, and date ranges.
Compatibility, 1 operation
check_compatibilityCheck compatibilityPOSTValidates that specified dimensions and metrics can be used together in a report.
Funnel, 1 operation
run_funnel_reportRun funnel reportPOSTAnalyzes user progression through a defined conversion funnel.
Metadata, 1 operation
get_metadataGet metadataGETRetrieves all available dimensions and metrics for a GA4 property.
Realtime, 1 operation
run_realtime_reportRun realtime reportPOSTRetrieves real-time analytics showing current active users and their behavior.
OAuth scopes Google Analytics requires
Each operation declares the scopes Google Analytics requires for it.
https://www.googleapis.com/auth/analytics.readonlyneeded by batch_run_pivot_reports, batch_run_reports, check_compatibility and 9 more
Google Analytics API rate limits
- 10 requests in parallel
Token-based quotas (Core, Realtime, Funnel). Each request consumes a variable number of tokens based on complexity. GA360 properties get 10x quotas (2M/day, 400K/hour, 50 concurrent). See https://developers.google.com/analytics/devguides/reporting/data/v1/quotas
These are the limits Google Analytics documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Google Analytics documentation for current values.
Use Google Analytics from Claude Code, Cursor or Codex
Connect Google Analytics in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Google Analytics operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Google Analytics
- Create your workspace
Sign up free. Nothing to install.
- Connect Google Analytics once
Add your Google Analytics connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Google Analytics integration FAQ
What can you do with the Google Analytics integration?
LiveContext exposes 12 operations on Google Analytics, covering audienceexport, pivot, report and compatibility. Common uses include dashboard data, report builder and remarketing lists.
Which OAuth scopes does Google Analytics require?
The operations that declare a scope all need https://www.googleapis.com/auth/analytics.readonly.
What are the Google Analytics API rate limits?
Google Analytics documents 10 requests in parallel. Token-based quotas (Core, Realtime, Funnel). Each request consumes a variable number of tokens based on complexity. GA360 properties get 10x quotas (2M/day, 400K/hour, 50 concurrent). See https://developers.google.com/analytics/devguides/reporting/data/v1/quotas Limits are set by Google Analytics and can depend on your plan.
