How to Track LLM Referral Traffic in GA4 (And Why It Matters More Than You Think)

ga4 llm tracking

With the rise of AI-driven tools like ChatGPT, Gemini and Claude, a new kind of referral traffic is quietly growing in your analytics reports. Users are increasingly discovering brands, products and services through large language models (LLMs), and if you’re not tracking this traffic properly in Google Analytics 4, you’re missing part of the picture.

The good news? It’s straightforward to set up. Here’s a step-by-step breakdown of how we track LLM-driven sessions in GA4 for our clients at HOC- and why you should be doing the same.

Why Bother Tracking LLM Traffic?

LLMs are rapidly becoming the first point of contact between users and the web. Whether it’s someone asking ChatGPT for product recommendations or using Perplexity to research a service provider, these platforms are shaping purchase journeys in a way that traditional search engines used to dominate.

If you want to understand where your traffic is truly coming from and which channels are nudging users toward conversion, tracking LLM referrals is no longer optional. It’s essential.

Step-by-Step: Setting Up a Custom Report in GA4

1. Create a Custom Detail Report

Head to your GA4 property and create a new custom report. Start with a blank canvas – we want full control here.

2. Add Your Key Dimension

Click to add a dimension and select Session source / medium. This will allow you to isolate traffic based on where the session originated from – exactly what we need to pinpoint LLM referrals.

3. Select Your Metrics

At a minimum, include Sessions. That’s your baseline. From there, add any other metrics that matter to you – conversions, engagement rate, average engagement time per session – whatever aligns with your goals.

4. Filter by LLM Referrers

Now we’re going to filter the data so you’re only looking at traffic coming from LLMs.

  • Add a filter using the Session source / medium dimension.
  • Set the match type to matches partial regex.
  • Use this regex string as your value:
chatgpt.com|gemini.google.com|perplexity.ai|claude.ai|bard.google.com|you.com

This pattern will capture the most prominent LLM platforms currently driving referral traffic. It’s not exhaustive, but it covers the major players.

5. Save and Monitor

Once your report is saved, you’ll start to see data come in for any traffic originating from those LLM domains. Make a habit of checking it weekly. Patterns will emerge that you might otherwise miss – especially as AI search becomes more deeply integrated into the user journey.

Stay Ahead by Updating Your Regex

LLM platforms are evolving fast, and new players are entering the market regularly. Keep your regex string up to date. If you spot referral traffic from a new domain tied to an AI tool, add it to your filter. This isn’t a set-it-and-forget-it setup – it’s an evolving part of your attribution model.

Final Thought: What This Tells You That Google Doesn’t

The key advantage here is visibility. Platforms like ChatGPT and Gemini aren’t always flagged clearly in your analytics. Left unchecked, this traffic might be lumped under “Direct” or misattributed entirely. That muddies your insights and weakens your strategic decisions.

At HOC, we’re seeing LLM referral traffic growing steadily across a range of industries. From SaaS to ecommerce, it’s becoming a meaningful channel in its own right. The earlier you start tracking it, the better positioned you’ll be to understand – and eventually optimise – for this emerging behaviour.

If you care about data-led decision making (and if you’re here, I’m guessing you do), now’s the time to add this to your GA4 toolkit.

Paid Ads Specialist Jke Cronin

Jake Cronin

Paid Acquisition 🚀

Christian Horne

Paid Acquisition 🚀

B2B & B2C Paid Acquisition

Brand Growth
Through Paid Ads.

39+ Global Partnerships

Long-Term Partnerships

Lead Gen<br>Experts
Lead Gen
Experts
Helen Mills,
James' Places
Read More
Working with HOC has been a game-changer for James' Places. Since the start of our working relationship, our online bookings and submissions have skyrocketed. Their Google and Meta planning and execution has been outstanding.
Delivering Great<br>Results
Delivering Great
Results
Katie Shepherd,
fulfilmentcrowd
Read More
Christian, Jake, and the team's knowledge of paid advertising is second to none. They’ve consistently come through with thoughtful strategies and have delivered great results for fulfilmentcrowd.
Talented<br>Team
Talented
Team
Rikki Lear,
Imagine Growth
Read More
Fantastic PPC agency! They quickly understood our goals and delivered impressive results with a targeted strategy. We've seen a big increase in quality leads since working together with HOC.. Highly recommend.
Brilliant<br>Ad Agency
Brilliant
Ad Agency
Daniela Morales,
Avidly
Read More
Professional and reliable white-label PPC team. Their expertise and thorough approach have positively contributed to our client campaigns. Communication has been clear and efficient, and they consistently meet expectations.
Excellent<br>Paid Ads Partner
Excellent
Paid Ads Partner
Jack Kendall,
Novocoy Ltd.
Read More
A team that quickly understood our goals and delivered on their prognosis. Our growth targets have been met YOY, enabling us to increase our media spend and recruit new staff. Happy to recommend their services.
Highly Efficient<br>Agency
Highly Efficient
Agency
Mark Hurren,
Hurren & Hope
Read More
If you are looking for more from your PPC partner than the usual out of the box cookie cutter solutions, then you should work with HOC. They are easy to get along with but also have an in-depth knowledge of this constantly changing space.

Your Dedicated Paid Media Team

A team of PPC consultants that functions as an extension of your own.

Account Manager

Our Marketing Account Managers optimises your strategy, connecting specialists at the right time while keeping you informed.

Advertising Strategist

Our Search Strategists manages paid channels to attract your audience, refining campaigns to boost sales, pipeline, and revenue.

Content Specialist

Our Content Specialists craft strategic content to guide prospects while keeping your business’s image and message top of mind.

Reporting & Tracking

Our Tracking and Reporting Specialists deliver accurate data and insights to drive optimisation and performance.

christian team
group team photo
JAKE TEAM

We’re a seasoned team of paid advertising consultants with extensive experience in both B2C and B2B, managing large budgets and ambitious growth objectives. We combine data-driven strategy with creative execution to deliver tangible, measurable results. No fluff-just smart, scalable advertising that drives revenue. 

rachel team
group team photo
christian team

We’re a seasoned team of paid advertising consultants with extensive experience in both B2C and B2B, managing large budgets and ambitious growth objectives. We combine data-driven strategy with creative execution to deliver tangible, measurable results. No fluff—just smart, scalable advertising that drives revenue. 

JAKE TEAM
rachel team

Recent
Case Studies

Get
In Touch