🎯 Free: get your first AI visibility baseline in 5 min, then refresh it every 7 daysTry it →

Blog
4 min read

How to Track AI Traffic in GA4: Referrers, UTMs, and Custom Channels

How to configure GA4 for traffic from ChatGPT, Perplexity, Copilot, Gemini, Claude, Alice, and other AI systems using channel grouping, regex, UTM parameters, and reports.

GA4AI trafficweb analyticsattribution
Vladislav Puchkov
Vladislav Puchkov
Founder of GEO Scout, GEO optimization expert

AI traffic attribution is messy because AI interfaces were not designed as clean marketing channels. Some pass referrers, some do not, and some influence users without any click at all. GA4 can still capture part of the picture if the setup is explicit.

Why GA4 Misses AI Traffic

GA4 relies on referrer, UTM parameters, and campaign rules. AI products often break that chain. A link opened from a mobile app can lose the referrer. A user can copy a URL from an AI answer. A user can read the recommendation, close the AI tool, and later search for the brand.

That is why AI traffic is usually split across Direct, Referral, Organic Search, and branded organic.

Referrer Domains to Track

Use this starting list and update it as products change:

chatgpt.com
openai.com
perplexity.ai
claude.ai
gemini.google.com
copilot.microsoft.com
bing.com
you.com
phind.com
duckduckgo.com
ya.ru
yandex.ru
grok.com
x.ai

Perplexity and You.com tend to pass referrers more reliably. ChatGPT and Copilot can be less consistent, especially from apps.

Create a Custom Channel Group

In GA4, go to Admin, Data Settings, Channel Groups. Create a new group and add a channel named AI Search.

Use a source regex such as:

(chatgpt|openai|perplexity|claude|gemini|copilot|bing|you\.com|phind|duckduckgo|ya\.ru|yandex|grok|x\.ai)

Place the AI Search channel above Organic Search and Referral. Channel order matters: the first matching rule wins.

Add UTM Parameters Where You Can

If you publish links that AI systems may quote, use explicit UTMs on controlled deep links:

utm_source=chatgpt
utm_medium=ai-referral
utm_campaign=ai_citation

For broader evergreen content, use source-specific values when possible: perplexity, copilot, gemini, or ai_search. UTMs cannot solve every attribution issue, but they reduce dependency on referrer behavior.

Build an Exploration Report

Create a Free Form Exploration with these dimensions:

  • Session source / medium
  • Landing page
  • Page referrer
  • Default channel group
  • Device category

Use metrics such as sessions, engaged sessions, engagement rate, average engagement time, key events, and revenue. Add a comparison segment for AI Search and compare it with Organic Search.

Use BigQuery for Deeper Analysis

If volume is high, export GA4 to BigQuery. This allows cohort analysis, conversion-path analysis, and correlation between AI referrer sessions and later branded sessions. BigQuery is especially useful when standard GA4 reports hide detail through sampling or aggregation.

What GA4 Cannot Show

GA4 cannot tell you whether ChatGPT mentioned your brand without a click. It cannot show whether Perplexity cited a competitor instead of you. It cannot reliably attribute a user who saw an AI recommendation and returned later through branded search.

That upstream layer requires AI visibility monitoring. GEO Scout tracks the prompts, providers, mentions, positions, sentiment, and cited sources so analytics teams can interpret GA4 traffic in context.

Setup Checklist

  • Create an AI Search channel group.
  • Add source regex for known AI referrers.
  • Place AI Search above Organic and Referral.
  • Use utm_medium=ai-referral for controlled links.
  • Create an Exploration report for AI sessions.
  • Compare AI traffic with organic and direct traffic.
  • Correlate GA4 trends with GEO Scout Mention Rate.

Practical Priority

Start with channel grouping and an Exploration report. Then add UTMs to pages AI is likely to cite: guides, comparison pages, pricing pages, research reports, and templates. Finally, connect traffic data with AI visibility data so clicks are not interpreted without the answer context that created them.

Частые вопросы

Why does AI traffic appear as Direct in GA4?
Many AI products open links in contexts that do not pass the Referer header. Some mobile apps and privacy layers also strip referrers, so GA4 classifies the visit as direct.
Which referrer domains should be tracked for AI traffic?
Start with chatgpt.com, openai.com, perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com, bing.com/chat, you.com, phind.com, duckduckgo.com, ya.ru, and yandex.ru. Update the list regularly.
How do I create an AI Search channel in GA4?
In Admin, open Channel Groups, create a new group, add a rule where source matches your AI referrer regex, and place it above Organic Search and Referral. The rule applies only to future data.
Do I need UTM parameters for AI traffic?
Yes, where you control the links. UTM parameters help preserve attribution when referrers are lost. Use a consistent medium such as ai-referral.
What can GA4 not show about AI traffic?
GA4 cannot show zero-click AI exposure, brand mentions without a URL click, or users who saw a recommendation and later returned through direct or branded search. GEO Scout on geoscout.pro measures that upstream AI visibility layer.