How to Track ChatGPT and AI Traffic in GA4

How to Track ChatGPT and AI Traffic in GA4

GA4's new AI Assistant channel misses Perplexity clicks and AI Overview traffic, and most AI-sourced visits still log as Direct. Here is the fix for that.

By Yannis Spanenburg · · 7 min read

A visitor lands on your booking page from a ChatGPT citation, converts, and GA4 logs the session as Direct traffic with no source at all. Most GA4 properties are still blind to where their AI traffic actually comes from.

What Is AI Traffic in GA4?

AI traffic in GA4 is any session that starts with a click inside an AI assistant or an AI-generated answer, such as a ChatGPT citation, a Perplexity answer, a Gemini response, or a Google AI Overview. GA4 only auto-tags a subset of these sources, and a large share arrive with no referrer at all, so they get logged as Direct or folded into ordinary Organic Search.

Key Takeaways

  • GA4 added a native AI Assistant channel on May 13, 2026 that auto-recognizes ChatGPT, Gemini and Claude, but Perplexity still lands in Referral and AI Overview clicks still count as Organic Search.
  • A large share of AI referral traffic carries no referrer header at all, because ChatGPT's mobile app and Perplexity's in-app browser strip it, so GA4 logs the session as Direct.
  • A custom channel group with source and medium rules is still the only way to see ChatGPT, Perplexity, Gemini and Copilot traffic in one report.
  • Search demand for how to track AI traffic in GA4 has been rising through 2026, per Semrush keyword data, matching how often this now comes up in client audits.
  • Google's new hostname Include filter, rolled out the week of September 21, 2026, cleans up spam hostnames, it does not close the AI attribution gap.

Why Doesn't GA4 Track ChatGPT and Perplexity Traffic by Default?

GA4's default channel grouping was built for search engines and ad platforms, not AI assistants. A click without automatic tagging lands wherever its source and medium match an existing rule, usually Referral with a source like chatgpt.com or perplexity.ai, mixed in with every other site that links to you.

This is the exact gap we close for clients at Proof of Pixel, a web and marketing agency for businesses that live on enquiries and orders, building the website, the tracking and the follow-up as one system, with offices in Dubai, New York, London, Antwerp and Malaysia. A business asking its agency where its leads come from should not get Direct as the answer.

We've covered what AI Overviews do to click-through rates and whether blocking crawlers like GPTBot helps or hurts visibility; this is the tracking layer under both.

What Changed With GA4's Native AI Assistant Channel?

Google Analytics added a built-in AI Assistant channel to GA4 on May 13, 2026, recognizing sources such as ChatGPT, Gemini and Claude with no manual setup. It is not complete: Perplexity still lands in Referral, and AI Overview clicks still count as ordinary Organic Search, a gap digitalapplied.com flagged as easy to miss since the channel shipped with no toggle to switch on.

Why Does AI Traffic Show Up as Direct Traffic in GA4?

A large share of AI-driven visits never carry a referrer header, so GA4 has nothing to classify them by and defaults to Direct. ChatGPT's mobile app and Perplexity's in-app browser are known to strip referrer data when a user taps an external link, a pattern Discovered Labs has documented in detail. No channel rule, however well built, can classify a signal that never arrives.

How to Build a Custom AI Traffic Channel in GA4

Building a custom channel closes most of the gap GA4's native grouping leaves open. It takes about fifteen minutes in GA4's admin panel, no code or tag manager change needed, just access to the property's channel settings, the same access our marketing team asks for on every new client.

  1. Open Admin, then Data display, then Channel groups in the GA4 property.
  2. Create a new custom channel group and name it AI Traffic.
  3. Add a rule matching source contains chatgpt, openai, perplexity, gemini, copilot or claude.
  4. Add a second rule matching referrer contains chatgpt.com, chat.openai.com or perplexity.ai to catch sessions the default grouping misses.
  5. Move the AI Traffic rule above Direct and Organic Search in the rule order, so it takes priority.
  6. Save the channel group and apply it to your main reporting view.
  7. Cross-check the results against Search Console and CRM lead source two weeks later, since a portion of AI clicks will still land as unclassified Direct no rule can recover.

What Should You Check Before Trusting the Numbers?

Before presenting AI traffic numbers to anyone, check that the rule order, the native channel, and your Direct traffic pattern all agree. A channel group that looks correct in the settings can still report zero sessions if a rule sits below Direct in the priority list.

  • Confirm the native AI Assistant channel is active, it rolled out automatically to most GA4 accounts after May 2026.
  • Check whether Perplexity clicks are landing in Referral instead of AI Assistant, since Perplexity is still excluded from the native channel.
  • Watch for a spike in Direct traffic to specific high-value pages with no matching ad spend or email send that week.
  • Verify the custom AI Traffic rule sits above Direct in the priority order, or it will never fire.
  • Pull a sample of converting Direct sessions and check the landing page, AI citations tend to land on the exact answer page, not the homepage.

Does the New GA4 Hostname Filter Affect AI Traffic Tracking?

No. The hostname Include filter Google rolled out the week of September 21, 2026 lets you allowlist your own domains so spam hits from spoofed hostnames never reach your reports, but it filters junk, not attribution.

As ppc.land reported when the feature shipped, the filter now works as an allowlist rather than the old block-by-block exclude list, which clears ghost spam much faster. It still leaves the AI channel problem untouched, since events sent straight to GA4's Measurement Protocol endpoint are exempt from Include filters, and a channel group, not a data filter, decides where a real AI session gets counted.

How Do You Attribute a Booking or Sale Back to an AI Citation?

You attribute it by cross-referencing your custom AI channel against Search Console's AI Overview impression data, your CRM's lead source field, and a direct question on your booking or checkout form. No single tool closes this loop alone, since a session GA4 logs as Direct can still be the same visitor Search Console shows got an AI Overview impression that day.

In our client work across dental practices and Shopify stores we keep seeing the same pattern: a spike in Direct sessions on one service page, converting well above the rest of the site, with no matching ad spend or email send that week. That is almost always an AI citation, and without the channel a business owner cannot tell whether their content is working or they are just seeing brand search.

Proof of Pixel's position: a channel you cannot see is a channel you cannot fund, so an AI traffic report belongs on the same dashboard as Google Ads spend, not filed under analytics housekeeping.

Set Up the Channel Before Your Next Traffic Review

Open GA4's channel group settings this week, add the AI Traffic rule above Direct, and give it two weeks to collect data before drawing conclusions. That is enough time to see whether the spike in Direct traffic to your key pages was AI all along, or something else worth chasing. If the numbers raise more questions than they answer, Proof of Pixel runs a free audit that includes a read on where your real traffic is actually coming from.

Frequently asked questions

How do I track ChatGPT traffic in GA4?

Build a custom channel group in GA4's Admin under Data display, with rules matching source values like chatgpt.com, chat.openai.com and openai. GA4's native AI Assistant channel already catches some ChatGPT sessions automatically since May 2026, but a custom rule catches the ones that slip past it. Place the rule above Direct in your channel priority order so it actually fires.

How do I track AI referral traffic in GA4?

Create a custom channel group with source and medium rules covering ChatGPT, Perplexity, Gemini, Claude and Copilot, since GA4's built-in grouping only auto-tags a subset of these. Cross-check the result against Search Console's AI Overview impression data, because a meaningful share of AI clicks arrive with no referrer and cannot be recovered by any channel rule. Review the rule monthly as new AI platforms enter the market.

How do I track AI Overview traffic in GA4?

You cannot isolate it directly inside GA4, since clicks from Google's AI Overviews are still counted as ordinary Organic Search traffic rather than a separate AI channel. The closest workaround is comparing Search Console's AI Overview impression and click data against a landing page's GA4 organic sessions for the same date range. Google has not said whether AI Overviews will get their own GA4 channel.

Does GA4 automatically separate AI traffic from organic search?

Only partially. GA4's native AI Assistant channel, added May 13, 2026, automatically separates ChatGPT, Gemini and Claude sessions when a referrer is present, but Perplexity traffic and AI Overview clicks still fall into Referral and Organic Search respectively. A custom channel group is required to see the full picture in one place.

Why does ChatGPT traffic show up as direct traffic in Google Analytics?

ChatGPT's mobile app and Perplexity's in-app browser frequently strip the referrer header when a user taps an external link, and GA4 has no way to classify a session it cannot identify. Without a referrer, the session defaults to Direct regardless of any channel rule you have built. Watching for unexplained spikes in Direct sessions to specific pages is the most reliable way to spot this pattern.

For businesses that live on enquiries

Turn clicksinto customers.

Practices, agencies, builders, studios, firms and shops. We build the system that gets you found, gets you chosen, and follows up on every enquiry, so the next customer doesn't go to whoever replied first.

Book a call ↗