Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

How to Track AI Traffic in GA4: ChatGPT, Perplexity, Gemini and Copilot Referrals

GA4 now has an AI Assistant channel, but it does not catch every AI visit. This guide shows where ChatGPT, Perplexity, Gemini and Copilot sessions land, why one source splits across channels, and how to build a custom channel group and read the results.

The EndFrame Team7 min read

To track AI traffic in GA4, start with the built-in AI Assistant channel, then add a custom channel group that also catches the AI sources Google does not recognise. The built-in channel needs no setup, but it only covers sessions whose referrer is on Google's list of assistants. Perplexity, visits from AI apps that pass no referrer and Google's own AI Overviews all end up somewhere else. This guide shows where each kind of AI visit lands, how to build a channel group with a regular expression (regex) that catches the rest, and how to read the result.

Where AI visits land in GA4 today

On 13 May 2026 Google added AI Assistant to the default channel group. Its rule has two parts: a session whose medium is exactly ai-assistant is AI Assistant, and when the referrer (the site the visitor clicked from) matches Google's list of AI assistants, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant) for you. Google's definition names ChatGPT, Gemini, Deepseek, Copilot and Grok, and says the channel excludes Google's AI Overviews and AI Mode. The release note for the change named ChatGPT, Gemini and Claude, but the current channel page no longer lists Claude, so the list does change. Our guide to GA4 default channel groups covers the rules for every other channel.

Kind of visitTypical source / mediumChannel it lands in
Click from an assistant on Google's list, such as ChatGPT on the webchatgpt.com / ai-assistantAI Assistant
Click from an assistant not on the list, Perplexity being the common caseperplexity.ai / referralReferral
ChatGPT session from before the channel reached your propertychatgpt.com / referralReferral
ChatGPT session where the source survived but the medium did notchatgpt.com / (not set)Unassigned
Click inside an AI app that passes no referrer and no UTM tags(direct) / (none)Direct
Click from Google AI Overviews or AI Modegoogle / organicOrganic Search

What the AI Assistant channel misses

  • Assistants outside Google's list. Google's definition does not mention Perplexity, and practitioners report its sessions stay in Referral. Check your own Referral rows before assuming either way.
  • Visits with no referrer. Mobile apps and in-app browsers often send no referrer, so a click from an AI app can arrive as (direct) / (none) with nothing to say it came from an assistant.
  • Google's own AI features. Clicks from AI Overviews and AI Mode count as Organic Search. Google Search Central says Search Console reports them inside the Web search type, mixed with ordinary results.
  • Answers read without a click. If the assistant answers the question and the person never visits, there is no session to classify.

Why one source splits across channels

Break Traffic acquisition down by Session source / medium and you will often find chatgpt.com three times: chatgpt.com / ai-assistant in AI Assistant, chatgpt.com / referral in Referral and chatgpt.com / (not set) in Unassigned. The referral rows are mostly sessions from before the change. Search Engine Journal's analysis reports that the native channel only counts from the date it reached each property, that rollout reached most properties by early June 2026, and that timing varied. The (not set) rows are sessions where GA4 kept the source but had no medium. One way that happens is a link carrying utm_source=chatgpt.com with no utm_medium, which we explain in utm_source=chatgpt.com explained.

The practical effect: if you compare April with July in the default channel group, AI Assistant grows from zero while Referral shrinks, and part of that movement is relabelling, not new visits. For trends that cross May 2026, use Session source, or a custom channel group, which applies its rules to the whole date range.

Build an AI channel group that catches the rest

You need the Editor role or higher on the property. A standard property can have 2 custom channel groups and a GA4 360 property 5, each with up to 50 channels, so use one of your slots deliberately.

  1. 1Click Admin, and under Data display click Channel groups.
  2. 2Click Create new channel group. If this is your first custom group, GA4 starts you with a copy of the default group, every standard channel already in it. If you already have one, you can copy it instead with Copy to create new in its More menu. Give the group a name such as Channels with AI.
  3. 3Click Add new channel and name it, for example, AI assistants (all).
  4. 4Click Add condition group, choose the dimension Source, choose matches regex and paste the pattern from the next section. Click Save channel.
  5. 5Click Reorder and drag your new channel above Referral, Organic Search and the built-in AI Assistant channel, then click Apply. If you run paid placements tagged with any of these sources, keep the paid channels above it.
  6. 6Click Save group.

Order matters because GA4 assigns each session to the first channel whose conditions it meets. Leaving the built-in AI Assistant channel below yours works as a safety net: anything Google tags as ai-assistant that your pattern misses still lands there, which tells you a domain is missing from your regex. Google says custom groups apply to reports, explorations and segments retroactively, while in audiences a change only applies going forward.

A regex built from full domains

A pattern that covers the main assistants by their full hostnames: ^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|copilot\.com|claude\.ai|deepseek\.com|grok\.com)$

Each part has a job. The backslash before every dot makes it a literal full stop rather than a wildcard. The optional (.*\.)? at the start allows www. and other subdomains, so chat.deepseek.com and www.perplexity.ai still match. The ^ and $ anchors make the whole-value match explicit, so the pattern cannot match longer, unrelated hostnames such as perplexity.ai.example.com. Google's regex page says regular expressions in Analytics are full match and case sensitive by default, while its channel page says channel definitions are not case sensitive, so keep the pattern in lowercase to be safe on both counts.

Avoid bare tokens. Google's own illustrative example on the custom channel groups page uses fragments such as .*gpt.*, .*gemini.* and .*copilot.*. A token like gemini also matches gemini.com, which is a cryptocurrency exchange, and a bare google would sweep in every visit from Google Search. Full domains cost a little more typing and produce a channel you can trust. Review the pattern every quarter: sort Referral by Session source, look for AI hostnames you do not recognise and add them.

Source Group: Google's grouping of source variants

On 11 June 2026 Google added a Source Group field. According to the release note, it consolidates the different source values one platform produces into a single reporting value, includes built-in grouping for ChatGPT (OpenAI) and Perplexity, and is populated retroactively. It answers a different question from a channel group. Source Group tells you which platform a visit came from, using groupings Google builds in. A channel group puts sources into buckets you define with your own rules, so it gives you one AI total. Google's note does not say which reports carry the field or the exact labels, so search for source group in the dimension list of a report or exploration. Use Source Group to compare ChatGPT with Perplexity and your custom channel group for the AI total.

How to read AI traffic once it is classified

  • Open Reports, Acquisition, Traffic acquisition. Click the primary dimension menu above the table and choose your custom channel group. Compare the AI row's sessions, engagement rate and key events with Referral and Organic Search.
  • Click the plus icon next to the primary dimension and add Session source to see which assistant sends what, or Landing page + query string to see which pages assistants cite. Our GA4 landing page report guide shows how to customise that view.
  • For a source-level view in one table, open Explore, start a Free form exploration, import your custom channel group, Session source and Landing page as dimensions and Sessions, Engaged sessions and Key events as metrics, then filter to the AI channel.
  • Use the User acquisition report with the same group to see how many people were first acquired through an assistant. Our guide to user acquisition vs traffic acquisition explains why its totals differ.

AI sessions are often a small share of the total, so judge them over a few months rather than week by week, and look at key events per session as well as volume.

The honest limit: classification is not collection

A channel group relabels sessions GA4 has already received with a source attached. It cannot recover answers read without a click, app visits that arrived with no referrer and sit in Direct, or AI Overviews clicks inside Organic Search. No regex can, because the information was never sent. Our guide to why direct traffic is so high in GA4 covers the referrer-less part. Where you control the link yourself, such as a profile link, an ad or a link you place inside an assistant, tag it with a UTM builder so it arrives labelled. That cannot tag the citations an assistant writes on its own, so treat every AI figure in GA4 as a floor, not a total.

Frequently asked questions

Does GA4 count Google AI Overviews and AI Mode as AI traffic?

No. Google's channel documentation says the AI Assistant channel excludes AI Overviews and AI Mode, so those clicks arrive as google / organic in Organic Search. Search Console also folds clicks from AI features into the Web search type of its Performance report, so neither tool gives you a separate row for them today.

Is the AI Assistant channel applied to data from before May 2026?

Practitioners who have compared properties report that it is not: the ai-assistant medium is only assigned from the date the change reached each property, and older ChatGPT sessions stay as referral. A custom channel group is different, because its rules are applied to historical data in reports. Google also says the Source Group field is populated retroactively.

Why does Perplexity traffic show as Referral in GA4?

Because Perplexity is not one of the assistants Google names in its AI Assistant definition, and practitioners report its sessions keep the referral medium. Google does not publish the matching list as a set of domains, so check the Traffic acquisition report with Session source / medium in your own property, and include perplexity.ai in your own channel rule either way.

Should I make my AI channel group the primary channel group?

Only if the whole team agrees to it. Google says a change of primary channel group applies from that point forward, while choosing a custom group in a report applies its rules to past data too. Most teams leave the default as primary and pick the custom group from the dimension menu whenever they report on AI traffic.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading