Iryna Kutnyak
Content Marketing Strategist
Iryna Kutnyak
Apr 16, 2025Tracking LLM referral traffic is crucial for businesses looking to understand how users discover content via large language models (LLMs) like ChatGPT, Gemini, and Bard. Google Analytics 4 (GA4) offers powerful AI tools that allow marketers to gain traffic insights and monitor user behavior driven by AI search. In this guide, weโll show you how to create a simple, effective LLM referral report in GA4 to track this emerging source of web traffic, helping you gain a competitive edge over reliance on traditional search engines.
Our SaaS clients are getting ๐.๐-๐% of total traffic from LLMs.
Hereโs how to create a simple LLM referral report in GA4:
Start by logging into your Google Analytics 4 account. From the left hand menu, click on Explore โ GA4โs feature for building custom reports and session segments. Then select โBlankโ to create a new report from scratch.
This section of GA4 is ideal for tracking specialized traffic in GA4 that standard reports might miss. By leveraging the dimensions and metrics section, you can build a report tailored to monitor LLM referral traffic and analyze traffic trends over time.
โช๏ธ Click on โUntitled Explorationโ and rename it to something like:
โLLM Referral Traffic & Key Eventsโ
Read also: Structuring Web Pages for AI-First Indexing
2. Add dimensions
Click the โ+โ button in the Dimensions section to add new dimensions. Search for and include:
Adding these dimensions lets you track traffic specifically from AI search platforms and other LLM powered tools.
3. Add metrics
Next, click โ+โ in the Metrics section to add key metrics like:
These metrics provide deeper traffic insights into how users interact with your site after arriving via AI-driven referrals.
You might be interested in: LLMs vs SEO: Whatโs Changing in Search Discovery
4. Add rows and values
Drag Session source/medium into the Rows area, and Sessions into Values to structure the report for clear visibility of traffic sources and volume.
To focus your report exclusively on LLM referral traffic, drag either Page referrer or Session source/medium into the Filters section. Then apply a โMatches Regexโ filter using this regex string to capture known LLM referral domains:
.*openai.*|.*chatgpt.*|.*copilot.*|.*perplexity.*|.*gemini.*|.*bard.*|.*gpt.*|.*neeva.*|.*copy\.ai.*|.*writesonic.*|.*nimble.*|.*outrider.*|.*edgeservices.*|.*astastic.*|.*bnngpt.*
Using regex filters like this in GA4 allows precise tracking of AI powered tools driving traffic, filtering out unrelated sources to keep your data clean. This step is essential for understanding traffic in GA4 specifically generated from AI search and other LLMs beyond traditional referral sources.
Note: you can use the source/medium contains filter to exclude anything that you want to remove from the report.
See also: How to get your SaaS brand quoted by ChatGPT (and other AI Tools)
GA4 offers multiple visualization options to present your LLM referral data:
Adding Date as a breakdown dimension helps reveal how traffic insights evolve, showing increases in AI search visibility and changes in user behavior over weeks or months.
Once your report is configured:
Tracking LLM referral traffic regularly enables data-driven decisions that optimize how your website engages users discovering content through AI-powered platforms.
You might be interested: 10 Content Formats That Get Picked Up by LLMs
Keep in mind, key events in this report might be inflated if your GA4 setup tags many interactions as key events by default. Monitor session duration, bounce rate, and engagement rate alongside conversions to get a comprehensive picture of user engagement.
By analyzing session source medium data alongside regex filters and key metrics, you can verify how much traffic is driven by AI search compared to traditional search engines. This emerging source of traffic represents a valuable opportunity to boost your organic traffic and adapt marketing strategies for the future.
With this step-by-step method to create a custom LLM referral report in GA4, youโll gain crucial insights into how users discover content through AI tools, enabling you to track and optimize your websiteโs performance in the age of AI search.
Let us know what you are looking to accomplish.
Weโll give you a clear direction of how to get there.
All consultations are free ๐ฅ