How to Track AI Referral Traffic in GA4 and Tie It to Pipeline
AI assistants send converting buyers your way, but most of it hides in Direct traffic. Here is how to track ChatGPT, Perplexity, Gemini, and Claude referrals in GA4 and connect them to real pipeline.

Key Highlights
- AI referral traffic is the visits ChatGPT, Perplexity, Gemini, and Claude send to your site.
- Track it in GA4 with a custom channel group, because Google's native AI Assistant channel misses Perplexity and Copilot.
- Recover the 35 to 70 percent that lands in Direct with a self-reported "how did you hear about us" field, then match converting sessions to opportunities in your CRM.
You already have AI-sourced pipeline. You just cannot see it yet. Buyers are asking ChatGPT and Perplexity for a shortlist in your category, clicking through to your site, and sometimes booking a demo the same week. But the referrer header is stripped on most of those clicks, so the session lands in Direct, and the deal gets credited to "brand" or "unknown." Finance asks what AI visibility is worth, and you have no number to give them.
This guide fixes that. It is the hands-on measurement setup that sits underneath the strategy in our piece on how to attribute pipeline and ROI from AI-driven discovery. We will cover what GA4 does and does not capture as of mid-2026, how to build a channel group that sees every major engine, how to recover the traffic that hides in Direct, and how to tie a converting session to a closed deal so you can report a real revenue figure.
Why AI referral traffic is so hard to see
Three things break normal tracking at the same time.
First, referrers get dropped. When someone clicks a link inside a ChatGPT answer, the browser often does not pass a referrer header, so GA4 has no signal that the visit came from an AI tool. Depending on the engine and the client, somewhere between 35 and 70 percent of AI referral sessions arrive with no referrer and get bucketed as Direct. That is not a rounding error. That is most of your AI traffic.
Second, the referrers that do come through are scattered across many hostnames. ChatGPT alone shows up as chatgpt.com, chat.openai.com, and openai.com. Add Perplexity, Gemini, Claude, Copilot, Grok, DeepSeek, and you have a dozen domains that GA4 files under generic Referral unless you tell it otherwise.
Third, there is no backfill. GA4 processes data forward only. Whatever setup you build starts counting from the day you turn it on and will not reconstruct the months of AI traffic you have already earned. That alone is a reason to stop reading and set this up today.
The upshot is that teams who wire up AI referral tracking for the first time almost always discover conversions they have been earning for months and crediting to the wrong channel. The traffic was there. The measurement was not.
Step 1: Turn on GA4's native AI Assistant channel
As of May 2026, GA4 automatically classifies traffic from recognized AI assistants under a native channel called AI Assistant. Google has named ChatGPT, Gemini, and Claude as recognized platforms. To see it, open Reports, then Acquisition, then Traffic acquisition, and set the primary dimension to Session default channel group. If you have had AI traffic since the channel went live, AI Assistant appears as its own row.
Treat this as the floor, not the finish line. The native channel has two gaps that matter. It does not capture Perplexity or Copilot, both of which stay buried in Referral. And it only sees sessions that carried a referrer in the first place, so it never touches the Direct problem. Useful, but partial. You need a custom channel group to close the rest.
Step 2: Build a custom channel group that catches every engine
A custom channel group lets you define your own rules and, crucially, order them so they fire before GA4's generic Referral rule. Google's own channel groups documentation explains how the ordering evaluation works, which is the detail most setups get wrong. In GA4, go to Admin, then Channel groups, create a new group, and add a channel named AI Traffic. Set the condition to match the session source against a regular expression covering every engine you care about:
chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|bing\.com/chat|deepseek\.com|grok\.com|meta\.ai|you\.com
Two details make or break this. Drag the AI Traffic channel above Referral in the ordering, because GA4 evaluates rules top down and stops at the first match. If Referral fires first, your AI sessions stay misclassified. And keep the regex updated as new engines gain share, since the list above will not be the list a year from now.
Here is what each layer of tracking actually covers, so you know where the holes are before you report a number:
| Method | Captures referred AI sessions | Captures Perplexity and Copilot | Recovers no-referrer Direct traffic | Ties to a specific person |
|---|---|---|---|---|
| GA4 native AI Assistant channel | Yes | No | No | No |
| Custom channel group with regex | Yes | Yes | No | No |
| Self-reported "how did you hear about us" | Partial | Yes | Yes | Yes, on form fill |
| CRM opportunity match | Only after a form fill | Yes | Yes | Yes |
No single row is enough. The reliable setup stacks all four so the weaknesses cancel out.
Step 3: Recover the traffic hiding in Direct
The channel group solves classification for sessions that carried a referrer. It does nothing for the 35 to 70 percent that arrived clean and landed in Direct. The most reliable fix is also the least technical: add a "how did you hear about us" field to your demo and contact forms, and include an explicit option for AI Assistant, with ChatGPT, Perplexity, and Claude named in parentheses so buyers recognize it.
This has become one of the strongest signals available, precisely because it does not depend on a referrer header surviving the click. Independent analyses of AI-sourced pipeline, such as Discovered Labs on how AI citations drive qualified leads and revenue, consistently find that self-reported attribution surfaces conversions the analytics stack alone never credits. When a buyer types or selects "ChatGPT" on your demo form, you have a first-party, person-level record that no analytics tool can strip. Pipe that field into your CRM as a structured value, not a free-text box, so you can filter and total it later.
Self-reported attribution and GA4 answer different questions. GA4 tells you how many sessions and what they did on-site. The form field tells you which real, named opportunities credit an AI assistant for the discovery. You want both, because the session data gives you volume and the form data gives you revenue you can defend.
Step 4: Connect sessions to pipeline
Now stitch the layers into a number a CFO will accept. The chain looks like this:
- Volume. From your custom channel group, pull AI Traffic sessions and their landing pages over a set window. This tells you which pages AI engines are actually sending clicks to, which is the same set of pages you should be reinforcing.
- Engagement. Compare AI Traffic behavior against your other channels. AI-sourced visitors tend to arrive further along in their research, because the assistant already did the shortlisting, so watch demo-page views and pricing-page visits rather than raw session counts.
- Named conversions. Filter CRM opportunities where the "how did you hear about us" field equals AI Assistant. Total their pipeline value and, over a full sales cycle, their closed-won revenue.
- Reconciliation. Cross-check the CRM total against GA4 conversion events on AI Traffic landing pages. The two will not match exactly, and that gap is your Direct-traffic dark zone. The self-reported field is what lets you size it instead of guessing.
Report the CRM-sourced number as your conservative floor and the reconciled estimate as your realistic figure. That framing survives scrutiny because you are showing your work, not a single unaudited stat. For the wider view of how this rolls up alongside share-of-voice metrics, pair it with how to measure your brand's AI citation share across LLMs so leadership sees both the visibility input and the revenue output.
Step 5: Feed the data back into what you publish
Measurement is only half the return. The AI Traffic landing-page report tells you exactly which pages already earn AI clicks, which is the highest-signal list you will ever get for where to double down. Structure those pages to be the answer an engine quotes: a tight answer capsule up top, question-shaped headings, a comparison table, and clean schema. That is the core of how OnlyAEO works, and it is why the same page can start earning citations across several engines at once.
To make sure the engines can even reach and parse your best answers, keep your machine-readable surface clean. Publish a structured feed of your canonical answers with the AI Feed Engine, and if you have not set up a directory file for AI crawlers yet, start with the free llms.txt generator. None of this earns citations on its own, but it removes the friction that keeps good content from being ingested.
The proof that the loop works is in the numbers a client can point to. Our FastTrackr AI case study walks through how tracked AI visibility turned into measurable demand, which is the same loop this guide sets up on your side. For a wider set of documented outcomes across companies, HubSpot has collected a useful set of answer engine optimization case studies worth reviewing alongside your own numbers.
What good looks like after 90 days
By the end of a quarter you should have: a custom channel group cleanly separating AI Traffic from Referral and Direct, a self-reported field feeding structured values into your CRM, a monthly total of AI-sourced pipeline you can defend line by line, and a shortlist of landing pages to reinforce because they already pull clicks. That is enough to move the conversation from "we think AI matters" to "here is the pipeline it produced last month, and here is what we are doing to grow it."
If you want the engine that produces and structures the answers those engines cite, and reports the visibility behind the traffic, see OnlyAEO pricing.
Get your free AI visibility audit
OnlyAEO measures where you get cited across ChatGPT, Claude, Gemini, and Perplexity, finds the gaps versus competitors, and builds the answer-first content that earns the click. Turn AI referral traffic into a number you can report.
Explore OnlyAEOFAQ
Frequently Asked Questions
Why does AI traffic show up as Direct in GA4?+
Does GA4's native AI Assistant channel capture everything?+
How do I connect an AI referral to actual revenue?+
Can I recover the AI traffic I had before setting this up?+
Is AI traffic worth tracking if the volume is small?+

OnlyAEO
Expert insights on Answer Engine Optimization and AI visibility strategy.
Related Articles

Your Client's AI Mentions Dropped. Here Is How to Diagnose It Before the Call
A drop in AI citations is usually noise, a platform-wide event, or a competitor, and rarely your work. Here is the five-branch diagnostic agencies can run in 45 minutes, plus what to say on the client call.
Read article
How Long Does AEO Take to Work? A Timeline by Engine
AEO does not run on one clock. Here is the realistic timeline from publish to crawl to first citation to stable share, broken out by ChatGPT, Perplexity, Gemini, and Claude, plus what to measure while you wait.
Read article
What an AI-Sourced Lead Is Actually Worth (and Why the Studies Disagree)
Published studies put AI referral conversion anywhere from 0.3x to 23x organic. Here is why they disagree, the four-number formula for your own value per AI-sourced session, and how to use it without overclaiming.
Read article