Skip to main content

Automate multi-website Google Analytics reports with GPT processing to email & Slack

Workflow preview

Workflow preview
100%
Automate multi-website Google Analytics reports with GPT processing to email & Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

DESCRIPTION This n8n workflow automates the daily generation of comprehensive analytics reports from multiple websites, processes them using OpenAI's powerful language models, and then delivers ...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.aggregate, n8n-nodes-base.googleanalytics, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Guillaume.

Original n8n.io source

1.1 Workflow description

Title
Automate multi-website Google Analytics reports with GPT processing to email & Slack
Workflow name
Automate multi-website Google Analytics reports with GPT processing to email & Slack

🟡 DESCRIPTION

This n8n workflow automates the daily generation of comprehensive analytics reports from multiple websites, processes them using OpenAI's powerful language models, and then delivers the insights directly to your email and Slack channels.

Designed for digital marketers, website administrators, and data analysts, this template streamlines the tedious process of manually collecting and interpreting website performance data, offering immediate, actionable intelligence.

The core problem this workflow solves is the fragmentation and manual effort involved in monitoring numerous website analytics. Instead of logging into multiple Google Analytics accounts or properties daily, this workflow centralizes data extraction, enriches it with AI-powered summaries, and distributes it to your preferred communication platforms.

This significantly reduces the time spent on routine reporting, allowing you to focus on strategy and decision-making.

Users who would benefit most from this template include:

  • Digital Marketing Agencies: Efficiently generate and share client reports across multiple properties.

  • E-commerce Businesses: Monitor performance of various product sites or regional domains.

  • Content Creators: Track the success of different blogs or content platforms.

  • Anyone managing a portfolio of websites: Gain a unified view of their digital assets' performance.

🟡 SETUP

Before importing and running this workflow, ensure you have the following prerequisites in place:

â–º Google Analytics API Setup:

  • Go to the Google Cloud Console (https://console.cloud.google.com/).

  • Create a new project or select an existing one.

  • Navigate to "APIs & Services" > "Enabled APIs & services."

  • Search for and enable the "Google Analytics Data API" (for GA4) or "Google Analytics Reporting API" (for Universal Analytics, if still in use).

  • Go to "APIs & Services" > "Credentials."

  • Create "OAuth client ID" credentials for a "Web application."

  • Copy your client ID and client secret.

  • In n8n, add a new Google Analytics credential using the "OAuth2" authentication method.

  • Provide the Client ID and Client Secret. You will need to authorize n8n to access your Google Analytics data.

  • Scopes https://www.googleapis.com/auth/analytics.readonly (read-only) or https://www.googleapis.com/auth/analytics (manage)

  • OAuth Redirect URL Already pre-filled by n8n (copy this when creating the Google client)

  • Click Sign in with Google, choose the GA account, and approve the requested scopes.

  • Click Save – n8n tests the token and stores it encrypted.

  • For each yourwebsite.com node, select these credentials and specify the correct Google Analytics View ID (for Universal Analytics) or Property ID (for GA4).

â–º Email Credentials (SMTP):

  • In n8n, add a new SMTP credential.

  • Provide your SMTP host, port, username, and password. This will be used to send the aggregated reports.

â–º Slack Credentials:

  • In n8n, add a new Slack credential.

  • Follow the instructions to create a Slack App and generate a Bot User OAuth Token. This token will allow n8n to post messages to your Slack channels.

â–º OpenAI Credentials:

Sign up for an OpenAI account (https://platform.openai.com/).

Generate an API Key from your account dashboard.

In n8n, add a new OpenAI credential and paste your API Key.

â–º Website Configuration:

The workflow currently includes nodes for yourwebsite.com (1 to 8).

  • For each "Get Report" node (e.g., yourwebsite.com, yourwebsite.com 2, etc.), duplicate or remove them as needed to match the number of Google Analytics properties you wish to monitor.
  • Replace the names and number of websites inside the report maker agent.

🟡 Usage

Once you have configured the credentials, you can customize the workflow to fit your specific needs, including leveraging various alternative nodes for sending notifications and reports. This flexibility allows you to integrate seamlessly with your preferred communication tools such as Gmail, Telegram, Outlook, or any other service supported by n8n's extensive node library.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 3 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 5 - yoursite.com

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 6 - yoursite.com 2

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 7 - yoursite.com 3

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 8 - yoursite.com 4

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 9 - yoursite.com 5

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 10 - yoursite.com 6

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 11 - yoursite.com 7

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 12 - yoursite.com 8

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Report maker agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 16 - GPT 4.1 nano

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Send report by email (Gmail)

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 18 - Send report by email (outlook)

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Block 19 - Send report by email (SMTP)

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 20 - Send notification process complete on Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 21 - Send notification process complete on Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 22 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Send email for ERROR in credentials (SMTP)

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 24 - Send email for ERROR in credentials (Outlook)

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate multi-website Google Analytics reports with GPT processing to email & Slack
Complexity advanced
Nodes 38
Categories Market Research, AI Summarization
Author Guillaume
Published 22 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6258/6258.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate multi-website Google Analytics reports with GPT processing to email & Slack do?

DESCRIPTION This n8n workflow automates the daily generation of comprehensive analytics reports from multiple websites, processes them using OpenAI's powerful language models, and then delivers ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.