How to Track ChatGPT and Perplexity Traffic in GA4

SEO Analytics & Reporting

How to Track ChatGPT and Perplexity Traffic in GA4

Your organic traffic is flat and your direct traffic is climbing, and the reason is probably AI. By default GA4 hides most AI-driven visits in Direct and Referral. This guide shows how to pull them into their own channel, which report to read, and why the number you get is always a floor.

By Rahul Saini, Author at Search Counsel Co. Last updated [July] 2026.

Featured answer: how do you track AI traffic in GA4?

By default GA4 scatters AI traffic across Direct, Referral, and Organic, so most of it is invisible. To track it, combine GA4’s native AI Assistant channel with a custom channel group that uses a regex on the source to catch ChatGPT, Perplexity, Claude, and the rest, placed above Referral. Even then, treat the number as a floor, because copy-pasted visits leave no referrer.

Most of your AI traffic is hiding in Direct. When someone copies your link out of a ChatGPT answer, or clicks from the mobile app, no referrer is passed, and GA4 files the visit under Direct, the same bucket as someone typing your URL. By some estimates that’s well over half of AI-driven visits. The native AI channel helps, but it can’t recover what has no referrer, so you build a safety net.

Native channel

The start

GA4’s AI Assistant channel catches recognized platforms automatically.

Custom group

The safety net

A regex channel group catches what the native one misses.

Above referral

Order matters

Place it above Referral, or AI stays misclassified.

By landing page

The payoff

See which of your pages AI platforms actually cite.

Why AI traffic hides

GA4 expects visitors to arrive through a standard search referrer like google.com or a campaign you tagged. AI platforms fit neither pattern, so their traffic scatters:

  • Copy-pasted links land in Direct. Most people copy a URL out of a ChatGPT answer and paste it into a new tab, which passes no referrer. GA4 files that under Direct, indistinguishable from someone typing your address.
  • Clicked links land in generic Referral. When users do click a citation in Perplexity or Claude, the visit arrives tagged perplexity.ai or claude.ai and gets lumped in with all your other referrals.
  • Google’s own AI counts as Organic. Clicks from AI Overviews and AI Mode report as organic search, so they can’t be cleanly separated at all.

The result is that only a minority of AI-driven visits are visible in a default GA4 report, with the majority misclassified, and most brands can’t attribute the channel at all. Whatever number you eventually see is an undercount, which matters because these visits tend to convert at several times the rate of ordinary organic traffic.

The two-part fix

No single setting solves this, so use two together:

  • GA4’s native AI Assistant channel. Added in 2026, it automatically routes recognized platforms like ChatGPT, Gemini, and Claude into their own channel, covered in the GA4 for SEO guide. It’s a good start, but it misses some sources, only works going forward, and can’t recover sessions that arrive with no referrer.
  • A custom channel group with regex. This is the safety net. It catches the platforms the native channel misses, groups them into one clean channel, and, unlike the native channel, applies your rule across the data you already have when you view reports with it selected. Run both.

Build the channel group

The setup takes about fifteen minutes and you only do it once:

  1. Go to Admin, Data settings, Channel groups, and click Create new channel group. Name it something clear like “AI Traffic.”
  2. Add a new channel, name it AI Search, and set the condition to Source matches regex.
  3. Paste a pattern covering the major platforms, for example: chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|deepseek\.com|grok\.com|meta\.ai|you\.com
  4. Reorder the channel so AI Search sits above Referral. This is the step people miss. GA4 assigns each session to the first channel it matches, so if Referral comes first, your AI visits stay buried in it.
  5. Save. One note: GA4’s regex is case-sensitive, and sources normally appear in lowercase, so add a case-insensitive flag if you spot mixed-case values.

Three methods by access

Pick the one that matches your permissions:

  • Custom channel group (needs Admin access). Permanent, property-wide, and visible in every standard report. This is the right default for most teams.
  • Free-form Exploration (no admin needed). In Explore, add Session source/medium as a dimension, apply the same regex as a filter, and add Landing page with Sessions and key events. Quick and good for ad-hoc analysis, though it’s private to your account.
  • Looker Studio calculated field (no GA4 configuration). Use a CASE statement with a regex match on the source to label AI traffic inside your dashboard. It only works in that report, but it’s the fastest option when you can’t touch the property.

The report, and the honest caveats

Once it’s live, the single most useful view is landing page by AI source: it shows exactly which of your pages each AI platform cites, and how that traffic converts. That’s your citation footprint made tangible, the traffic-side companion to the AI visibility KPIs.

Now the honesty, so you don’t misread your own data:

  • It’s a floor, not a full count. The no-referrer leak means real AI influence is larger than what you can see, so never conclude “AI sends us nothing” from a small number. This is exactly why you also measure AI visibility directly, per the KPIs.
  • Google’s AI is invisible here. AI Overview and AI Mode clicks stay in organic, so pair this with the Search Console AI report read qualitatively.
  • Don’t confuse crawlers with referrals. Bots scraping your site to train models are not humans clicking citations; they’re a separate analysis, and GA4’s bot filter handles the former, not the latter.
  • Don’t track only ChatGPT. It dominates today, but Perplexity, Gemini, and Claude are growing, so keep the pattern broad.
  • Use multi-touch, not last-click. AI often plays an early awareness role, which last-click attribution hands to a later channel. And remember much AI influence also surfaces as branded or direct traffic, covered in branded vs non-branded.

Keep it current: refresh the regex quarterly as platforms launch and rebrand, and scan your Referral list monthly for new domains containing “ai,” “chat,” or “gpt.” AI browsers add a wrinkle too, some pass a clean referrer while others mask their origin as Direct.

FAQ

Does GA4 track AI traffic automatically?

Partly, since 2026. A native AI Assistant channel now routes recognized platforms like ChatGPT, Gemini, and Claude into their own channel. But it misses some sources, only works going forward, and can’t capture sessions that arrive without a referrer, which is many of them. For fuller coverage, add a custom channel group with a regex on the source.

Why does my AI traffic show up as Direct?

Because no referrer was passed. When someone copies your link from an AI answer, or clicks from a mobile app that strips referrer data, GA4 has no source to read and files the visit under Direct, alongside people typing your URL. This is the main reason measured AI traffic understates the real total, and it can’t be fully recovered.

Where do I add the regex for AI traffic?

In Admin, under Data settings and Channel groups, create a new channel group, add a channel set to Source matches regex, and paste a pattern listing the AI domains. Then reorder that channel above Referral, since GA4 assigns each session to the first matching channel. Without that ordering step, your AI traffic stays lumped in with generic referrals.

Can I separate Google AI Overview traffic in GA4?

No. Clicks from Google’s AI Overviews and AI Mode are counted as organic search, and GA4 offers no clean way to isolate them. The workaround is to monitor your custom AI channel for ChatGPT, Perplexity, and similar referrals, and read Search Console’s AI performance report qualitatively alongside it for the Google side.

Is AI referral traffic worth tracking if it’s small?

Yes. It’s a small share of visits for most sites today but growing quickly, and it tends to convert at several times the rate of ordinary organic traffic because visitors arrive having already read a summary of your page. Establishing a baseline now lets you show the trend, and the landing-page report reveals which content AI already trusts.

The one thing to do next

Set up the custom channel group today, it’s fifteen minutes, then check the landing-page-by-AI-source report each month to see which pages AI platforms cite. That closes the measurement gap. Earning more of that traffic, the content and signals that get you cited in the first place, is the next job, covered in our AI visibility guide, and the numbers feed straight into your reporting dashboard.

Sources used

The GA4 setup, regex approach, and channel ordering draw on guidance from Orbit Media, Discovered Labs, organikpi, and Swydo, among others. The share of AI traffic misclassified as Direct, the conversion-rate multiples, and platform-share figures are attributed directionally and vary by dataset, so re-verify them, along with the current regex platform list and whether custom channel groups reclassify historical data in your property, before publishing. AI referral behavior changes quickly, so treat the regex as a living pattern to update quarterly.

Scroll to Top