Is GA4 counting your traffic from ChatGPT, Perplexity, Claude, Gemini and Copilot?
A source-based GA4 workflow for measuring identifiable AI assistant referrals, testing attribution gaps and stating how much confidence the number deserves.
In brief
- GA4 records AI assistant visits that arrive with identifiable source data, so the total is a lower bound.
- A source-based custom channel group makes the included domains and
utm_sourcevariants auditable. - Direct and
(not set)traffic indicate leakage risk, not a quantity that can be assigned to AI. - Google AI Overviews clicks stay in Organic Search, outside the AI assistant referral total.
What GA4 can count
Google Analytics 4 (GA4) counts traffic from ChatGPT, Perplexity, Claude, Gemini and Microsoft Copilot only when the visit arrives with identifiable source data, so its artificial intelligence (AI) referral total is a lower bound rather than a complete count of assistant visits.
GA4 classifies a session from the evidence it collects: the referring domain, or campaign parameters such as utm_source on the landing URL. A visit that carries neither has nothing for a channel rule to match.
The boundary with Google is explicit: GA4 does not isolate clicks from Google AI Overviews. Those clicks arrive as Google organic search traffic and stay in Organic Search. Do not relabel Google organic sessions as AI referrals or add them to your assistant total.
Keep two questions separate. Inclusion asks whether each counted session has valid AI source evidence. Completeness asks whether the report captures every AI-originated visit. You can have high confidence in inclusion while knowing that completeness is limited.
Build an auditable AI channel group
A custom channel group lets you define exactly which session sources GA4 labels as AI assistant traffic.
-
Inspect the source rows first. Open
Reports > Acquisition > Traffic acquisitionand change the primary dimension toSession source/medium. Choose a complete date range and look for values such aschatgpt.com / referral,perplexity.ai / referralandclaude.ai / referral. A referring domain becomes the session source, while a manually tagged destination supplies itsutm_sourcevalue instead. -
Create a new channel group. Go to
Admin > Data display > Channel groups, selectCreate new channel groupand name itAcquisition with audited AI assistants. Keep the existing channels in the group so non-AI traffic stays classified as before. Check whether your default group already lists an AI-related channel; your own rule still matters, because you can read and extend it source by source. -
Add a channel named
AI assistants, audited. Add a condition withSourceandmatches regex, then use this explicit rule:^(chatgpt\.com|chat\.openai\.com|chatgpt|perplexity\.ai|perplexity|claude\.ai|claude|gemini\.google\.com|copilot\.microsoft\.com)$The rule covers the referring domains and bare source-name variants for the five assistants in this report. Avoid broad tokens such as
aiorgpt, which can capture unrelated sources. Add a new domain or source variant only after you observe it in your acquisition data. -
Put the rule before competing channels. Move
AI assistants, auditedaboveReferraland above any AI-related channel the group already contains, then save. Confirm the order took effect: rows from the listed sources should land in your channel, not inReferral. -
Read the new group in Traffic acquisition. Select your custom group as the primary dimension and keep the date range from step 1. No channel rule can recover a referrer that GA4 never collected.
For the main metric, divide sessions in your audited AI channel by all sessions in the same property and date range. Label the result identifiable AI referral share, not total AI traffic share. Keep Session source/medium alongside the channel view so the total remains traceable to its inputs.
Check the total against sources and landing pages
An exploration checks whether the channel total is supported by the individual sources and landing pages that compose it.
Create a free-form exploration with Session source, Session source/medium and Landing page + query string as rows. Add Sessions, Engaged sessions, Engagement rate and Key events as metrics. Filter Session source with the same assistant pattern, then compare the session sum with your channel report for the identical property and dates.
Inspect unexpected rows before interpreting engagement or key events. Confirm that each source belongs in your explicit list, and check which landing pages attract each assistant. If a row needs a new pattern, change the rule deliberately and rerun both views. Compare session-scoped dimensions with session-scoped totals; a first-user or event-scoped version of a channel dimension counts a different population.
Save the regular expression, the property, the reporting time zone, the date range and the last review date with the report. A channel definition without that context is difficult to reproduce.
Why assistant visits fall outside the count
GA4 loses assistant attribution when a visit arrives without a usable referrer or identifying campaign parameter.
- An app or browsing path can omit the referrer. Depending on how an assistant app opens a link, the visit may reach your site without a referrer and appear as
(direct) / (none). GA4 cannot classify it through your domain rule because the required evidence is absent. - A copied link loses its context. A destination copied from an assistant and pasted into a browser address bar, email or chat arrives without a referrer from the assistant. Nothing in the later visit connects it to the original answer.
- A redirect can discard campaign information. A redirect that drops the query string also drops
utm_sourceand any other campaign parameter. Preserve existing query strings on redirects you control, but do not invent source values after collection. - An explicit list can become incomplete. A new assistant domain or a different recorded source name will not match until you add it. Review unmatched acquisition rows on a regular schedule rather than treating the regular expression as permanent.
Direct traffic is therefore a leakage signal, not an AI traffic estimate. A rise in Direct sessions after an assistant cites a page may justify investigation, but timing alone does not establish attribution. Do not allocate Direct sessions to assistants proportionally or claim them as hidden AI visits.
Assess confidence before publishing the number
A defensible AI traffic report states confidence in both the counted rows and the coverage of the count.
| Test | Evidence to inspect | What it supports |
|---|---|---|
| Inclusion | Explicit source domains, exact matching rules and landing pages | Confidence that included sessions are identifiable assistant referrals |
| Leakage | Direct, (not set) and Unassigned sessions beside the AI total |
A warning that unobserved assistant visits may exist |
| Consistency | Channel total versus source rows with the same dates, property and scope | A reproducible total rather than an unexplained aggregate |
| Quality | Engaged sessions and key events by source and landing page | A view of visit quality without treating correlation as causation |
A low Direct share does not prove complete AI measurement. A high Direct share does not prove that the gap came from assistants. Report those observations as limitations, not adjustments.
Use this wording with your result:
From [start date] to [end date], GA4 recorded [N] sessions with an explicit source matching our AI assistant rule. This is a lower bound for assistant referrals. It excludes visits without identifiable source data and Google AI Overviews clicks, which GA4 records as Organic Search.
That statement separates the observed number from the unknown remainder and gives another analyst enough to reproduce the report and challenge the rule.
Automate the checks with EPIC.AEO
EPIC.AEO runs GA4 AI referral aggregation and measurement-health checks inside the AI agent a team already uses.
After a GA4 property is connected to a project, the get_ai_traffic_attribution tool groups referrals from ChatGPT, Perplexity, Claude, Gemini, Microsoft Copilot, You.com and Phind by engine, landing page or both. It reports sessions, engaged sessions, engagement rate, key events, transactions and revenue, diagnoses Direct and (not set) leakage, and recovers AI visits identified only by a utm_source value on the landing page. It also states the Google AI Overviews limitation in its output.
The run_measurement_health_audit tool calculates a Measurement Trust Score from 0 to 100. It deducts points for failed and warning findings across key events, seven-day traffic flow, suspicious traffic spikes, unexpected hostnames, data retention, event-create rules and the Google Ads link. That score describes measurement health; it is not a percentage estimate of AI attribution completeness.
Both tools read GA4 without changing the property and use no EPIC.AEO credits.
To run these GA4 checks inside your AI agent, request access to EPIC.AEO.
Questions and answers
- Does GA4 separate Google AI Overviews clicks?
- No. Google Analytics 4 records Google AI Overviews clicks as Google Organic Search and cannot isolate them as AI assistant referral traffic.
- Why can AI assistant traffic appear as Direct in GA4?
- Google Analytics 4 can record a visit as Direct when the assistant app or browsing path passes no referrer and the destination URL carries no campaign parameter.
- Is a custom AI channel a complete count of AI referrals?
- No. A custom channel in Google Analytics 4 counts only sessions whose recorded source matches its rules. Missing referrers, copied links and unlisted source variants keep other assistant visits outside the channel.