Ga4 anomaly detection with automated Slack & email alerts
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 7 nodes and runs on a schedule (every day). Along the way it connects Slack and Gmail.
How it runs
Trigger: On a schedule (every day).
- Define variables (Edit Fields (Set)): sets or maps fields
- Get GA4 Data (HTTP Request): calls an HTTP API
- Detect GA4 Anomalies (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Send a message (Slack): uses Slack
- Send an email (Gmail): uses Gmail
Services it uses
Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if
From the author
Who’s it for Teams that monitor traffic, signups, or conversions in Google Analytics 4 and want automatic Slack/email alerts when a channel suddenly spikes or drops. What it does This n8n template pulls daily GA4 metrics, detects outliers with a rolling mean…