Google Analytics AI Agent3 nodes
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
- Marketing & SEOReddit Subreddit GET Tool CallLet an Agent call a no-key HTTP GET tool that fetches hot posts from a subreddit JSON feed.
- Marketing & SEOGemini Image CreatorGenerate images from a text prompt using Gemini's native image output.
- Marketing & SEODaily Telegram Google Analytics MCP ReportSend a daily Telegram summary by letting an Agent query Google Analytics through an MCP server.
- Marketing & SEOAI Content RepurposerPaste a blog URL — fetch the article and get a ready-to-post LinkedIn update and Twitter/X thread in one run.
- Marketing & SEOSocial Media Post GeneratorRun on a weekly schedule — generate ready-to-publish LinkedIn and Twitter posts for each topic in your content calendar and send drafts to Slack for review.
- Marketing & SEOSEO Keyword Opportunity FinderFetch low-hanging keyword data from Google Search Console weekly, score each query for content opportunity with AI, and save high-value targets to a DataTable for your editorial team.
- Marketing & SEOYouTube Channel RSS to CSV — SKILL.md & Python Tutorial TrackerFetch any YouTube channel's public RSS feed and export video titles, URLs, and publish dates as a clean CSV — great for tracking SKILL.md and Python tutorial creators like Nate Herk.
- Marketing & SEOAI Viral Video Generator & TikTok PublisherRead topics from Google Sheets, generate short videos with the VEO 3 API, and upload each one to TikTok automatically.
- Marketing & SEOGoogle Search Console AI AgentQuery Search Console data in plain language — the Agent uses mcp-search-console to answer questions about rankings, impressions, clicks, and indexing status.
- Marketing & SEOCompetitor Launch Radar to SlackFetch competitor update feeds on a schedule, summarize launch signals with AI, and post the market brief to Slack.
- Marketing & SEOText Readability Scorer (Agent Skill)An agent runs a bundled Python skill that scores text for readability with Flesch Reading Ease and grade level.
- Customer SupportHITL Support Reply AgentDraft a customer-facing support response, pause for human approval, then continue with the reviewed reply.