How to Track LLM Referral Traffic in GA4 (Step-by-Step Guide)

Iryna Kutnyak

Iryna Kutnyak

Apr 16, 2025

Tracking 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.

llm-report-ga4, google analytics, llm traffic, track traffic

Hereโ€™s how to create a simple LLM referral report in GA4:

๐’๐ญ๐ž๐ฉ ๐Ÿ: ๐€๐œ๐œ๐ž๐ฌ๐ฌ ๐†๐€๐Ÿ’ ๐š๐ง๐ n๐š๐ฏ๐ข๐ ๐š๐ญ๐ž ๐ญ๐จ e๐ฑ๐ฉ๐ฅ๐จ๐ซ๐ž

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.

Related: How Retrieval-Augmented Generation (RAG) Impacts AI Recommendations And What SaaS Marketers Should Do to Stay Ahead

llm-report-ga4/

๐’๐ญ๐ž๐ฉ ๐Ÿ: ๐’๐ž๐ญ u๐ฉ ๐ญ๐ก๐ž c๐ฎ๐ฌ๐ญ๐จ๐ฆ e๐ฑ๐ฉ๐ฅ๐จ๐ซ๐š๐ญ๐ข๐จ๐ง r๐ž๐ฉ๐จ๐ซ๐ญ

  1. Rename the report

โ–ช๏ธ Click on โ€œUntitled Explorationโ€ and rename it to something like:

โ€œLLM Referral Traffic & Key Eventsโ€

llm-report-ga4, traffic in ga4, session source, google analytics

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:

  • Session source/medium โ€” this is a crucial session segment that identifies where your traffic originates, including referrals from AI tools.
  • Page referrer โ€” helps pinpoint exact pages and sources sending referral traffic.

Adding these dimensions lets you track traffic specifically from AI search platforms and other LLM powered tools.

llm-report-ga4, step by step guide, traffic, site visibility

3. Add metrics

Next, click โ€œ+โ€ in the Metrics section to add key metrics like:

  • Sessions โ€” total visits driven by LLM referrals.
  • Key events โ€” important user interactions tagged as conversions or engagement signals.
  • Any other relevant key metrics such as bounce rate, average engagement time, and session duration to gauge user engagement and conversion rates.

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.

websites screenshot, google analytics 4, metric, example

๐’๐ญ๐ž๐ฉ ๐Ÿ‘: ๐’๐ž๐ญ u๐ฉ f๐ข๐ฅ๐ญ๐ž๐ซ๐ฌ ๐ญ๐จ i๐ง๐œ๐ฅ๐ฎ๐๐ž o๐ง๐ฅ๐ฒ ๐‹๐‹๐Œ r๐ž๐Ÿ๐ž๐ซ๐ซ๐š๐ฅ๐ฌ

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.*
llm-report-ga4/

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)

๐’๐ญ๐ž๐ฉ ๐Ÿ’: ๐€๐๐ฃ๐ฎ๐ฌ๐ญ v๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง (o๐ฉ๐ญ๐ข๐จ๐ง๐š๐ฅ)

GA4 offers multiple visualization options to present your LLM referral data:

  • Table View โ€” for a detailed breakdown of sessions, key events, and other metrics by source.
  • Line Graph โ€” to monitor traffic trends over time and see growth in LLM referrals.
  • Bar Chart โ€” for quick comparisons across different ai tools or platforms.

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.

llm-report-ga4/

๐’๐ญ๐ž๐ฉ ๐Ÿ“: ๐’๐š๐ฏ๐ž & s๐ก๐š๐ซ๐ž ๐ญ๐ก๐ž r๐ž๐ฉ๐จ๐ซ๐ญ

Once your report is configured:

  • Click Save in GA4 to keep it accessible anytime for ongoing analysis.
  • Optionally, use the Share feature to create a link or export the report as CSV or PDF for team collaboration or presentation.

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

Final notes on key metrics and data interpretation

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.

Iryna Kutnyak

Iryna Kutnyak

Content Marketing Strategist

Ready to streamline your
SaaS content marketing?

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 ๐Ÿ”ฅ

Let's talk
Quoleady โ€“ Ready to Streamline Your Content Marketing?
Tech Behemoths Badge
Sortlist Badge