How to Track ChatGPT and Other AI Referrals in GA4
GA4 now has a built-in AI Assistant channel. When a visit's referrer matches Google's list of AI assistants, such as ChatGPT, Gemini, DeepSeek, Copilot and Grok, GA4 sets the medium to ai-assistant. The channel excludes Google's AI Overviews and AI Mode, which stay in Organic Search, and it does not reclassify older data. For fuller control, build a custom channel group with a regex, which GA4 applies retroactively. Expect undercounting either way. App handoffs, copied links and consent refusals turn many AI visits into Direct or Unassigned traffic. This guide covers setup, each assistant in turn, other tools such as HubSpot, Shopify, PostHog and Adobe, and how to estimate what you cannot see.
What does GA4 do with AI traffic by default?
Does GA4 have a native AI Assistant channel for tracking LLM referrals?
Yes. Google's default channel group documentation now lists AI Assistant as the channel through which users arrive from sources like ChatGPT, Gemini, DeepSeek, Copilot or Grok. Analytics practitioners report it appeared in May 2026. Before that, the same visits were counted as Referral.
Does GA4 automatically group AI assistant traffic in its reports?
Yes, for referrers on Google's list. You do not need to configure anything. The AI Assistant channel appears in the Session default channel group and First user default channel group dimensions, in the Acquisition reports and explorations.
What does the ai-assistant medium mean in Google Analytics 4?
It is the label GA4 applies itself. Google's documentation says the medium is set to "ai-assistant" and the campaign to "(ai-assistant)" when the referrer matches its list of AI assistants. You will see sessions such as "chatgpt.com / ai-assistant". It is not a value anyone sets in a URL.
Which AI tools does GA4 include in the AI Assistant channel by default?
Google's help page names ChatGPT, Gemini, DeepSeek, Copilot and Grok as examples, and offers a downloadable spreadsheet of the sources behind its default channels. Check that list for the assistants that matter to you, such as Perplexity and Claude, and add any that are missing in a custom channel group.
How to find ChatGPT visits in GA4’s AI Assistant channel
Open Reports, then Acquisition, then Traffic acquisition. Set the primary dimension to Session default channel group and click AI Assistant, or add Session source as a secondary dimension. ChatGPT appears as chatgpt.com. For conversions, add your key events as columns, or build an exploration with Session source and key events.
What are the limitations of GA4’s new AI traffic channel?
- Not retroactive: earlier sessions stay in Referral.
- Referrer-based: visits with no referrer are missed, even if the URL carries utm_source=chatgpt.com.
- Excludes Google's own AI: AI Overviews and AI Mode clicks count as Organic Search.
- Google's list only: assistants not on it fall into Referral.
- No prompts or answers: you see visits, not what was asked.
How do you track AI referrals more fully?
How to track AI referral traffic in GA4 using filters and custom channels
For a quick view, build an exploration with Session source as a dimension and a filter where Session source matches a regex of AI domains. For a permanent view, create a custom channel group. Google's help page gives this exact use case as an example: create a channel called "AI assistants" with a "matches regex" condition on source.
How to use GA4 regex channel groups to track LLM referrals
In Admin, open Channel groups, copy the default group, and add a channel above Referral, because GA4 assigns a session to the first channel it matches. A starting regex for Session source:
(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|grok\.com|meta\.ai|chat\.mistral\.ai)
Google says custom channel groups can be applied to reports retroactively, so the new channel also shows historical data.
GA4 AI Assistant channel versus custom AI referral channel: which is better for ChatGPT and Perplexity?
Use both. The default channel needs no maintenance and is consistent across properties. A custom channel lets you choose the assistants, catch sessions where ChatGPT's utm_source survives without a referrer, and see history before May 2026. For client reporting, the custom channel is usually the one to present, with the default channel as a cross-check.
How to set up an ai_search event in Google Tag Manager to track AI traffic
Create a Custom JavaScript variable that reads document.referrer and the utm_source parameter, and returns an AI platform name when either matches your list of AI domains. Fire a GA4 event called ai_search on pages where that variable is set, with a parameter such as ai_source, and register ai_source as a custom dimension. This catches UTM-only visits, and lets you send the same signal to other tools.
Why does AI traffic go missing?
Why does GA4 show AI traffic as direct, unassigned or unknown?
Because the referrer did not arrive. Common causes are links opened from mobile apps, links copied into a new tab, browser or app privacy settings, and redirects that drop the referrer. When a URL keeps utm_source=chatgpt.com but has no referrer and no medium, GA4 can record the source but has no channel rule to match, so the session often lands in Unassigned.
Why does GA4 record visitors who found my business through ChatGPT as Direct?
Often because they did not click. Many people read a recommendation, then type the name into a browser or search for it later. Those visits are Direct or branded Organic Search. Others click inside an app that opens links without passing a referrer.
Do iPhone in-app browsers strip referrers from AI search tools?
Frequently. One agency's server-log test found 56 visits from Gemini's iOS app in its logs, but only 5 recorded as Gemini referrals in GA4. Apps that hand links to Safari or open them in their own browser views often pass no referrer, so the visit looks direct.
Why do AI-referred visitors appear as direct traffic after copying and pasting URLs?
A pasted URL has no referrer by definition. If the copied link came from ChatGPT and still includes utm_source=chatgpt.com, GA4 records chatgpt.com as the source, usually in Unassigned. If the parameter was trimmed, the visit is simply Direct.
How do consent banners change reported ChatGPT traffic in GA4 for European visitors?
They reduce it. Visitors who refuse analytics cookies are not recorded in standard reports, or appear only through Consent Mode modelling where it applies. AI referrals are hit as hard as any other channel. Compare AI share of sessions, not raw counts, between regions with and without consent banners.
How much AI-influenced traffic is hidden in direct traffic?
Nobody knows precisely, and no reliable industry figure exists. The Gemini iOS test above suggests referral counts can capture a small fraction of app visits. Estimate your own gap by comparing server-log referrers with GA4, by watching direct visits to deep pages that AI answers cite, and by asking new customers how they found you.
What is dark AI traffic when users move from ChatGPT to my website?
It is the traffic an AI answer causes but analytics cannot attribute: typed visits, pasted links, app handoffs and later branded searches. Treat measured AI referrals as the floor, and dark AI traffic as the unmeasured remainder.
How can I detect referral loss caused by ChatGPT’s app handoff?
Look for three signs: sessions with source chatgpt.com in Unassigned, meaning the UTM survived but the referrer did not; mobile direct traffic landing on deep pages, such as a comparison page, that ChatGPT cites; and a gap between server logs and GA4 for the same pages.
How does each assistant show up?
Which AI assistants pass referrer data to websites?
On the web, most major assistants usually do: ChatGPT as chatgpt.com, Perplexity as perplexity.ai, Gemini as gemini.google.com, Copilot as copilot.microsoft.com, and Claude as claude.ai. Mobile and desktop apps are less reliable. ChatGPT also adds its own UTM tag, which makes it easier to attribute than the others.
Why does ChatGPT add UTM tags inconsistently, and how does that affect attribution?
OpenAI's publisher FAQ says ChatGPT automatically includes utm_source=chatgpt.com in referral URLs, but Seer Interactive has noted it is not added to every link. Visits from untagged links depend on the referrer alone, so they fall to Direct when the referrer is lost. Build reports on source, which combines both, not on the UTM alone.
What does ChatGPT utm_source=chatgpt.com prove about AI-assisted visits?
That the link was produced by ChatGPT. It does not prove the visitor saw you recommended, as opposed to cited or linked in passing, and it can appear in shared or pasted links. It is good evidence of a ChatGPT-originated click, not of intent or of the answer's content.
How to track Perplexity referral traffic in GA4
Look for Session source perplexity.ai or www.perplexity.ai. Check whether it falls under AI Assistant in your property; if not, add it to your custom channel group. Perplexity does not add a UTM tag, so app visits without a referrer are lost to Direct.
How can I track website visitors arriving from Claude?
Filter Session source for claude.ai and add it to your custom AI channel. Browser visits usually carry the referrer.
Why does Claude.ai traffic appear as direct traffic in analytics?
Links opened from Claude's desktop or mobile apps, or copied from answers, often arrive without a referrer, and Claude adds no UTM tag. Those visits are counted as Direct.
Are Claude-driven sessions showing up in website analytics?
Some are. Expect lower counts than Claude's actual influence, for the reasons above, and check server logs for Claude-User fetches, which show Claude retrieving your pages even when visits are not attributed.
How can I track website visitors arriving from Gemini?
Look for gemini.google.com as the source, which GA4 includes in AI Assistant. App visits are heavily undercounted, as the iOS test shows. Clicks from AI Overviews and AI Mode are separate: they count as google / organic.
How to segment Microsoft Copilot traffic in analytics
Filter for copilot.microsoft.com, which GA4's AI Assistant channel covers. Copilot inside Edge and Windows can use other Microsoft domains, so check your referral list for them.
How do I distinguish Microsoft Copilot referrals from Bing organic visits?
Only partly. Visits from the Copilot site or app show a Copilot domain. Clicks from Copilot answers within Bing search results arrive from bing.com and are counted as Bing organic. Bing Webmaster Tools' AI Performance report shows your citations in Copilot and Bing's AI answers, which fills part of the gap.
Is there an industry standard for measuring Microsoft Copilot attribution?
No. Microsoft's own tools are the best available: Bing Webmaster Tools' AI Performance report for citations and grounding queries, and Microsoft Clarity's AI Visibility dashboard, which reports AI referral traffic alongside citations. More on Bing is in why Bing matters for AI search visibility.
Can Google Search Console track traffic from ChatGPT and other AI assistants?
No. Search Console covers Google Search only. It includes AI Overviews and AI Mode in its totals, and since 2026 has a generative AI report showing impressions from those features, but it sees nothing from ChatGPT, Claude, Perplexity or Copilot.
Can GA4 distinguish an AI bot crawl from a human visit from ChatGPT?
Mostly yes, by default. GA4 counts visits that run its JavaScript, and most AI crawlers do not run JavaScript, so crawls such as OAI-SearchBot and ChatGPT-User fetches do not appear. GA4 also excludes known bots automatically. The exception is agent browsers that load pages in a real browser, which can register sessions, often as Direct.
How can I tell whether a referral came from a shared AI answer or a normal browser visit?
You usually cannot. A shared ChatGPT conversation opens on chatgpt.com, so clicks from it look like any other ChatGPT referral.
How do I distinguish organic ChatGPT referrals from paid AI-platform traffic?
Tag every ad destination URL with a distinct paid medium, such as utm_medium=chatgpt_ads, and use a different value, such as utm_medium=feed, on product-feed URLs. ChatGPT's own organic links carry only utm_source=chatgpt.com, so sessions with your paid medium are paid, sessions with your feed medium are organic shopping clicks, and the rest is organic.
How do you track conversions?
How to use UTM parameters to track LLM referral conversions in Google Analytics
You cannot add UTMs to links that assistants generate. Use them on links you control, such as the URLs in a product feed, a ChatGPT app or a listing you manage, and never overwrite ChatGPT's own utm_source. For conversions, mark sign-ups and purchases as key events and report them by Session source or your AI channel. Whether these visitors convert better is discussed in whether ChatGPT referrals convert better.
How do I track trial signups that come from ChatGPT recommendations?
Record the key event, then keep the source with the lead. Store the first-touch referrer and utm_source in hidden form fields, pass them to your CRM, and add a "How did you hear about us?" question with an AI assistant option to catch visitors who arrived later as Direct.
How to track prompt-level AI citations and referral parameters
Analytics cannot show prompts. ChatGPT's utm_source is the only common parameter, and it carries no query. Use an AI visibility tracker or Bing's grounding query data to see questions and citations, and join them to landing pages. Methods are covered in how to find the prompts or intent behind ChatGPT referrals.
How to track LLM referral traffic, impressions and prompt visibility on a budget
Combine free tools: GA4 with a custom AI channel for referrals, Search Console's generative AI report for Google impressions, Bing Webmaster Tools and Clarity for Copilot citations, and a monthly spreadsheet of 20 to 30 key questions checked by hand across assistants.
Which other tools can track AI referrals?
How to track AI referrals in HubSpot traffic analytics
HubSpot's traffic analytics tool has an AI Referrals source category, which HubSpot's knowledge base describes as traffic from AI assistants and chatbots such as ChatGPT, Claude and Perplexity. Filter traffic and contacts by that source.
How to track AI-originated deals when HubSpot attributes them to direct traffic
Add a required "How did you hear about us?" field with an AI option, capture the referrer and UTM values in hidden fields, and copy them to the deal. Report on self-reported source alongside HubSpot's original source.
How to use PostHog to track LLM referral traffic
PostHog calculates a channel type from the referring domain, UTM tags and advertising IDs, and supports custom channel types. Create one for AI assistants from referring domains, or filter web analytics by $referring_domain.
How to track LLM referral traffic in AA
In Adobe Analytics, add an "AI Assistants" marketing channel whose processing rule matches AI referring domains, and place it above the referring domain and natural search channels. Processing rules apply to data collected after the change, so keep a segment on referring domain for historical comparison.
How to see AI referral traffic in WordPress analytics
If you use Google's Site Kit plugin, the traffic comes from GA4, so set up the custom channel there. Jetpack Stats lists referrers, where chatgpt.com, perplexity.ai and similar domains appear by name.
How to report AI traffic and revenue with a custom ShopifyQL query
Shopify's sessions schema includes referrer_domain, a human_or_bot_session filter and checkout metrics:
FROM sessions
SHOW sessions, conversion_rate, sessions_that_completed_checkout
WHERE human_or_bot_session = 'human'
GROUP BY referrer_domain
SINCE last_year UNTIL today
ORDER BY sessions DESC
Read the rows for chatgpt.com, perplexity.ai and other AI domains. For revenue, use Shopify's sales by referrer reporting, and note that orders from its agentic storefronts show the AI channel in the order's attribution.
Where to find a Looker Studio template for AI traffic in GA4
Google does not publish an official one. Building your own takes minutes: connect the GA4 data source, add a table of Session source and key events, filter on your AI channel, and add a time series. Community templates exist, but check the regex and channel logic they use before relying on them.
How agencies should report ChatGPT referrals and verify them with past client analytics
Apply a retroactive custom channel group to each client property, so this year and last year use the same rules. Compare AI sessions and conversions over at least six months, check a sample against server logs, and note when GA4's default channel appeared, so a reclassification is not reported as growth. Wider evidence on whether AI referrals turn into business is in whether businesses are getting leads from ChatGPT recommendations.
What do people ask about tracking AI referrals in GA4?
Is AI referral traffic worth tracking if it is small?
Yes. It is usually a small share of sessions, but it shows which pages AI answers send people to.
Does GA4's AI Assistant channel include AI Overviews?
No. Google counts AI Overviews and AI Mode clicks as Organic Search.
Will a custom channel group change my historical reports?
Yes, in a useful way. Google says custom channel groups can be applied retroactively.
Why is my AI traffic lower in GA4 than in server logs?
Logs record every request, including those without JavaScript or consent, while GA4 records only visits it can measure and attribute.
Published by The Kovmere Team · updated Sep 29, 2026 · More resources