Weekly AI assistant traffic report
Filters AI assistant referrals in Google Analytics, emails a weekly report. This free n8n template reports how many website sessions come from AI assistants. Every Monday it pulls the number of sessions by source/medium from Google Analytics. A Code node keeps only the referral traffic that matches a regex shown on the page. The filtered sessions go to an LLM node, which creates a basic report, and Gmail sends it to your own inbox. It suits site owners who want a weekly snapshot of traffic from AI assistants. You need an OpenAI API key and the Google Analytics and Gmail APIs enabled in Google Cloud Console.
Steps
- Trigger: The trigger runs every Monday
- Pulls sessions by source/medium from Google analyticsGoogle Analytics
- Code node filters AI referral traffic
ChatGPT, Perplexity, Gemini and others, by regex. - Combines the filtered sessions into one list
- Generates a short reportOpenAI
- Output: Emails the report to yourselfGmail
Limits
- The report goes to your own inbox.
- Only counts referrals that match the regex.
- The model is named only in the title, not in the description.
What it does well
- Uses one metric, sessions, split by source/medium.
Before you import
Accounts to connect: an OpenAI API key, and the Google Analytics and Gmail APIs enabled in Google Cloud Console.
Similar templates
Daily Todoist and calendar briefing
Also for scheduling and ops, 7 steps.
Daily business news brief in Slack
Also for scheduling and ops, 5 steps.
Daily calendar summary by Twilio SMS
Also for scheduling and ops, 3 steps.
Gmail and OpenAI: 29 templates compared
Same two apps, different steps.
Send a recurring summary
Other templates that do this task.