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. How to close most of that gap.
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 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 and leaves the AI attribution gap open.
Why Doesn't GA4 Track ChatGPT and Perplexity Traffic by Default?
GA4's default channel grouping was built around search engines and ad platforms, with AI assistants added later and only in part. 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.
Proof of Pixel is a marketing and consulting 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. We close this exact gap for clients. 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 and needs no code or tag manager change, only access to the property's channel settings, the same access our marketing team asks for on every new client.
- Open Admin, then Data display, then Channel groups in the GA4 property.
- Create a new custom channel group and add a channel to it named AI Traffic.
- Give the channel a condition where source matches regex chatgpt|openai|perplexity|gemini|copilot|claude.
- Add a second condition group where medium exactly matches ai-assistant, so every session GA4 already tags as an AI assistant lands in the same channel.
- Move the AI Traffic channel above Referral and Organic Search in the channel order, so it takes priority.
- Save the group and select it as the property's primary channel group in Admin, so standard reports use it from then on.
- 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 miss most of its sessions if the AI channel sits below Referral in the channel order.
- 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 channel sits above Referral in the channel order, or referral sessions from AI tools will never reach it.
- Pull a sample of converting Direct sessions and check the landing page, since AI citations tend to land on the exact answer page.
Does the New GA4 Hostname Filter Affect AI Traffic Tracking?
No, the hostname filter has no effect on how AI traffic is attributed. 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.
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 the channel group sets 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 whether they are seeing brand search.
Proof of Pixel's position: an AI traffic report belongs on the same dashboard as Google Ads spend, because a channel you cannot see is a channel you cannot fund.
Set Up the Channel Before Your Next Traffic Review
Open GA4's channel group settings this week, add the AI Traffic channel above Referral, 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 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 Referral in your channel order so it 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.
Keep reading
Where this fits
- Marketing: how POP does this work
- Shopify Ecommerce: case study
- Decrypting Meta Ads: case study
- Meta says 500. Shopify says 350: free field guide
- SEO vs GEO: comparison
- Tag gateway vs server-side GTM: comparison