Skip to content

Analytics

How to Track AI Traffic in GA4: Channels, Regex and Reports

GA4 now has an AI Assistant channel, but it misses tagged visits, AI Overviews and dark traffic. Here is the exact setup, regex and report we use.

Hands typing on a laptop showing the Google Analytics 4 Analysis Hub with exploration, funnel and path analysis templatesHow to Track AI Traffic in GA4: Channels, Regex and Reports

To track AI traffic in GA4, use the built-in AI Assistant channel Google added in May 2026, then add a custom channel group with a source regex. That catches ChatGPT, Gemini, Claude, Perplexity and Copilot visits the default rules miss. Clicks from Google AI Overviews and AI Mode still count as Organic Search.

Key Takeaways

  • Since May 13, 2026, GA4 gives visits from recognized AI assistants the medium "ai-assistant" and groups them in a new AI Assistant channel. You do not have to set anything up.
  • The built-in channel only works when the assistant passes a referrer. A tagged link with no referrer, such as utm_source=chatgpt.com on its own, ends up in Unassigned.
  • A custom channel group with one regex on session source catches both cases. Google applies it to your past data too, so you can compare this year with last year.
  • Google files clicks from AI Overviews and AI Mode under Organic Search. Search Console's generative AI report shows impressions for those features, not clicks.
  • GA4 only counts visits. Mentions with no click, assistant fetches and visits with stripped referrers need server logs and AI visibility tracking.

This guide is for marketing leaders and analysts who need a number for AI traffic they can defend in a board review. Our SEO and GEO team sets up GA4 and Search Console for Cyberdunes clients, and we build AI visibility tracking into Apex®, the AI-native digital experience platform (DXP). Every rule below comes from Google's documentation as it stood in October 2026.

What Counts as AI Traffic in GA4?

AI traffic in GA4 means sessions that started from an answer in an AI assistant or an AI search feature. It comes in four kinds, and GA4 files each one in a different place.

  • Assistant referrals with a referrer. A buyer clicks a link in ChatGPT, Gemini, Claude, Perplexity or Copilot, and the browser passes the assistant's domain.
  • Tagged links without a referrer. The link carries a UTM tag, but the referrer is stripped on the way.
  • Google AI features. A click from an AI Overview or from AI Mode on Google Search.
  • Dark AI traffic. The buyer opens a link in an app that sends no referrer, pastes a URL or searches your brand name later.
Table showing four kinds of AI visit, what GA4 receives for each, the default channel it lands in (AI Assistant, Unassigned, Organic Search or Direct) and how to measure it
Only the first kind lands in the AI Assistant channel by default. Each of the other three needs a different measure.

If you have not set up GA4 properly yet, start with our step-by-step Google Analytics 4 setup guide. Key events and a linked Search Console property are both needed below.

Does GA4 Track AI Traffic Automatically?

Yes, partly. Since May 13, 2026, GA4 gives a session the medium "ai-assistant" when the referrer matches a recognized AI assistant. It groups those sessions in a new AI Assistant channel and sets the campaign to "(ai-assistant)".

Google's Analytics release notes say the feature gives "a dedicated way to measure and analyze traffic originating from popular AI assistants." The default channel group definitions describe the channel as visits "from sources like ChatGPT, Gemini, Deepseek, Copilot, or Grok" and say it excludes Google's AI Overviews and AI Mode. Google has not published the full list of assistants it recognizes on that page.

A June 11, 2026 update added a Source Group dimension. According to the same release notes, it includes built-in grouping for AI traffic sources such as ChatGPT and Perplexity and applies to historical data.

The built-in channel still leaves three gaps:

  1. It relies on the referrer. If a visit arrives with a UTM tag and no referrer, the medium stays empty. Google's Referral rule needs the medium to be "referral", "app" or "link", so the session falls through to Unassigned.
  2. It has no history. Use a custom channel group to compare against the period before May 2026.
  3. You cannot edit it. Default channel definitions are fixed. If a new assistant starts sending traffic before Google adds it to the list, you have to catch it yourself.

The first gap is a real risk. In October 2026, Search Engine Roundtable reported that ChatGPT links had briefly stopped carrying utm_source=chatgpt.com and were opening with "noopener,noreferrer". Adobe's Cedric Huesler was quoted as saying "There's no tag and no referrer, so your analytics files the visit under direct." He later reported that the tag was back and called it a bug. The lesson: never rely on a single signal.

Which Referrers Do AI Assistants Send?

Most assistants show up in GA4 as their own domain in the session source. The table below uses the open referrer list that Matomo maintains on GitHub, checked in October 2026. Compare it with what your own Traffic acquisition report shows.

AssistantSession source to matchNotes
ChatGPTchatgpt.com, chat.openai.comChatGPT also adds utm_source=chatgpt.com to links, so the source can be chatgpt.com even when no referrer is passed
Geminigemini.google.com (formerly bard.google.com)Different from Google Search: AI Overviews and AI Mode clicks show as google / organic
Claudeclaude.aiReferrer only
Perplexityperplexity.aiMatch subdomains too, such as www.perplexity.ai
Microsoft Copilotcopilot.microsoft.comReferrer only
DeepSeek, Grok, Meta AI, Le Chat, Qwenchat.deepseek.com, grok.com, meta.ai, chat.mistral.ai, chat.qwen.aiGrok inside X sends x.com, which you cannot separate from X social traffic
Othersyou.com, duck.ai, notebooklm.google.comLow volume for most sites, but worth catching

How to Track AI Traffic in GA4: Step by Step

Build one custom channel group with an "AI Assistants" channel at the top. Give it two conditions: the medium Google assigns and a regex on session source. The whole job takes about 20 minutes and needs Editor access to the property.

  1. Check the built-in channel first. Open Reports, Acquisition, Traffic acquisition and look for the AI Assistant row in the session default channel group. If it has data, Google's rule is working on your property.
  2. Create the group. Go to Admin, Data display, Channel groups. Copy the default channel group so all the standard channels come with it, then name the copy "Channels with AI".
  3. Add a channel called "AI Assistants". Condition 1: Session medium exactly matches ai-assistant. Add an OR condition 2: Session source matches regex, using the pattern below.
  4. Move it to the top. Google's custom channel group documentation says "Traffic is included in the first channel whose definition it matches." The channel must sit above Referral, or Referral will take these sessions. We put it first so no other rule can claim them.
  5. Save and apply. Standard properties can have 2 custom channel groups and 360 properties can have 5. Google says custom groups "can be applied to your reports retroactively", except in audiences.
  6. Verify. In Traffic acquisition, switch the primary dimension to your new group and add Session source as a secondary dimension. Every row in AI Assistants should be a domain you expect.
Mock-up of a GA4 custom channel group with AI Assistants placed first above the copied default channels and Referral, with conditions for session medium ai-assistant or a session source regex
Put the AI channel above Referral. Otherwise Referral matches these sessions first and the AI channel stays empty.

The Regex for AI Assistant Sources

Paste this into the Session source "matches regex" condition. Google's regex documentation says Analytics uses full match by default. That is why the pattern starts with an optional subdomain group and has anchors at both ends.

^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|claude\.ai|chat\.deepseek\.com|grok\.com|meta\.ai|chat\.mistral\.ai|chat\.qwen\.ai|you\.com|duck\.ai|notebooklm\.google\.com)$

Three rules keep it accurate. Escape every dot. Do not add a bare openai or google, or you will pull in unrelated traffic. Each month, look at new rows in Referral and add any assistant that appears.

How Do You Report on AI Traffic in GA4?

Use one exploration and one landing page view, and judge AI traffic on key events per session, not on volume. Key events are GA4's name for the actions you mark as important. Google's key events help page explains that events once marked as conversions are "now called 'key events.'"

  1. Exploration. Go to Explore, Free form. Rows: your custom channel group, then Session source. Values: Sessions, Engaged sessions, Key events, Session key event rate and Total revenue. Filter to the AI Assistants channel for a close-up, or leave it unfiltered to compare with Organic Search.
  2. Landing pages. In the same exploration, add Landing page + query string as a row under AI Assistants. These are the pages AI engines send people to, and they are your best candidates to improve. Our explainer on how LLMs choose sources to cite explains why some pages get picked over others.
  3. Key events. Break key events out by event name, such as form submit, demo request or purchase. A few dozen AI sessions with a high key event rate count for more than a large, idle referral source.

A Monthly AI Traffic Reporting Template

MetricWhere in GA4 or Search ConsoleQuestion it answersOwner
AI Assistants sessions, by sourceTraffic acquisition, custom groupWhich assistants send us visitors, and is it growing?Analytics lead
Session key event rate: AI vs Organic SearchFree form explorationIs AI traffic worth more or less than search?Analytics lead
Top 10 AI landing pagesExploration, landing page rowWhich pages do AI engines trust enough to link?Content lead
Unassigned sessions with an AI sourceTraffic acquisition, default groupIs the built-in channel missing tagged visits?Analytics lead
AI Overviews and AI Mode impressionsSearch Console, generative AI reportHow often Google shows our pages in AI answersSEO lead
Direct sessions on deep pagesExploration, Direct channel, landing pageIs dark AI traffic rising?Analytics lead

When AI visitors land on a page and leave, the next step is conversion work, not more tracking. Our guide to conversion rate optimization when AI search cuts your traffic covers which fixes to make first.

What Can't GA4 See About AI Traffic?

GA4 records sessions on your site. It cannot see an AI answer that named your brand but sent no click, a Google AI feature click it files as organic, or a visit with no referrer or tag. Each of these needs a different measure.

Blind spotWhy GA4 misses itWhat to measure instead
AI Overviews and AI Mode clicksGoogle defines Organic Search as including AI Overviews and AI ModeSearch Console generative AI report for impressions; trends on affected landing pages
Answers with no clickNo visit happensPrompt tracking: mention rate, citation rate and share of voice
Stripped referrers and app webviewsNo referrer and no tag, so the visit is DirectDirect sessions on deep pages; raw log checks for utm_source
Copied links and later brand searchesThe visit happens days later through another channelBranded search trend; a "how did you hear about us" field with an AI option
Assistant fetches for a userThe page loads on the assistant's server, and your tag never runsServer or CDN logs filtered by user agent
Assistants not yet on any listThey fall into ReferralA monthly review of new referral sources
Grid of six AI traffic blind spots in GA4, including AI Overviews clicks, answers with no click and stripped referrers, each paired with an alternative way to measure it
GA4 counts sessions. For AI answers that never produce a session, you need a separate measure.

Google AI Overviews and AI Mode

You cannot separate AI Overviews or AI Mode clicks in GA4. Google's own definition of Organic Search includes them. Search Console is the closest view. Its Performance report documentation says "Clicking a link to an external page in AI Mode counts as a click," and that all links in an AI Overview share a single position. Those clicks sit inside the Web search type totals.

Search Console's generative AI performance report reached all websites worldwide on August 31, 2026. It shows "how many times links to your site were shown to a user in a generative AI feature on Google Search," by page, country, device and date. Use it to tell which pages Google shows in AI answers. Then read those pages' organic sessions in GA4 alongside it.

Clicks are also getting harder to win. A Pew Research Center study of March 2025 browsing data found that users who saw an AI summary clicked a traditional result in 8% of visits, against 15% for users who did not see one. That gap is why we plan for zero-click search as well as clicks. For Google's AI answers specifically, see our guide to getting into Google AI Mode answers.

How to Sanity-Check GA4 With Server Logs

Server logs record every request, whether or not your tag runs. They show whether GA4 is undercounting AI traffic and which pages assistants fetch for their users. Run the check once a month on the same 30-day window you report in GA4.

  1. Count tagged landings. Count requests whose URL contains utm_source=chatgpt.com, grouped by path. Compare the total with ChatGPT sessions in GA4. A large gap points to consent banners, ad blockers or tags that fire late.
  2. Count assistant fetches. OpenAI's crawler documentation says ChatGPT-User is used "for certain user actions in ChatGPT" and "is not used for crawling the web in an automatic fashion." Perplexity's bot documentation says Perplexity-User "supports user actions within Perplexity." These hits show which pages people ask assistants about, even when nobody clicks.
  3. Check referrers. Pull requests whose Referer header contains an assistant domain. If logs show them and GA4 does not, check whether your tag runs on those landing pages.
  4. Watch deep-page Direct. Direct traffic to a long, specific guide is rarely someone typing the URL. If it rises in the same weeks that assistant fetches rise for that page, treat it as likely dark AI traffic and say so in your report.

On a standard Nginx or Apache combined log, where the request path is the seventh field, these two commands give you a starting count:

grep -E "ChatGPT-User|Perplexity-User" access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
grep "utm_source=chatgpt.com" access.log | awk '{print $7}' | cut -d'?' -f1 | sort | uniq -c | sort -rn | head -20

Before you act on these numbers, decide which AI crawlers you let in at all. Our guide on which AI bots to allow, block or charge explains how ChatGPT-User differs from training crawlers.

How Should You Read AI Traffic Numbers?

Read AI traffic as a quality signal with a known undercount, not as a full count. For most sites the volume is still small. What it tells you is which pages AI engines trust and how ready those visitors are to act.

Outside data supports that reading. TechCrunch, reporting Adobe Analytics data covering over 1 trillion visits to US retail sites, said AI traffic rose 393% year over year in Q1 2026 and converted 42% better than non-AI traffic in March 2026. Your numbers will differ, so measure your own key event rate against Organic Search before you move budget.

Three rules keep the report honest:

  • Report AI Assistants sessions and Unassigned sessions with an AI source side by side until the gap closes.
  • Show trends over at least 8 weeks. Small numbers jump around from week to week.
  • Keep the blind-spot table in the report, so leaders read the GA4 figure as a minimum.

Once you need to split budget across channels you cannot track at the click level, you are in marketing mix modeling territory. Our guide covers when that is worth it.

A 30-Day Rollout Plan

You can have a trustworthy AI traffic view running in four weeks with one analyst and a few hours from SEO and content.

WeekTaskOwnerEffort
1Audit the AI Assistant channel, Unassigned and Referral rows; confirm key events and the Search Console linkAnalytics lead3 hours
1Create the custom channel group with the regex; verify sourcesAnalytics lead1 hour
2Build the free form exploration and landing page view; share with the teamAnalytics lead3 hours
2Add an AI option to "how did you hear about us" on lead formsWeb team2 hours
3Run the server log check; compare with GA4Developer4 hours
3Set up prompt tracking for 20 to 50 buyer promptsSEO lead4 hours
4Publish the first monthly report from the template; pick 3 AI landing pages to improveAnalytics and content leads4 hours

How Cyberdunes and Apex® Help You Measure AI Traffic

GA4 shows you the AI visits that reach your site. Apex® covers the AI answers that never send a click. Apex® connects to Google Analytics and your CRM through its API layer, as set out in our integrations guide. Its prompt tracking runs buyer prompts across ChatGPT, Gemini, Claude, Perplexity and Google AI Overviews. Citation reporting shows which of your pages those answers link to.

Put the two together and you can answer the full question: how often AI names you, how often it links to you, and what those visitors do next. Start with a free check to see how AI engines describe your brand today, and read our AI visibility checker guide to understand the metrics.

Run a Free AI Visibility Check

Book an Apex® Demo

Sources

FAQs

Questions, Answered

Can’t find what you’re looking for? Our team is happy to help.

How do I track AI traffic in GA4?

Check the AI Assistant channel that GA4 added on May 13, 2026, then create a custom channel group with an AI Assistants channel at the top. Give it two conditions: session medium exactly matches ai-assistant, or session source matches a regex of assistant domains. Then report sessions and key events by source and landing page.

Does GA4 have an AI traffic channel?

Yes. Since May 13, 2026, GA4 gives sessions from recognized AI assistants the medium ai-assistant and groups them in an AI Assistant channel in the default channel group. Google describes it as covering sources like ChatGPT, Gemini, Deepseek, Copilot and Grok, and it excludes Google's AI Overviews and AI Mode.

How do I see AI referral traffic in GA4?

Open Reports, Acquisition, Traffic acquisition and look at the AI Assistant row, then add Session source as a secondary dimension. For a complete view, switch the primary dimension to a custom channel group that also catches tagged visits without a referrer, such as utm_source=chatgpt.com, which otherwise land in Unassigned.

How do I track AI Overview traffic in GA4?

You cannot isolate it in GA4. Google defines Organic Search as including clicks from AI Overviews and AI Mode, so they appear as google / organic. Use the Search Console generative AI performance report to see AI Overviews and AI Mode impressions by page, then read those pages' organic sessions in GA4.

What regex should I use for AI traffic in GA4?

Use a session source regex that matches assistant domains with an optional subdomain, such as chatgpt.com, chat.openai.com, perplexity.ai, gemini.google.com, copilot.microsoft.com, claude.ai, chat.deepseek.com and grok.com. Anchor it with ^ and $, escape every dot and review new referral sources monthly to add assistants.

Why is ChatGPT traffic showing as Unassigned in GA4?

A ChatGPT link can arrive tagged with utm_source=chatgpt.com but with no referrer and no medium. GA4's AI Assistant rule depends on the referrer, and its Referral rule needs a medium of referral, app or link, so the session matches no rule. A custom channel group with a source regex fixes this.

Does ChatGPT add UTM parameters to links?

Yes. ChatGPT adds utm_source=chatgpt.com to links in its answers. In October 2026, Search Engine Roundtable reported that the tag briefly disappeared and links opened without a referrer, and Adobe's Cedric Huesler later reported the tag had returned and called the change a bug. Track by source regex so either signal is counted.

Should the AI channel go above Referral in a custom channel group?

Yes. Google says traffic is included in the first channel whose definition it matches, so an AI channel placed below Referral would never receive referral sessions from assistants. We place it first in the group so no other rule can claim those sessions before it.

Are GA4 custom channel groups retroactive?

Yes. Google says custom channel groups can be applied to your reports retroactively, except in audiences, where changes apply only going forward. Standard properties can create 2 custom channel groups and Analytics 360 properties can create 5, in addition to the default channel group.

What AI traffic can GA4 not see?

GA4 cannot see AI answers that mention your brand without a click, Google AI Overviews and AI Mode clicks it files as organic, visits with stripped referrers that land in Direct, later brand searches, and pages assistants fetch on a user's behalf. Use Search Console, prompt tracking and server logs for these.

How can server logs verify AI traffic?

Count requests with utm_source=chatgpt.com and compare them with ChatGPT sessions in GA4. Then count hits from user-initiated agents such as ChatGPT-User and Perplexity-User by URL. Large gaps suggest consent, ad blocking or tag issues, and the agent hits show which pages people ask assistants about.

Is AI referral traffic worth tracking if volumes are small?

Yes. Volumes are small for most sites, but the quality can be high. TechCrunch, reporting Adobe data, said AI traffic to US retail sites converted 42% better than non-AI traffic in March 2026. Compare your own key event rate for AI sessions against Organic Search before shifting budget.

Put It Into Practice

Want Help Putting These Ideas to Work in Your Business?