πŸ“Š Create a weekly LLM traffic report using Google Analytics, GPT-5, and Gmail

⚑ 492 views Β· πŸ“Š Market Research & Insights

Description

Overview

Get a weekly report on website traffic driven by large language models (LLMs) such as ChatGPT, Perplexity, and Gemini. This workflow helps you track how these tools bring visitors to your site. A weekly snapshot can guide better content and marketing decisions.

How it works

/^.openai.*|.*copilot.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*neeva.*|.*writesonic.*|.*nimble.*|.*outrider.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*edgeservices.*|.*astastic.*|.*copy.ai.*|.*bnngpt.*|.*gemini.*google.*$/i;

Setup

  1. Get or connect your OpenAI API key and set up your OpenAI credentials in n8n.
  2. Enable Google Analytics and Gmail API access in the Google Cloud Console. (Read more here).
  3. Set up your Google Analytics and Gmail credentials in n8n. If you’re using the cloud version of n8n, you can log in with your Google account to connect them easily.
  4. In the Google Analytics node, add your credentials and select the property for the website you’re working with. Alternatively, you can use your property ID, which can be found in the Google Analytics admin panel under Property > Property Details. The property ID is shown in the top-right corner. Add this to the property field.
  5. Under Metrics, select the metric you want to measure. This workflow is configured to use sessions, but you can choose others. Leave the dimension as-is, since we need the source/medium dimension to filter LLMs.
  6. (Optional) To expand the list of LLMs being filtered, adjust the regex in the code node. You can do this by copying and pasting one of the existing patterns and modifying it. Example: |.*example.*|
  7. The LLM node creates a basic report. If you’d like a more detailed version, adjust the system prompt to specify the details or formatting you want.
  8. Add your email address to the Gmail node so the report is delivered to your inbox.

Requirements

Customizing this workflow

πŸ”— Nodes Used

Gmail, Google Analytics, Schedule Trigger, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup