Google Analytics AI Agent3 nodes
FeaturedIntegration#Google Analytics#MCP#Agent#Analytics#Data#Marketing
Google Analytics AI Agent
Ask plain-language questions about your GA4 property — the Agent queries Google Analytics through analytics-mcp and returns metrics, reports, and insights.
Workflow at a glance
The full canvas, before you import it
Click any node to see its config.
#Google Analytics#MCP#Agent#Analytics#Data#Marketing
Click a node to select it — same as the Heym editor; the panel shows its settings.
3 nodes · Free & source-available
Google Analytics AI Agent
Ask plain-language questions about your GA4 property and get back metrics, segments, and reports without opening a dashboard.
What this workflow does
- AnalyticsQuery — type a free-text question about your site traffic
- AnalyticsAgent — an Agent queries GA4 through the analytics-mcp MCP server and formats the answer
- AnalyticsResult — returns the Agent's response
Use cases
- "What were my top landing pages last week?"
- "Show me traffic by country for the past 30 days"
- "Compare mobile vs desktop sessions this month vs last month"
- "Which pages have the highest bounce rate?"
- "How many new users did we get this week vs last week?"
Service account setup
- Go to Google Cloud Console → IAM & Admin → Service Accounts
- Create a service account (e.g.
[email protected]) - Enable the Google Analytics Data API in APIs & Services → Library
- Download a JSON key for the service account (Actions → Manage keys → Add key → JSON)
- In Google Analytics, go to Admin → Account Access Management → Add users, and add the service account email as a Viewer
- Base64-encode the key:
base64 < service-account.json | tr -d '\n' - Paste the result into the
GOOGLE_APPLICATION_CREDENTIALS_JSON_B64env field on the MCP connection
MCP connection setup
Open AnalyticsAgent, find the analytics-mcp MCP connection, and update:
GOOGLE_APPLICATION_CREDENTIALS_JSON_B64— your base64-encoded service account JSON- Set your Account ID and Property ID in the system instruction (find them in GA Admin → Property Settings)
Notes
- The
analytics-mcppackage is installed automatically byuv run --with - Requires Python 3.11+ and
uvto be installed on the machine running Heym
How to import this template
- 1Click Import → Copy JSON on this page.
- 2Open your Heym and navigate to a workflow canvas.
- 3PressCmd+V/Ctrl+V— nodes appear instantly.
- 4Add your API keys in the node config panels and click Run.
More workflow templates
Discover more automations
- IntegrationReddit Subreddit GET Tool CallLet an Agent call a no-key HTTP GET tool that fetches hot posts from a subreddit JSON feed.
- IntegrationJina Web FetcherFetch clean, LLM-ready text from any URL using the Jina Reader API.
- IntegrationOpen-Meteo Weather SnapshotPull live weather (no API key) from Open-Meteo for any city coordinates — great for travel bots and dashboards.
- IntegrationZenQuotes Random QuoteFetch a random inspirational quote as JSON from the free ZenQuotes API — no API key, ideal for bots and UI demos.
- IntegrationSlack + Postgres MCP Answer AgentAnswer Slack channel questions by letting an Agent query Postgres through MCP, then post the answer back to Slack.
- IntegrationDiscord Incoming WebhookPost a message to a Discord channel with a single HTTP node — structured text input and webhook JSON body.
- IntegrationGoogle Sheets AI EnricherRead new rows from Google Sheets, classify or enrich them with an LLM, and write the results back automatically.
- IntegrationRealtime WebSocket Alert RelayListen to an external WebSocket feed, audit critical events, and forward them to another realtime channel.