All articles

How to Track ChatGPT and AI Traffic in Google Analytics 4

By The Orem Team··8 min read
A modern desk with a laptop showing Google Analytics data and AI platform logos on a phone, symbolizing AI traffic tracking challenges.

Unlocking True AI Search Attribution: GA4 Custom Channels and Beyond

Let’s be honest—if you’re running a website in 2026, figuring out exactly how much traffic those shiny new AI search tools (like ChatGPT, Perplexity, or Gemini) are sending your way can feel like chasing a shadow. AI search is everywhere now, shaping the ways people discover brands and find answers online, but tracking their true impact? Not so straightforward.

If you’re in charge of website reporting, you know that precise attribution isn’t just a nicety. It’s the foundation for nailing down what’s actually working, defending your budget, and staying ahead of big shifts in online behavior. So, how do you really track AI traffic in GA4? Why does it so often get buried under “Direct” or “Referral” buckets? And how can you see beyond the limitations—tying together both the clicks you get and the mentions you might never notice?

Why AI Search Traffic Hides in “Direct” and “Referral” in GA4

Here’s the thing: GA4 tries to pin down where your visits come from by reading referrer info or tracking codes like UTMs. Sounds simple enough, but AI assistants don’t always play along. When someone clicks through from ChatGPT, Perplexity, Gemini, Copilot, or Claude, the referral data often arrives half-baked—or not at all. Sometimes you spot “chatgpt.com” listed as a source. But just as often, the visit sneaks in as “Direct” without leaving a trace.

This isn’t some rare glitch. The reality is, many AI search tools open links in new browser tabs, in-app viewers, or privacy modes that deliberately scrub away referrer details. Your AI-driven traffic then ends up scattered between “Referral” and that overflowing “Direct” bucket—making it ridiculously easy to miss what’s really happening with your AI visibility.

Close-up of a computer screen showing blurred analytics data, a hand on mouse, and sticky notes reading Direct and Referral, highlighting hidden AI traffic.

And that’s just the beginning. AI loves handing out “zero-click” answers—summarizing your content or mentioning your brand without ever linking (or without the user clicking). When that happens, GA4 doesn’t see a thing. You might be the talk of the AI town, but if nobody clicks, your analytics won’t show it. Invisible wins, lost in the noise.

Step-by-Step: Creating a Custom Channel Group for AI Sources in GA4

Ready to bring some order to this chaos? The smartest way is to set up a custom channel group in GA4 just for AI platforms. That way, you’ll clearly see how much of your website’s performance is driven by ChatGPT, Perplexity, Gemini, Copilot, or Claude—separately from more generic “referral” or “direct” traffic.

Here’s how you cut through the fog—step by step:

Person at desk creating GA4 custom channel group with regex on laptop screen and handwritten notes beside them.
  • Open GA4 and go to Admin > Data Settings > Channel Groups.
  • Create a custom channel group. Give it a name like “AI Search.”
  • Add your rule: Use “Session source” or “Source platform” and add this regex: chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai
  • Save & publish. Once live, GA4 will automatically put all sessions from those sources into your new “AI Search” channel.

Now, when you look at your Traffic acquisition report, you can filter or segment by “AI Search” to see exactly which visits, conversions, and user journeys started with an AI search. No more struggling to guess what’s hiding in “Direct.”

UTM Tagging: Enhancing Attribution for AI-Driven Links

Creating a custom channel group solves a big chunk of the problem—but only works if the platform sends referrer info. Here’s where you can get a little creative. If you manage the links—say, in an AI-powered newsletter or chatbot you control—drop in UTM tags to make the source unmistakable in GA4.

This is what a typical UTM tag for AI traffic might look like:

Person looking at AI chatbot summary on phone while laptop shows empty analytics data, illustrating unseen AI traffic.

With UTM-tagged links, GA4 can always attribute traffic to “chatgpt” (or whatever platform you set), instead of tossing it in with “Direct” or “Referral.” Super helpful for marketers running campaigns or coordinating with AI partners. That said, there’s a catch: you can only tag what you have control over.

For organic AI mentions—where you aren’t touching the link or answer—UTMs are off the table. In those cases, it’s back to smart referrer detection and your custom channel group to pick up the slack.

What GA4 Can’t See: Zero-Click Answers, Untagged App Traffic, and Unseen Mentions

Here’s some real talk: even with the slickest GA4 setup, a big chunk of AI influence will always slip through the cracks. Zero-click answers are the worst offenders—if the AI summarizes your product or brand without a link, or if users don’t bother clicking, analytics won’t ever know you made the cut.

It gets trickier. Sometimes there’s a link, but when users open it inside an AI app, a privacy browser, or anything that blocks referrer data, GA4 will chalk it up as “Direct”—or miss it altogether. That gap? It’s why site traffic and AI mentions never line up perfectly.

Overhead view of printed GA4 reports and AI citation stats on a wooden table with laptop and calculator, showing combined data analysis.

So how do you see the whole picture? Pair your GA4 click data with AI mention and citation tracking. For instance, understanding the difference between being named and being cited reveals both your exposure and the real-world engagement you get from AI answers.

Want to dig deeper on what zero-click searches and AI Overviews mean for your traffic? Take a look at our guide to zero-click searches and AI Overviews for bigger-picture strategies.

Combining GA4 Click Data with Citation Rates for the Full Picture

Here’s the bottom line: blending GA4 traffic data with AI citation rates is how you move from just tracking clicks to understanding your real AI search presence.

Let’s play out a scenario. Say your site pops up in 100 ChatGPT answers in a week, but only 12 of those make it into your GA4 “AI Search” channel. That’s a massive gap—and a perfect illustration of just how common zero-click exposure is (and how much brand lift happens without a traffic spike).

When you’re reporting to clients or execs, an honest, actionable report means merging your GA4 custom channel numbers with mention/citation stats. Tools like Orem are built to do exactly this—serving up not only the citations GA4 never sees, but the full, click-and-non-click footprint of your brand in AI search.

Maintaining and Updating Your AI Tracking Setup

AI search isn’t standing still. New platforms keep launching, rules change, domains get swapped, and how they handle referrals evolves all the time. So, staying accurate in GA4 means a little ongoing housekeeping.

Put a recurring reminder on your calendar: check your custom channel group rules, add any new AI domains, and keep an eye on your Traffic acquisition report for oddball sources. This isn’t a “set it and forget it” job—the landscape will only get wilder as AI search blurs into shopping, browsing, even voice assistants.

If you want to stay ahead, check our deep dives on structuring answer-first content for AI visibility and SEO strategies for Microsoft Copilot.

Key Takeaways: Smarter AI Traffic Attribution in GA4

Here’s what it all comes down to: Tracking ChatGPT and AI search referrals in GA4 isn’t just possible—it’s a must for any data-driven marketer. But you’ll need to go beyond the default setup. Build a custom channel group with regex for the top AI domains, tag what you can, and combine GA4 clicks with AI citation data. That’s how you finally get the full story on how artificial intelligence is shaping both your web traffic—and your brand’s reputation.

In the end, the brands that adapt their analytics will be the ones who measure not just traffic, but actual influence and authority in this AI-first world.

Frequently Asked Questions

Why does AI traffic sometimes show up as “Direct” in GA4?

AI search tools often open links in ways that remove referral data—think in-app browsers, privacy modes, or special viewers. When that source info isn’t passed, GA4 just calls it “Direct,” so those AI-driven clicks can blend in with returning visitors or bookmarked traffic.

How can I tell if a session in GA4 came from ChatGPT or Perplexity?

Check your Traffic acquisition report and filter by session source. If you spot “chatgpt.com,” “perplexity.ai,” or something similar, it’s likely from an AI platform. Creating a custom channel group with a regex for these domains automates the process, so you don’t need to hunt each time.

Can UTM parameters help with tracking AI referrals?

Absolutely—when you control the link, adding UTM parameters guarantees that GA4 records the visit as coming from your chosen source. That said, for third-party AI mentions, you usually can’t retroactively tag the link. So, it’s only a solution where you have influence.

What about zero-click answers in AI search?

Zero-click answers—where the AI gives info but the user never lands on your site—leave no mark in GA4. To track that kind of exposure, you need AI mention and citation tracking tools that can spot when you’re named, not just visited.

Do I need to update my GA4 setup as new AI platforms emerge?

Definitely. Make it a habit to review and update your custom channel group’s regex as new AI search platforms roll out or existing ones change domains. That’s how you keep your analytics accurate as the landscape shifts.

Sources

$100 in free credits
Want your brand cited by AI search?

Orem tracks whether ChatGPT, Perplexity and Google AI Overviews mention and cite you, and shows you how to win those citations. Book a demo and get $100 in free credits to start.

Book a demo, get $100 credit