How to Track AI Traffic in Google Analytics 4

AI tools like ChatGPT, Perplexity, and Claude are sending real traffic to websites. Since May 2026, Google Analytics 4 puts clicks from recognized AI assistants in a built-in AI Assistant channel. Visits that arrive without a referrer still land in Direct, and AI Overviews clicks stay in Organic Search.

Here’s how to find AI referral traffic in GA4, starting with the built-in channel and then custom channel groups and regex patterns for more control. You’ll learn which AI platforms send traffic, what the current limitations are, and how to build a reporting workflow around this data. This guide is part of my AEO checklist for WordPress.

GA4’s Built-in AI Assistant Channel

On May 13, 2026, Google added an AI Assistant channel to the Default Channel Group. When the referrer matches a recognized AI assistant, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant).

Google’s channel definitions list ChatGPT, Gemini, DeepSeek, Copilot and Grok as examples. Google’s AI Overviews and AI Mode are excluded, and count as Organic Search.

To see it, open Reports > Acquisition > Traffic acquisition and look for the AI Assistant row. On this blog, the channel picked up chatgpt.com, gemini.google.com, claude.ai, copilot.com and perplexity.ai in the 90 days to November 2026.

Why Some AI Traffic Still Gets Lost in GA4

GA4’s default channel definitions were built for a world of search engines, social platforms, and email campaigns. The AI Assistant channel closes part of that gap, but not all of it.

When a user asks ChatGPT a question and clicks a link in the response, the traffic arrives with a referrer like chatgpt.com. Before May 2026, GA4 lumped it into the generic “Referral” channel alongside Reddit, forums, and random backlinks. AI tools that GA4 doesn’t recognize still end up there.

It gets worse. When users copy a URL from an AI response and paste it into a new browser tab, there’s no referrer at all. GA4 classifies these visits as “Direct.”

AI referrals usually make up a small slice of total traffic, but they’re worth a line of their own in your reports. Without tracking them separately, you can’t see how this channel changes over time.

This matters for anyone investing in Generative Engine Optimization (GEO) or optimizing for AI citations. If you can’t measure AI traffic, you can’t prove the ROI.

Which AI Platforms Send Referral Traffic?

Not all AI tools handle referrals the same way. Here’s a breakdown of the major platforms and how they appear in GA4:

Platform Referrer Domain
ChatGPT chatgpt.com, chat.openai.com
Perplexity perplexity.ai
Google Gemini gemini.google.com
Microsoft Copilot copilot.com, copilot.microsoft.com
Claude claude.ai

ChatGPT sent the most AI Assistant sessions to this blog in the 90 days to November 2026, followed by Gemini and Claude. Your mix will depend on your audience. Copilot visits came in as copilot.com, so older regex patterns that only look for copilot.microsoft.com won’t catch them.

Google AI Overviews is a notable exception. Traffic from AI Overviews and AI Mode shows up as google / organic in GA4, so you cannot separate it from regular Google search traffic there. For impressions, Search Console now has a Generative AI performance report that covers AI Overviews and AI Mode.

Optional: Track AI Traffic with a Custom Channel Group

If you want your own definition of AI traffic, for example to include sources GA4 doesn’t recognize, create a Custom Channel Group in GA4. This adds an “AI” channel alongside your existing channels (Organic Search, Referral, Direct) in all acquisition reports.

The best part: custom channel groups apply retroactively to historical data. You’ll see past AI traffic properly categorized as soon as the channel is created.

Step 1 – Open Channel Groups Settings

Go to Admin (gear icon) in GA4. In the Property column, find Data display and click Channel groups.

Create Custom Channel Group

Create Custom Channel Group

Click Create new channel group. Give it a descriptive name, like “Channels with AI” or “Custom Channels 2026.”

Step 2 – Add the AI Channel

Click Add new channel and name it “AI” or “AI Search.”

Under Channel definition, click Add condition group. Set the first dropdown to Source, set the operator to matches regex, and paste this pattern:

chatgpt\.com|chat\.openai\.com|perplexity|claude\.ai|gemini\.google\.com|copilot\.com|copilot\.microsoft\.com|edgeservices\.bing\.com|deepseek|grok

This regex captures traffic from ChatGPT, Perplexity, Claude, Gemini, Microsoft Copilot, DeepSeek and Grok in a single rule. The dots are escaped so they match a literal dot.

To also catch everything GA4 already labels as AI, add a second condition with OR: Medium exactly matches ai-assistant.

Step 3 – Order Your Channels Correctly

This is the most important step. GA4 evaluates channel rules from top to bottom, and each session goes to the first channel it matches. If “Referral” or GA4’s own “AI Assistant” channel sits above your AI channel, that rule catches the traffic first.

GA4 processes channel rules in order. Place your AI channel above Referral, and above AI Assistant if your group includes it.

Click the Reorder button at the top of the Channel list. Drag your “AI Search” channel above “Referral” and click Apply and then click Save Group.

Step 4 – Validate the Setup

Navigate to Reports > Acquisition > Traffic acquisition. At the top of the data table, switch the dropdown from “Default channel group” to your new custom channel group.

Look for the “AI” channel. If you see sessions there, the setup works. If you see 0 sessions but still find chatgpt.com traffic under Referral or AI Assistant, your channels are out of order, so move your AI channel above both.

Session Primary Channel Group - GA4

Session Primary Channel Group – GA4

Sessions Channels with AI - GA4

Sessions Channels with AI – GA4

How to Verify AI Traffic in GA4 Explorations

If you want to analyze AI traffic without creating a permanent channel group, use GA4 Explorations.

Go to Explore in the left sidebar and create a new Free Form exploration. Add Session source / medium as a dimension and Sessions as a metric.

The quickest option is to filter Session medium for an exact match to ai-assistant. To catch sources GA4 doesn’t recognize, too, filter Session source with “matches regex” and use this pattern:

chatgpt\.com|openai\.com|perplexity|claude\.ai|gemini\.google\.com|copilot\.com|copilot\.microsoft\.com|deepseek|grok

This gives you a focused report showing only AI-referred sessions. Add dimensions like Landing page to see which pages attract AI traffic, or Key events (see our guide to GA4 events) to measure conversions from AI visitors.

Explorations are private by default, but you can share them with your team.

What You Can’t Track – The “Dark AI” Problem

Even with a perfect setup, you won’t capture all AI-driven traffic.

When users copy a URL from ChatGPT or Perplexity and paste it into a new browser tab, the visit arrives without any referrer data. GA4 classifies it as “Direct” and there’s nothing you can do about it.

Mobile apps add another layer. Links opened from AI apps often pass through webviews that strip referrer headers entirely.

The AI traffic you see in GA4 represents a minimum baseline, not the full picture. The actual number of users arriving through AI tools is likely higher than what your reports show.

There’s also the summarization problem. When an AI tool answers a user’s question by summarizing your content without linking to it, no click-through happens at all. That’s a visibility win for your brand, but it won’t show up in analytics.

If you already have Google Analytics 4 installed on your WordPress site, start with the AI Assistant channel in your Traffic acquisition report. Setting up a custom channel group takes a few more minutes, but it lets you choose exactly which sources count as AI.

FAQs

Common questions about AI traffic in GA4:

Can I track Google AI Overviews traffic separately in GA4?
No. Traffic from Google AI Overviews and AI Mode appears as google / organic in GA4, identical to regular search results, and GA4's AI Assistant channel excludes it. For impressions, use the Generative AI performance report in Search Console, which covers AI Overviews and AI Mode.
Does the custom channel group apply to historical data?
Yes. Custom channel groups in GA4 apply retroactively to all historical data. Once you create the channel, you'll immediately see past AI traffic properly categorized.
Why does my AI channel show 0 sessions?
The most common cause is channel ordering. GA4 evaluates rules from top to bottom and assigns each session to the first channel it matches. If your AI channel is listed below Referral or GA4's AI Assistant channel, those rules catch the traffic first. Move your AI channel above them and check again.
What percentage of web traffic comes from AI tools?
It depends on your site and audience. To find your own share, open Traffic acquisition in GA4 and compare the AI Assistant channel's sessions to the total. Treat it as a minimum, since copied-and-pasted links arrive as Direct.
Do I need Google Tag Manager to track AI traffic?
No. The built-in AI Assistant channel needs no setup, and the custom channel group method works entirely within GA4's admin settings. You don't need Google Tag Manager, additional scripts, or any code changes on your site. If you already have GA4 installed, you can set this up in minutes.
Can I track AI traffic if users copy and paste URLs?
No. When users copy a URL from ChatGPT or Perplexity and paste it into a new tab, no referrer data is sent. GA4 records the visit as "Direct" traffic. There is no reliable way to attribute these visits to AI tools.

Summary

GA4 now puts the AI referrals it recognizes into a built-in AI Assistant channel. With a custom channel group and a simple regex pattern, you can pick up the sources GA4 misses and measure how AI tools contribute to your site’s performance.

The setup takes a few minutes and applies to historical data. If you’re investing in GEO or content marketing, this is one of the easiest wins for better analytics. Before you dig into the numbers, make sure AI engines can actually find your content – run a free AI Visibility Audit to check.

Summarize with AI Claude ChatGPT Google AI
Discussion
[  0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!