How to track website traffic from AI search engines. Referrers, a regex and a channel.

You track traffic from AI search engines by identifying visits whose source is an AI assistant's domain, such as chatgpt.com or perplexity.ai, and grouping them in GA4. GA4 now does part of this by default, and a regex-based exploration or channel group covers the rest.

By Brady Heinrich · Updated

In short

  • AI assistants show up in analytics as referral sources: chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com and claude.ai.
  • GA4's default channel group has an AI Assistant channel. Check it first in the Traffic acquisition report.
  • For control over which sources count, build an exploration or a custom channel group with a regex on session source.
  • Google's AI Overviews and AI Mode are counted as Organic Search, not as AI Assistant traffic.
  • Expect undercounting: visits from apps and copied links often arrive with no referrer and land in Direct.

How AI traffic appears in analytics

AI traffic appears as referral visits from the assistant's web domain. When someone clicks a cited link in an AI answer, the browser usually passes the assistant's domain as the referrer, and your analytics records it as the session source.

These are the sources to look for.

AssistantSource to match
ChatGPTchatgpt.com (older data may show chat.openai.com)
Perplexityperplexity.ai
Geminigemini.google.com
Microsoft Copilotcopilot.microsoft.com
Claudeclaude.ai

Some links also arrive with a utm_source tag naming the assistant, for example a value of chatgpt.com. Where a tag is present, GA4 reads the source from it even if the referrer is missing. Check your own landing page URLs to see which assistants tag links to you; do not assume every click is tagged. The UTM parameters guide explains how tags override referrers.

Step 1: Check GA4's built-in AI Assistant channel

GA4's default channel group includes an AI Assistant channel, so start there. Google's documentation describes it as the channel by which users arrive from sources like ChatGPT, Gemini, Deepseek, Copilot or Grok. GA4 sets the medium to ai-assistant when the referrer matches its list of AI assistants.

  1. Open Reports, then Acquisition, then Traffic acquisition.
  2. Make sure the primary dimension is Session primary channel group (Default channel group).
  3. Find the AI Assistant row.
  4. Add Session source as a secondary dimension to see which assistants are sending visits.

Two limits. Google's list decides what counts, and it notes that channel definitions may evolve. And Google's own AI Overviews and AI Mode are excluded: the documentation places them under Organic Search.

Step 2: Build an exploration with a regex

An exploration lets you choose exactly which sources count and see landing pages and conversions beside them.

  1. Go to Explore and start a Free form exploration.
  2. Add the dimensions Session source, Session source / medium and Landing page + query string.
  3. Add the metrics Sessions, Engaged sessions, Key events and, if you sell online, Total revenue.
  4. Put Session source in rows and the metrics in values.
  5. Add a filter: Session source, matches regex, then the pattern below.

A starting pattern, to adapt to your own data:

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

Add other assistants as you spot them in your referral list. Then swap Session source for Landing page to see which pages AI answers send people to. Those are the pages being cited.

Step 3: Create a custom channel group

A custom channel group makes AI traffic a permanent row in standard reports, with your own definition. Google's help page for custom channel groups uses an AI assistants channel as its worked example.

  1. In Admin, under Data display, click Channel groups. You need the Editor role or above.
  2. Click Create new channel group, which starts from a copy of the default group.
  3. Click Add new channel and name it, for example "AI assistants".
  4. Add a condition on Source, choose matches regex and paste your pattern.
  5. Save the channel, then click Reorder and drag it above Referral. Order matters: GA4 puts traffic in the first channel whose definition it matches.
  6. Click Save group.

Google states that custom channel groups can be applied to reports retroactively, so past data is regrouped. Standard properties allow two custom groups in addition to the default. Google also advises updating the regex when assistant URLs or your list change.

Step 4: Tie AI traffic to outcomes

Sessions alone say little. Mark your real conversions (demo requests, sign-ups, purchases) as key events, then compare the AI channel with Organic Search on:

Volumes are often small, so judge on quality and trend. Google has said that clicks from AI Overviews tend to be higher quality, with visitors more likely to spend more time on site. Check whether that holds for assistant traffic in your own data before repeating it internally.

What you cannot see

Referral tracking undercounts AI-driven visits, and you should say so whenever you report the number.

  • Missing referrers. Clicks from mobile and desktop apps, or links a user copies and pastes, often arrive with no referrer and are recorded as Direct.
  • Google's AI features. AI Overviews and AI Mode traffic is counted as Organic Search in GA4. Search Console includes it in the Performance report under the Web search type, without a separate filter.
  • No-click influence. Someone who reads about you in an AI answer and searches your brand name later shows up as branded organic or direct traffic.
  • Crawler visits. AI bots fetching your pages do not run analytics scripts. To see them, read server or CDN logs for user agents such as OAI-SearchBot, PerplexityBot and Claude-SearchBot.
  • Consent and blockers. The usual analytics gaps apply here as everywhere.

To estimate the hidden part, watch three proxies alongside the AI channel: branded search impressions in Search Console, Direct sessions landing on deep pages that people rarely type by hand, and a "how did you hear about us" field on your forms.

Tracking beyond clicks

Traffic shows who arrived, not how often you were mentioned. For Microsoft's surfaces, Bing Webmaster Tools has an AI Performance report with citation counts, though not clicks. For everything else, track a prompt set by hand or with a tool, as described in the AI visibility guide.

If you run your own campaigns in newsletters or communities and want clean attribution there too, tag those links with the UTM builder.

Questions

Why does ChatGPT traffic show up as Direct in GA4?

When a click carries no referrer and no UTM tag, which is common from apps and copied links, GA4 has nothing to attribute it to and records it as Direct. Some share of your Direct traffic is likely to be AI-driven.

Can I see which prompt led someone to my site?

No. Assistants do not pass the user's prompt in the referrer. You can see the landing page, which hints at the topic, and Bing Webmaster Tools shows sampled grounding queries for Copilot citations.

Is traffic from Google AI Overviews included in the AI Assistant channel?

No. Google's documentation says the AI Assistant channel excludes AI Overviews and AI Mode, which are counted under Organic Search.

Do I need a custom channel group if GA4 already has an AI Assistant channel?

Not necessarily. Use the default channel if its list covers the assistants you care about. Build a custom one when you need to add sources, split assistants into separate channels or keep a definition that does not change under you.

How much traffic should I expect from AI search engines?

It varies widely by site and there is no reliable benchmark to quote. Set your own baseline from the last three months and track the trend and the conversion rate.

Sources

  1. Default channel group (Google Analytics Help)
  2. Custom channel groups (Google Analytics Help)
  3. AI features and your website (Google Search Central)
  4. Top ways to ensure your content performs well in Google's AI experiences on Search
  5. Introducing AI Performance in Bing Webmaster Tools public preview

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.