A Google Analytics report with AI commentary in your inbox every Monday
Every Monday morning, the agent compares last week with the week before in Google Analytics 4 and emails you a clear table, with a headline, three wins, concerns and three actions suggested by the AI.
- Difficulty
- Intermediate
- Setup time
- ≈ 1 h (estimate, not counting Google Cloud setup)
- Estimated cost
- n8n: €0 self-hosted or from €20/month (Starter, billed annually) + Gemini API: free tier possible, paid beyond that; Google Analytics 4 and Gmail: free
- Category
- Marketing
⏱ Trigger
Every Monday at 8 am (cron)
✋ Human approval
Read-only on Google Analytics: the agent changes nothing on your site or accounts. It only sends you a report; you decide what to do.
→ Output
Weekly email with a dashboard table and AI commentary
Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.
01Connected tools
- n8n – Schedule Trigger ↗
- n8n – Google Analytics ↗
- n8n – Basic LLM Chain ↗
- n8n – Google Gemini Chat Model ↗
- n8n – Gmail ↗
02What the agent does on its own
- step 01
Every Monday at 8 am, pulls the last 7 days and the previous 7 days from Google Analytics 4: users, new users, sessions, page views, engaged sessions and key events.
- step 02
Also pulls the top 10 pages and the top 10 traffic sources.
- step 03
Calculates totals, percentage changes and engagement rate without AI: the numbers come straight from Google Analytics.
- step 04
Asks Gemini for a short commentary: a headline, three wins, up to three concerns and three concrete actions, and forbids it to invent causes the data doesn't show.
- step 05
Formats everything as an HTML email with green and red arrows and sends it from Gmail; if something breaks, an alert email lets you know.
03Agent instructions
> You are a web analytics consultant writing a weekly note for a busy small-business owner. Use ONLY the numbers below; do not invent causes you cannot see in the data. Site: {SITE}. KPIs (this week vs last week): {KPIS}. Top pages: {PAGES}. Top sources: {SOURCES}. Return JSON {"headline":"under 12 words","wins":[3],"concerns":[up to 3],"actions":[3, each under 20 words]}.04Limits and legal points
You need a site already tracked by Google Analytics 4 and a Google Cloud project with the Google Analytics Data API enabled: that's the most technical step. On a low-traffic site, percentages swing a lot from week to week and the AI commentary may over-read small changes. Suggested actions are general ideas for you to judge. Aggregated audience data is sent to Google Gemini.
05In short
- When does the agent run, and what does it produce?
- Trigger: Every Monday at 8 am (cron). Output: Weekly email with a dashboard table and AI commentary.
- What stays under your control?
- Read-only on Google Analytics: the agent changes nothing on your site or accounts. It only sends you a report; you decide what to do. Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.
- How much does it cost and how long does setup take?
- Estimated cost: n8n: €0 self-hosted or from €20/month (Starter, billed annually) + Gemini API: free tier possible, paid beyond that; Google Analytics 4 and Gmail: free. Setup time: ≈ 1 h (estimate, not counting Google Cloud setup), difficulty "intermediate". Tools: n8n – Schedule Trigger, n8n – Google Analytics, n8n – Basic LLM Chain, n8n – Google Gemini Chat Model, n8n – Gmail.
Answers taken from this recipe · updated 26 October 2026
06Source
https://github.com/OlsOls4/n8n-ai-workflow-templates/tree/main/templates/ga4-weekly-ai-report
07Related recipes
Same category or same connected tools.