How to track AI traffic in Google Analytics 4

Google Analytics 4 groups AI assistant visits under Referral by default. To see them clearly, create a custom channel group with an "AI assistants" channel that matches AI referrer domains with a regex, placed above Referral. It takes five minutes and applies to past data too.

Updated · Citable

The referrer regex

This pattern matches the main AI assistants' domains. Add new ones as they appear:

Session source matches regex
^(.*\.)?(chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|meta\.ai|chat\.deepseek\.com|grok\.com|you\.com|phind\.com|chat\.mistral\.ai)$

Create the AI channel in GA4

  1. In GA4, open Admin → Data display → Channel groups.
  2. Copy the Default channel group (you cannot edit the default) and name it, for example "Channels with AI".
  3. Click Add new channel, name it AI assistants.
  4. Set the condition Session source · matches regex · paste the pattern above. Save.
  5. Reorder so AI assistants sits above Referral. GA4 assigns each session to the first channel that matches.
  6. Save the group. In Reports → Acquisition → Traffic acquisition, switch the primary dimension to your new channel group.

Custom channel groups apply to historical data, so you can see AI traffic from before you set this up.

See which pages AI sends people to

Create a Free-form exploration with Session source and Landing page + query string as rows, Sessions, Engaged sessions and Key events as values, and a filter on session source matching the regex. This shows which of your pages are being cited and clicked, and whether those visitors convert.

What GA4 cannot see

  • AI Overviews and AI Mode clicks come from google.com and are counted as organic search. Use Search Console and manual checks instead; see Google AI Overviews.
  • Apps that strip referrers. Some desktop and mobile apps open links without a referrer, so visits land in Direct.
  • Delayed visits. A reader who sees your brand in an answer and later types your URL or searches your name counts as Direct or organic. Track branded search impressions in Search Console as a proxy.
  • Mentions without links. Being recommended in an answer without a click is invisible to analytics. That is why checking the answers themselves matters.

Questions people ask

Does ChatGPT traffic show as direct?

Usually it shows as a referral from chatgpt.com, often with utm_source=chatgpt.com. Some app-based clicks lose the referrer and appear as Direct.

Can I track AI crawler visits in GA4?

No. Crawlers do not run JavaScript analytics. Use your server logs or CDN analytics to see visits from OAI-SearchBot, PerplexityBot, Claude-SearchBot and others.

Your brand on AP and USA Today, this week.

220M+ potential reach on 500+ news sites, indexed by search engines and ready for AI citations. Pay once, write it or let AI write it, and submit. Live within 48 hours of submitting, or your money back.