How to Track AI Traffic in GA4: ChatGPT, Gemini, Grok, Perplexity and Claude
Google Analytics 4 (GA4) has an AI Assistant channel for recognized assistant traffic. Start in Traffic acquisition, inspect Session source / medium, then build a custom channel for verified assistant referrals the default misses. Keep Google's AI Overviews and AI Mode separate: their clicks belong to Organic Search. Neither report measures everyone who discovered your business through an AI answer.
On this page
The useful job is to understand which observable visits become worthwhile enquiries or customers, without treating missing attribution as proof of no influence. If you need help validating collection and conversions together, our GA4 and tracking setup service covers that implementation.
Match the candidate hosts below against session sources recorded in your GA4 property. Use the synthetic cases to validate the rule’s behaviour before enabling it in production, and keep unobserved candidate hosts separate from confirmed sources.
Where does AI traffic show up in GA4?
Open Reports, Acquisition, Traffic acquisition and find the AI Assistant row. Switch or add Session source / medium to inspect the recorded source behind those sessions. Use session dimensions for this visit-based question, rather than mixing them with first-user acquisition or key-event attribution. Traffic acquisition report.
Google introduced the channel on 13 May 2026. Its rule matches medium ai-assistant; when Google recognizes an assistant referrer, it assigns that medium and campaign (ai-assistant). The definitions name ChatGPT, Gemini, DeepSeek, Copilot and Grok, while the launch note also names Claude. Channel definitions, release notes.
Google does not publish the complete recognized assistant-host list on those pages. The downloadable source categories cover other channel families. Do not assume a named product guarantees classification for every browser, app, redirect and link-sharing path.
Use this reporting decision flow after examining the recorded session fields. It deliberately does not send every visit without a referrer to Direct: campaign parameters and other attribution context also matter.
Read diagram as text
- Inspect recorded session source and medium to Default AI Assistant?.
- Default AI Assistant? to Include in default AI baseline: Yes.
- Default AI Assistant? to Verified assistant referral?: No.
- Verified assistant referral? to Include in custom AI channel: Yes.
- Verified assistant referral? to Keep original channel and investigate: No.
- Include in default AI baseline to Compare meaningful outcomes.
- Include in custom AI channel to Compare meaningful outcomes.
- Keep original channel and investigate to Compare meaningful outcomes
How do you track each AI assistant in GA4?
Search for the assistant's recorded Session source, inspect its medium, and validate the actual click path. Product names in Google's documentation establish classification intent; they do not prove what a particular phone app sent to your site.
The hostnames below are candidates for testing. They are not a list of observed referrers from our property.
| Assistant | Candidate source value | Documentation evidence | What to verify |
|---|---|---|---|
| ChatGPT | chatgpt.com; legacy chat.openai.com | Named in channel definition | Actual URL parameters, referrer and final session medium |
| Gemini | gemini.google.com | Named in channel definition | Gemini app path versus a Google Search result |
| Grok | grok.com | Named in channel definition | Standalone Grok versus a journey through X |
| Perplexity | perplexity.ai | Named in custom-channel example and Source Group release | Default channel and any remaining Referral rows |
| Claude | claude.ai | Named in AI Assistant launch note | Web and mobile paths separately |
| Copilot | copilot.microsoft.com | Named in channel definition | Product surface and redirect chain |
| DeepSeek | chat.deepseek.com | Named in channel definition | Exact source spelling and medium |
Google's source-group update describes retroactive grouping for platforms including ChatGPT and Perplexity. Use Source Group where the reporting surface exposes it. Its availability and exact placement in your Explorations should be verified; it does not replace inspection of raw source values.
What should you check for ChatGPT?
Record the landing URL before and after redirects, including any campaign tags. A utm_source=chatgpt.com parameter is a label on the link; it is not the same thing as a browser referrer or a guaranteed final GA4 channel.
Do not assume that every ChatGPT link includes that parameter. Test the actual citation or link you use. An app click and a copied link can preserve different information, and lack of a campaign tag does not itself prove a Direct session.
How do Gemini and Google Search differ?
Treat a Gemini visit separately from a click on an AI Overview or AI Mode result. Google explicitly places those Search features in Organic Search. GA4 cannot separate all their clicks from ordinary Google organic clicks using the AI Assistant channel. Google's channel rules.
How should you track Grok inside X?
Test standalone Grok and Grok reached through X as separate cases. If a journey produces x.com or t.co, that source alone cannot prove Grok supplied the recommendation. Those hosts serve other X journeys too.
Record the starting surface, the clicked answer, landing page and final source/medium. Keep X referrals in their existing classification unless additional evidence identifies the specific journey. Check whether the actual Grok or X route appears under Organic Social before changing its classification.
How do you build an AI traffic report in GA4?
Build a session-based report that shows volume, landing pages and useful outcomes together. Start with the default channel, then compare your validated custom group on the same dates.
- In Traffic acquisition, select Session source / medium and inspect the
ai-assistantrows. Save the period and property timezone with your baseline. - Create a Free-form exploration. Import Session source, Session source / medium, Session default channel group and Landing page. Use a second tab for landing-page detail if the combined row breakdown becomes difficult to read.
- Add Sessions, Engaged sessions, Key events and Session key event rate. Select the business-relevant event where the interface supports event selection.
- For source investigation, filter Session source against your reviewed candidate list. Keep this diagnostic tab separate from the channel comparison because it could include a tagged campaign whose medium is paid or email.
- For the custom-channel comparison, use the session-scoped version of your saved group. Check the same date range, filters and key event before comparing totals.
- Share the agreed view and record its definition so another person can reproduce it.
Session key event rate measures the proportion of sessions with a key event, while Key events counts occurrences. Repeated events can therefore make a simple event count ÷ sessions calculation differ from that rate. Metric definitions.
Choose GA4 key events that reflect a useful outcome, such as a completed demo request or purchase. A page view marked as a key event may make the channel look successful without answering whether it produced demand.
You can also use GA4's AI assistance to request the same breakdown. Require the returned report to name its dimensions, date range and metric. An answer that combines first-user source with session conversion behaviour needs clarification before it goes into a performance review.
How do you catch AI assistants GA4 files as Referral?
Create a custom channel that retains the default AI Assistant classification and adds only referrals you have verified. Avoid a source-only rule that quietly moves your paid or email campaigns into AI traffic.
Google allows Editors or higher to create a group by copying an existing one under Admin, Data display, Channel groups. Channels use first-match order. Custom groups apply retroactively in reports; choosing a new primary group changes its values prospectively. Standard properties allow two custom groups, Analytics 360 five, with fifty channels per group. Custom-channel documentation.
For a proposed channel named AI assistants - verified, express this logic using separate condition groups:
Medium exactly matches ai-assistant
OR
(Source matches the reviewed host regex
AND Medium exactly matches referral)The second condition is deliberately conservative. If a verified app sends another medium, investigate and document that case before extending the rule. A hostname alone is insufficient evidence to override an explicitly tagged paid campaign.
Inspect the copied group first. If it already contains an AI Assistant channel, extend that channel's conditions; otherwise add the proposed channel and retain the medium condition above. Put it before Referral, review the rest of the ordering, then save. Select the custom group's session dimension in the report. Leave the primary channel setting alone unless changing that reporting definition is intentional.
Which regex avoids unrelated domains?
Use an anchored list of exact hosts, with literal dots escaped. The synthetic tests below are case-sensitive. Google documents full-match regex, but its channel-group guidance also contains a case-insensitivity note. Confirm the chosen reporting operator and custom-channel behavior in your property. Regex reference, channel-group guidance.
Start with this exact-host candidate, then validate it against the sources observed in your property:
^(www\.)?(chatgpt\.com|chat\.openai\.com|gemini\.google\.com|grok\.com|perplexity\.ai|claude\.ai|copilot\.microsoft\.com|chat\.deepseek\.com)$Google's broad sample contains terms such as .*gemini.* and .*bard.*. Those match unrelated strings such as gemini.com and bombardier.com. A generic “ends in ai” rule also includes unrelated businesses. This is why the candidate above names hosts rather than words that happen to resemble assistant brands.
Expected results for these synthetic inputs:
| Input source | Host-regex result | Proposed channel with stated medium | Reason |
|---|---|---|---|
chatgpt.com | Match | Included when medium is referral | Exact candidate host |
www.perplexity.ai | Match | Included when medium is referral | Explicit optional www |
claude.ai | Match | Excluded when medium is email | Preserve the campaign medium |
gemini.com | No match | Excluded | Different domain |
bombardier.com | No match | Excluded | Contains a misleading substring |
chatgpt.com.evil.com | No match | Excluded | Host suffix is not the assistant |
unrelated.ai | No match | Excluded | Domain ending alone proves nothing |
An unlisted source with medium ai-assistant still enters through the first condition. The regex does not replace Google's whole channel. Conversely, CHATGPT.COM fails this case-sensitive fixture: inspect actual capitalization and the match operator before adapting the rule.
Do not automatically add every new assistant domain or all its subdomains. Maintain a dated list containing the observed source, product surface, evidence and owner. Add Meta AI, Mistral or another assistant when your own collection confirms the relevant source value.
How do you confirm the tracking works?
Verify collection and final reporting separately. A regex passing a local string test proves only its matching logic; it does not prove that an assistant sends a referrer or that GA4 processed the session as expected.
- Choose a real assistant link to a page you control. Record the assistant, web or app surface, device, timestamp and destination.
- Capture the destination's campaign parameters and redirect chain. On a controlled debug device, inspect the first collected event's page location and referrer where available.
- Use Realtime to confirm arrival, and DebugView for event parameters when debugging is enabled. Neither is a substitute for the processed session report.
- After processing, inspect Session source / medium and both channel definitions for the same test. Record the observation, including a missing or unexpected value.
- Repeat on desktop and at least one phone app, then test a copied link separately. Change one condition at a time so failures remain explainable.
Google notes that privacy controls and denied Analytics consent can prevent events appearing in DebugView. Do not bypass those choices to make a test pass. DebugView documentation.
Use a log like this; these rows are a template, not completed tests:
| Test path | Evidence to capture | Processed result | Status |
|---|---|---|---|
| Assistant web citation | Timestamp, final URL, initial referrer | Source, medium, default/custom channel | Not run |
| Same assistant's phone app | App and device version, link path | Source, medium, default/custom channel | Not run |
| Copied destination link | Whether tags remain, new-session context | Source, medium, default/custom channel | Not run |
| Redirected landing page | Every redirect and parameter change | Final collection and classification | Not run |
Why does AI traffic appear as Direct, Referral or Unassigned?
The visible classification depends on the information GA4 receives and its applicable rules. A missing referrer, a new host and an unrecognized campaign medium are different problems with different remedies.
Use the GA4 Unassigned and (not set) diagnosis skill to investigate the recorded source fields before changing channel rules for assistant traffic.
| Observation | Possible explanation | Next check |
|---|---|---|
| Direct or an unexpected previous source | App/copy journey lost referral information, or attribution context differs | Inspect the actual URL, first event and session context |
| Referral from a verified assistant | Source was not recognized for that path | Add the reviewed referral condition to your custom group |
| Unassigned with assistant-looking campaign tags | The source/medium combination matched no channel rule | Review the complete tags using the Unassigned troubleshooting guide |
| Marketing-site visit loses its journey in the app | Cross-domain or referral configuration needs attention | Check GA4 cross-domain tracking before editing channel rules |
| No event during a click test | Consent, tag timing, blocking or collection failure | Check the collection path and the permitted consent state |
A person can also read an AI answer and return later through a brand search, bookmark or another device. Channel rules cannot reconstruct an unseen exposure. Keep referral exclusions and redirects in the investigation rather than “fixing” the result by relabeling all Direct traffic.
How do you see AI Overviews and AI Mode performance?
Use Search Console's Generative AI performance report for their impressions, and GA4 Organic Search for recorded Google search visits. The two tools measure different parts of the journey.
Google says the report rolled out worldwide on 31 August 2026. It provides impressions for AI Overviews and AI Mode by page, country, device and date, with no query dimension. Its data sits within the Web search total, so do not add it to that total again. A missing report can reflect insufficient impressions. Generative AI performance report.
An impression is neither a visit nor revenue. Compare landing-page outcomes and demand trends without claiming that every Google organic conversion came from an AI feature. Read those observations beside pipeline while keeping attribution separate from causal return on investment.
How do you measure the AI traffic GA4 can't see?
Use three separate observations: recorded assistant sessions, customers who say an AI tool helped them discover you, and associated qualified pipeline. In the CRM, preserve the customer's answer as a distinct discovery field rather than overwriting analytics source. Count each opportunity once when reporting pipeline, even when it appears in several evidence sets.
Use the form-tracking guidance to carry the source and self-reported answer into the CRM. The AI search measurement guide then connects those observations to pipeline without treating associated value as proven incremental return.
Which business outcomes make AI traffic worth tracking?
Track qualified enquiries, activation and purchases alongside sessions, then decide whether the result is large and consistent enough to change your work. A rising visit count alone is a weak reason to redirect a content budget.
Profound's July 2026 study followed a US panel from January to June. In its partial June ChatGPT sample, 2.47% of first post-exposure brand visits carried a product-matched AI referral parameter; over 97% lacked a UTM tag. This was an observational site-visit study, not a purchase study or randomized experiment. Those figures cannot estimate how much hidden AI demand your own GA4 property has. Profound's methodology and results.
If a guide attracts assistant referrals but no useful enquiries, inspect the landing page and offer before publishing twenty similar guides. If sales hears about AI discovery while referrals remain low, retain both observations and investigate the journey. Neither justifies inventing a multiplier for “untracked AI revenue.”
What does this look like for a 20-person SaaS?
A small software-as-a-service team can start with one report and a controlled classification change. It does not need a new attribution platform to establish whether the current data is trustworthy.
On day one, record the default channel, source/medium breakdown and meaningful key events. During the first week, verify candidate referral paths and reconcile one test outcome with the CRM. At month end, compare the unchanged default baseline with the reviewed custom group.
Suppose, hypothetically, the default channel contains 120 sessions and the custom group 155 for the same dates. If the custom group retains every default session and adds only 35 verified referral sessions, the additional share is 35 ÷ 155 = 22.58%, about 23% of the custom total. It is not 35 extra people, a universal undercount rate or proof that all AI influence has been recovered.
| Hypothetical monthly observation | Count | Interpretation |
|---|---|---|
| Default AI Assistant sessions | 120 | Unchanged native baseline |
| Additional verified referral sessions | 35 | Newly included by the reviewed rule |
| Custom AI channel sessions | 155 | Superset only if membership checks pass |
| Demo-request sessions within the custom group | 6 | Session key event rate of 6/155, about 3.87% |
| CRM demo requests naming an AI tool | 9 | Separate discovery evidence; may overlap those six |
Do not add six and nine to claim fifteen AI-sourced demo requests. Reconcile identifiers where permitted, examine duplicates and report the overlap explicitly. Review actual qualification and sales progression before making a budget decision.
Checklist
- The report uses consistent session scope and dates.
- Candidate hosts have a real click-path record before production use.
- The custom rule retains the native medium and protects paid/email classifications.
- Unrelated-domain and missing-data cases were checked.
- Key events represent useful business outcomes.
- Search impressions, sessions and CRM discovery answers remain separate.
- The saved definition and test log name an owner and review date.
For the classification checks, use the GA4 Unassigned and (not set) diagnosis skill to inspect source fields and missing values before changing assistant-traffic rules.
Want a second pair of eyes on your stack? Get the $99 martech audit. For collection or cross-domain problems, get a detailed tracking implementation scope that includes the acceptance tests and handover.
Keep reading
Browse all Tracking & Attribution guides
Tracking & AttributionGA4 setup for SaaS and apps: the events and settings that matter
Set up GA4 for a SaaS acquisition journey. Define events, test consent and cross-domain tracking, choose Ads goals and verify revenue, identity and export.
Jafrin Akter AloLast updated 14 min read
Tracking & AttributionGA4 Bounce Rate Looks Wrong? 5 Checks Before You Change the Page
Diagnose unexpected GA4 bounce rates. Check duplicate views, key events, engagement timers, session scope and weighted averages before changing your page.
Jafrin Akter AloLast updated 10 min read
Tracking & AttributionGoogle Analytics API: Reports, Configuration and Event Collection
Choose the GA4 Data API, Admin API or Measurement Protocol. Run a report, configure access, paginate results and plan quotas with practical examples.
Jafrin Akter AloLast updated 10 min read
GA4 and tracking setup
See the implementation scope, deliverables and acceptance checks.
Questions people ask
Can a GA4 source report reveal the prompt a visitor used?
The standard source report does not reveal the person's assistant conversation. A source value identifies recorded acquisition information, not the wording of a private prompt. Search Console's Generative AI report also has no query dimension. If you need discovery context, ask a voluntary, concise customer question and store the answer separately; do not infer their prompt from the page they visited.
Does blocking GPTBot also block ChatGPT search discovery?
OpenAI documents the controls separately: GPTBot concerns model training, while OAI-SearchBot supports ChatGPT search. Opting out of OAI-SearchBot excludes content from search answers, although navigational links can still appear. Decide those policies independently and check the deployed rules. The crawler-controls guide explains the site files; none of them guarantees referrals or citations. OpenAI crawler documentation.
Should our team invent an AI medium for links it controls?
Use documented UTM naming rules and preserve the real distribution channel. An email link should retain its email medium even if someone drafted the message with AI. The native assistant rule recognizes ai-assistant; a homemade value such as chatgpt is not equivalent. Verify the complete source/medium combination before using it, and never retag someone else's referral merely to improve a report.
How should we explain a historical jump after changing the regex?
Label it as a reporting-definition change until you have separated it from a real traffic change. Save the previous rule, effective edit date and a comparison for the same period under both versions. Report which source rows were added or removed. A retrospectively broader custom channel can increase the historical total without a single new visit occurring during that period.
Should a first visit and a later purchase use the same AI attribution field?
Keep the question and scope explicit. First-user acquisition, session acquisition and key-event attribution describe different relationships; they need not assign the same source. Use session fields for this guide's visit report, then show later outcomes under a separately defined attribution model or CRM association. Agreement between those views is useful evidence, but forcing them to match would erase information about the journey.
Sources
- Google Analytics Help: Traffic acquisition report.
- Google Analytics Help: Default channel groups.
- Google Analytics Help: 2026 release notes.
- Google Analytics Help: Custom channel groups.
- Google Analytics Help: Regular expressions.
- Google Analytics Help: DebugView.
- Google Search Console Help: Generative AI performance report.
- Profound: The AI mention effect. Published 1 July 2026.
- OpenAI: Crawlers and user agents.

Written by
Jafrin Akter AloData Engineer and Co-founder at Martechdevs and Growth and Analytics Partners
Jafrin writes practical guides to marketing technology, customer data, analytics and AI workflows. Martechdevs is a Growth and Analytics Partners company.