Category: Automations › SEO, Analytics & Reporting · Best for: Founders who want numbers without logging in · Platform: n8n · Steps: 13
What it does
Every week you get an email with your Google Analytics numbers.
- retrieval of Google Analytics data from the last 7 days of the previous year
Works with: Tool Calculator, Google Analytics, OpenAI, Email, Telegram
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Google Analytics Letzte 7 Tage, Google Analytics: Past 7 days of the previous year)
- SMTP email login: how to connect (used by Send Email)
- Telegram bot token from @BotFather: how to connect (used by Telegram)
- OpenAI API key: how to connect (used by Processing for Telegram, Processing for email)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Send Email →
toEmail: choose your own - Telegram →
chatId: choose your own
- Send Email →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Schedule Trigger starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Schedule Trigger starts the workflow (Schedule).
- Calculator uses AI (Tool Calculator).
- Google Analytics Letzte 7 Tage uses Google Analytics.
- Processing for email uses AI (OpenAI).
- Assign data reshapes the data for the next step.
- Send Email uses Email.
- Processing for Telegram uses AI (OpenAI).
- Summarize Data uses Summarize.
- Telegram uses Telegram.
- Calculation same period previous year reshapes the data for the next step.
- Google Analytics: Past 7 days of the previous year uses Google Analytics.
- Assign data1 reshapes the data for the next step.
- Summarize Data1 uses Summarize.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Welcome to my Google Analytics Weekly Report Workflow!
This workflow has the following sequence:
- time trigger (e.g. every Monday at 7 a.m.)
- retrieval of Google Analytics data from the last 7 days
- assignment and summary of the data
- retrieval of Google Analytics data from the last 7 days of the previous year
- allocation and summary of the data
- preparation in tabular form and brief analysis by AI.
- sending the report as an email
- preparation in short form by AI for Telegram (optional)
- sending as Telegram message.
The following accesses are required for the workflow:
- Google Analytics (via Google Analytics API): https://docs.n8n.io/integrations/builtin/credentials/google/
- AI API access (e.g. via OpenAI, Anthropic, Google or Ollama)
- SMTP access data (for sending the mail)
- Telegram access data (optional for sending as Telegram message): https://docs.n8n.io/integrations/builtin/credentials/telegram/
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method