Technical SEO

How to Track AI Referral Traffic in GA4: ChatGPT, Perplexity & Claude

Someone discovers your business through ChatGPT, clicks a link, and lands on your website. You'd expect Google Analytics 4 (GA4) to show where that visitor came from. Sometimes it does. Sometimes that same visit appears under Direct, making it difficult to tell whether AI assistants are actually sending people to your site. The good news is that GA4 now has a built-in way to measure traffic from AI assistants. You can also create custom reporting rules for sources that aren't classified the way you expect. Here's how to track AI referral traffic in GA4, understand what the numbers mean, and measure whether those visits are turning into leads.

Vivek Kishore Verma

Vivek Kishore Verma

Published Oct 30, 2026Updated Nov 24, 20269 min read

How to Track AI Referral Traffic in GA4: ChatGPT, Perplexity & Claude

Key takeaways

  • GA4 13 May 2026 made tracking ChatGPT, Gemini and Claude visits easier.
  • Start with the Traffic acquisition report before creating your custom tracking rules.
  • AGI/Claude etc will probably need more testing that GA4 gets their traffic into the right buckets.
  • ChatGPT Referral Tracking was compromised between October 8, 2026 and October 15, 2026. Some visits were still tracked as Direct.
  • The report considers only referral sessions impact. Not all citations, mentions of brands, or visits without attribution will be tracked and turned into sales.

Where AI referral traffic lands in GA4 today

On 13 May 2026 Google added an AI Assistant channel to GA4's default channel group. When GA4 recognises the referrer of a visit as an AI assistant, it sets the medium to ai-assistant, the campaign to (ai-assistant), and files the session under AI Assistant. Google's channel definitions list ChatGPT, Gemini, DeepSeek, Microsoft Copilot and Grok, and the release notes also name Claude  (Google's default channel group definitions). Google's own AI Overviews and AI Mode are not part of it: clicks from those are reported under Organic Search.

In Adviora's property, the AI Assistant channel showed this for 17 September to 14 October 2026:

Ai Refferals in GA4

All 200+ sessions came from chatgpt.com, recorded as chatgpt.com / ai-assistant. They do show that the built-in channel was already picking up ChatGPT visits without any custom setup, which is why it is the first place to look.

Step 1. Read the built-in AI Assistant channel

  1. You don't need to create a custom report to get started.
  2. Open your Google Analytics 4 property.
  3. Select Reports → Acquisition → Traffic acquisition.
  4. Set the primary dimension to Session default channel group.
  5. Look for AI Assistant in the channel list.
  6. Add Session source / medium as a secondary dimension to identify individual traffic sources.
  7. Set your date range to the last 28 days and compare it with the previous period.

This gives you a starting view of how much identifiable traffic AI assistants have sent to your website.

Step 2. Fallback: a custom channel group for what the default misses

GA4 assigns a channel using source and medium together, not source alone. As a result, one assistant can be split across several channels: chatgpt.com / ai-assistant lands in AI Assistant, while a visit with the same source but a different medium can land in Referral or Unassigned. Perplexity visits, for example, may show as Referral if GA4 does not classify them as an assistant. A custom channel group that matches on source only brings them back together. Look for these sources first:

AssistantSource to look for
ChatGPTchatgpt.com (older visits: chat.openai.com)
Perplexityperplexity.ai
Claudeclaude.ai
Geminigemini.google.com
Microsoft Copilotcopilot.microsoft.com
DeepSeekchat.deepseek.com
Mistralchat.mistral.ai

How to set one up

  1. In GA4, navigate to Admin → Data display → Channel groups.
  2. Create a new channel group based on the default group.
  3. Name it something recognizable, such as AI Traffic – Custom.
  4. Add a channel called AI Assistants.
  5. Create a condition using Source and the matches regex operator.
  6. Enter your tested AI source-matching expression.
  7. Move the new channel above Referral in the channel order.
  8. Save the group and review it in Traffic acquisition.

A starting expression, to test against the source values your own property actually receives before you rely on it:

^(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|chat\.mistral\.ai)$

It matches exact hostnames rather than words such as "ai" or "gpt", which would pull unrelated visits into the report. Custom channel groups also apply to historical data, but they cannot recover visits that arrived with no source information at all (Google's guide to custom channel groups).

image.png

OpenAI documents that ChatGPT adds utm_source=chatgpt.com to the links it shows. That tag gives GA4 a source even when the browser sends no referrer, but it does not guarantee the visit enters the built-in AI Assistant channel, which depends on the ai-assistant medium. That is one more reason the custom rule in Step 2 matches on source.

Tag the external links you control, such as email campaigns, consistently, and keep the parameters through redirects. Adviora's own fix list includes adding UTM tags to its email campaigns. Never add campaign tags to links between pages on your own site, because GA4 will start a new session with the wrong source.

The 8–15 October 2026 tracking gap

From about 8 October 2026, many ChatGPT links stopped carrying the utm_source tag and opened without a referrer, so analytics tools filed those clicks as Direct. Adobe's Cedric Huesler compared roughly 500 pages where ChatGPT had been a meaningful source and found ChatGPT visits falling while Direct rose on many of the same pages. He reported that OpenAI confirmed a bug on 14 October and that a fix rolled out on 15 October (Search Engine Land; Webflow).

If your ChatGPT numbers dipped that week:

  1. Compare 8–15 October with the week before, for ChatGPT and Direct sessions.

  2. Check the landing pages that usually receive ChatGPT visits for a matching rise in Direct.

  3. Add a GA4 annotation and a note in your report for the gap.

A dip in ChatGPT matched by a rise in Direct is worth noting, but it does not prove every missing visit moved there, so never report estimated visits as measured ChatGPT referrals.

Step 4. Connect AI visits to lead events

A visit is useful; an audit request or a booked meeting tells you more. In Traffic acquisition, add the Key events metric, choose the event you care about, and compare the AI Assistant row with Organic Search and Referral on sessions, engaged sessions and session key event rate. In Adviora's property the relevant events are Sign_Up, Audit_Report_Email_Verified and generate_lead; use the events your own property actually records.

Check what your key events measure before you call them leads. Adviora's AI Assistant row showed key events, but a wider audit of the same property found that about half of all key events were pricing-page views. A pricing view shows interest; it is not an enquiry. So those two key events are not reported as leads. GA4 cannot tell you whether a lead is qualified either; that needs your CRM or another qualification step.

What referral numbers cannot tell you

Referral sessions are a floor. Three things sit outside them.

Answers without clicks. When an assistant names your brand but the reader does not click, GA4 records nothing. In Adviora's October review, most AI answers about its category cited third-party listicles rather than linking to vendors, so a brand can be shaping decisions with no referral rows at all. Measuring that needs a separate check of what AI answers say about you, as covered in our guide to running an AI visibility audit.

Fetches are not sessions. Server and CDN logs may show requests from ChatGPT-User, Claude-User or Perplexity-User. Those are systems fetching your page, usually without running your analytics code, so they never become GA4 sessions. Report them separately and never add them to session totals.

Later visits under other channels. A buyer who finds you in Claude and searches for your name next week arrives as Organic Search or Direct. Add "How did you first hear about us?" to your lead forms, with "ChatGPT or another AI assistant" as an option, and ask the same question on sales calls. Self-reported answers are imperfect, but they are evidence GA4 cannot provide.

The AI referral report template

Use the same layout every month so changes are easy to spot. This is the ai search analytics view most teams need first:

ChannelSource / mediumSessionsEngaged sessionsKey eventsKey event rateDate rangevs previous 28 days
AI Assistantchatgpt.com / ai-assistant322 17 Sep–14 Oct 2026 
AI Assistant or Referralperplexity.ai / …      
AI Assistant or Referralclaude.ai / …      
AI Assistantgemini.google.com / …      
AI Assistantcopilot.microsoft.com / …      

Below the table, add four notes kept apart from the session totals: unexplained changes in Direct traffic, known tracking gaps or GA4 setup changes, self-reported AI discovery from forms and calls, and brand mentions or citations found in AI answers.

Third, measure real business outcomes

Review your key events. If pricing-page views, ordinary interactions and lead submissions are all treated as equivalent conversions, clean up the measurement approach before reporting AI-generated leads. Once those three areas are working, you can expand into custom channel reporting, AI visibility monitoring and self-reported attribution.

Final thoughts What to fix first

AI referral traffic is something to keep an eye on, but tread carefully. The first few metrics are far easier with the new GA4 AI Assistant channel. Here's how you can pinpoint visits, compare between sources of traffic, examine landing pages, and connect traffic to actions.

But what it can't show is all that recommendation that affected everyone just before they arrived. So now you can design a good AI measurement system around referral traffic and lead quality, your self-reported discovery, and evidence of how your brand appears in AI answers.

So that's how we do it at Adviora-to understand if AI helpers are actually sending customers our way, and, more critically, where we can improve upon our share of the market. 

Curious where your brand appears in AI replies? Receive a complimentary AI visibility audit from Adviora. Sample AI assistant queries are analyzed in this manner across a handful of ChatGPT, Gemini, DeepSeek and Perplexity responses.

All the opportunities will then be ranked in order of how likely they are to be successful, from the most to the least likely.

Frequently asked questions

GA4 can automatically classify recognized ChatGPT referrals under its built-in AI Assistant channel. However, tracking depends on the attribution information available when the visit occurs. Some clicks may appear in another channel or lack identifiable source information.

Open Traffic acquisition and inspect Session source / medium for perplexity.ai or other verified Perplexity source values. If you find those visits under Referral, you can create a custom channel group to categorize them as AI traffic.

Yes, when GA4 receives identifiable traffic-source information. Check for Claude-related sources such as claude.ai and confirm whether they're classified under AI Assistant or another channel. A custom channel group can help organize recognized traffic.

A visit can appear as Direct when GA4 receives neither a usable referrer nor identifiable campaign information. This affected some ChatGPT clicks during the October 2026 UTM-tagging disruption. Tracking restrictions and other technical issues can also contribute to unattributed traffic.

Google states that traffic from AI Overviews and AI Mode remains in Organic Search rather than its AI Assistant channel. GA4's standard channel reporting doesn't automatically provide a separate, complete AI Overview referral count.

No. GA4 measures website and app activity, not every time an AI assistant mentions your brand. To understand visibility without clicks, you need a separate process for monitoring AI responses, citations and recommendations.

Vivek Kishore Verma

Vivek Kishore Verma

CEO

CEO | Education & Tech Platforms | Institution Builder | AI for Learning & Governance | Driving Scalable Education Solutions

More from Vivek Kishore Verma
More in Technical SEO