AutomationFlowsMarketing & Ads › Ga4 Anomaly Detection with Automated Slack & Email Alerts

Ga4 Anomaly Detection with Automated Slack & Email Alerts

ByArtur @arlusm1 on n8n.io

Teams that monitor traffic, signups, or conversions in Google Analytics 4 and want automatic Slack/email alerts when a channel suddenly spikes or drops.

Cron / scheduled trigger★★★★☆ complexity9 nodesHTTP RequestSlackGmail
Marketing & Ads Trigger: Cron / scheduled Nodes: 9 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #7912 — we link there as the canonical source.

This workflow follows the Gmail → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "c78448ee-b1f9-4455-b9e9-94ca9bcdf8e5",
      "name": "Detect GA4 Anomalies",
      "type": "n8n-nodes-base.code",
      "position": [
        368,
        -80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "34b855f2-0d92-4600-baa8-7f3181a91c0b",
      "name": "Define variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -32,
        -80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1525c5d3-18c6-4a93-9756-99fc8ebf63ca",
      "name": "Get GA4 Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a2b38011-ab3f-4ea6-ac18-68f311a452b5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5c73dc42-5021-4d51-8737-0632fc953b33",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        960,
        16
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "5e6e7560-3027-401e-af65-d1f9798c771a",
      "name": "Send an email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        960,
        -224
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "bbf1cf7d-4179-4896-b787-1301c358a0dd",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -224,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6df9c8bc-e52f-4d3e-93c3-4ab199b5f85b",
      "name": "If anomaly is found",
      "type": "n8n-nodes-base.if",
      "position": [
        608,
        -80
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "0559d7c3-cec0-447c-ab48-43804e067f3e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        -528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Get GA4 Data": {
      "main": [
        [
          {
            "node": "Detect GA4 Anomalies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define variables": {
      "main": [
        [
          {
            "node": "Get GA4 Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Define variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If anomaly is found": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send an email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect GA4 Anomalies": {
      "main": [
        [
          {
            "node": "If anomaly is found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Teams that monitor traffic, signups, or conversions in Google Analytics 4 and want automatic Slack/email alerts when a channel suddenly spikes or drops.

Source: https://n8n.io/workflows/7912/ — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Marketing & Ads

Watch target companies for C-level and VP hiring signals, then send AI-personalized outreach emails when leadership roles are posted.

Google Sheets, @Predictleads/N8N Nodes Predictleads, Slack +2
Marketing & Ads

This workflow is designed for marketing teams, data analysts, and business owners who need to consistently track key performance indicators (KPIs). It saves hours of manual data collection and reporti

Google Analytics, HTTP Request, Google Sheets +3
Marketing & Ads

This workflow runs on scheduled weekly and monthly triggers to generate unified marketing performance reports. It processes multiple websites by collecting analytics data, paid ads performance, and CR

Gmail, Google Sheets, Google Analytics +3
Marketing & Ads

This workflow automates your entire lead follow-up process across email, SMS, and WhatsApp.

HTTP Request, Gmail, Twilio
Marketing & Ads

Monitor customers for competitor tech adoption via PredictLeads and alert CSMs to prevent churn.

Google Sheets, @Predictleads/N8N Nodes Predictleads, Slack +1