AI assistants now send visitors to B2B sites, and GA4 files those visits in more places than its new AI channel suggests. This playbook shows how to see them, group them and report them, and where the number stops being reliable.
The steps apply to any GA4 property where someone holds the Editor role. The Data Studio and BigQuery steps apply when the team reports outside the GA4 interface. Only clicks that carry a readable source or UTM tag can be grouped, so app visits stay in Direct and Google's own AI surfaces stay in Organic Search.
Does GA4 Track AI Traffic Automatically?
GA4 now sorts sessions from recognised AI assistants such as ChatGPT, Gemini and Copilot into a default AI Assistant channel by setting their medium to ai-assistant, and the channel switched on automatically, with no configuration by property owners. So the answer is yes, partly.
The rule behind the channel is short. In GA4, the default channel group's AI Assistant channel matches sessions whose medium exactly equals ai-assistant. GA4 sets that medium, and sets the campaign to (ai-assistant), when the visit's referrer matches its list of AI assistants.
Google's help page names ChatGPT, Gemini, Deepseek, Copilot and Grok as examples, and puts its source list in a downloadable spreadsheet linked from that page. Open that spreadsheet before you assume a given assistant is covered.
Three things follow for anyone reporting on AI search visibility.
- The channel is on by default. Nobody had to configure it, so it already appears in Traffic acquisition reports.
- The list belongs to Google. Google decides which referrers count, and a new or smaller assistant may not be on it.
- The rule needs a referrer. A visit that reaches the site with no referrer header and no tag cannot be matched to any assistant.
That last point is why the native channel is a starting number, not the full count. The next section shows where the other AI sessions go.
How To Read AI Source Medium In GA4
In GA4, AI sessions can sit in five places at once, because ChatGPT sessions split across AI Assistant, Referral and Unassigned while Perplexity stays in Referral, so the source / medium report shows them together. The channel total is a summary of rules, and the source / medium rows are the evidence underneath it.
Each place has its own cause, set by GA4's default channel rules.
Where AI sessions land in GA4
| Where it lands | Source / medium looks like | Why |
|---|---|---|
| AI Assistant | chatgpt.com / ai-assistant | Referrer on Google's AI list |
| Referral | perplexity.ai / referral | Source not on Google's list |
| Unassigned | chatgpt.com / (not set) | No other channel rule matched |
| Direct | (direct) / (none) | No referrer and no UTM tag |
| Organic Search | google / organic | AI Overviews and AI Mode clicks |
The Referral row follows from GA4's rule that a medium of referral, app or link goes to Referral. Perplexity is not on Google's AI list, so its visits keep the referral medium. Direct is a source of (direct) with a medium of (not set) or (none). Organic Search takes any source on Google's search-site list, which is why clicks from AI Overviews and AI Mode are counted there.
Unassigned is GA4's leftover bucket for sessions no other rule matches. A ChatGPT session with a missing medium ends up there, next to unrelated tagging faults.
To see the real spread on your own property, run this check before trusting the channel total.
- Open Reports, then Acquisition, then Traffic acquisition.
- Switch the report's dimension from Session default channel group to Session source / medium.
- Search the table for chatgpt, perplexity, gemini, claude and copilot.
- Note how many sessions each source has under each medium.
- Compare the sum with the AI Assistant channel's total.
The gap between that sum and the channel total is the part of AI traffic the native channel misses. When the gap is large, build the custom channel in section four.
Why AI Traffic Shows As Direct In GA4
AI traffic shows as Direct in GA4 when a visit arrives with neither a referrer nor a UTM tag, and after the GPT-6 release ChatGPT links briefly lost both, so ChatGPT visits fell by about 31k a day while direct rose by about 26k a day across about 500 pages in one Adobe practitioner's data, until the tagging returned.
That episode shows the general cause of dark AI traffic. GA4 can only attribute what the browser hands over.
- Apps and in-app browsers. Search Engine Journal's report on the AI Assistant launch notes that visits with no referrer header, from in-app browsers, mobile apps and copied links, still land in Direct.
- Copied links. A URL pasted from an AI answer into a new tab carries no referrer at all.
- Partial tagging. ChatGPT adds utm_source=chatgpt.com only to links in answers grounded in web sources, so other links depend on the referrer alone.
- New tagging. Gemini started adding UTM parameters to outgoing links without documenting them, so match Gemini by its hostname rather than by a tag value.
In the GPT-6 case, Adobe's Cedric Huesler later called the missing tags a bug and said ChatGPT links carried utm_source=chatgpt.com again. The lesson for reporting is that UTM tags are a vendor's product decision. They can disappear overnight and return just as fast.
Keep Direct separate from Unassigned. GA4 shows (not set) when it received no value for a dimension, and a (not set) source / medium is grouped as Unassigned. Google lists causes such as a missing session_start event, often from a Google tag not triggered on Initialization, sessions with no page_view event, and consent mode set up incorrectly or events sent with denied consent. Those are tagging faults on your side, and they need a tag fix rather than a regex.
For diagnosis, Google Tag Manager gives you the raw referrer to compare against GA4's grouping.
- What it adds: The built-in Referrer variable holds the full referrer URL for the current page, and Page URL holds the full URL of that page.
- Setup step: Enable both built-in variables and send them as event parameters on a GA4 event tag.
- Limitation: The capture starts when the tag is published and cannot recover referrers for past visits, and an app visit still arrives with an empty referrer.
With those parameters in place, a spike in Direct can be checked page by page. If the referrer field shows chatgpt.com while the session sits in Direct or Unassigned, the problem is grouping. If the referrer is empty, the visit is dark and no channel rule will recover it.
How To Create A Custom Channel Group For AI Traffic In GA4
To track AI referral traffic in GA4, an Editor creates a custom channel group under Admin, Data display, Channel groups, adds an AI channel matched on session source by regex and drags it above Referral, because a channel that matches on source and sits above Referral and Organic claims AI sessions before those channels do.
The reason is how GA4 evaluates a group. Traffic goes to the first channel whose definition it matches, in the group's order. Google's own help page says to place an AI Assistants channel above Referrals. Search Engine Journal's undercounting analysis goes further, with one custom channel matched on source and placed above both Referral and Organic Search.
- Confirm you hold the Editor role or above at property level
- Open Admin, then Data display, then Channel groups
- Copy the default channel group rather than editing from scratch
- Add a channel named AI Referral
- Set its condition to Session source matches regex, using the pattern in the next section
- Drag AI Referral above Referral and Organic Search
- Save the group
- Apply it as the dimension in Traffic acquisition and in explorations
- Compare its total with the source / medium check from section two
Copying the default group keeps the native AI Assistant channel and every other default rule intact. The new channel then picks up what the native one leaves behind, such as Perplexity referrals and ChatGPT sessions with a missing medium.
Before you build, check the slot count. Standard properties get 2 custom channel groups besides the predefined group, and GA4 360 properties get 5. Each group holds up to 50 channels. On a standard property where one custom group already exists for paid media or partners, add the AI channel to that group instead of spending the last slot on a new one.
Custom channel groups apply to reports retroactively. Once saved, the AI channel shows past months too, so a trend line is available on day one.
The tool layer for GA4 looks like this.
- What it adds: A single AI channel that collects AI sessions from AI Assistant, Referral and Unassigned into one line.
- Setup step: Copy the default group under Admin, Data display, Channel groups, add the AI channel and move it above Referral.
- Access needed: The Editor role or above at property level, and an open custom group slot out of 2 on standard or 5 on 360.
- Limitation: The channel only reads sessions with a source, so app visits stay in Direct and AI Overviews and AI Mode stay in Organic Search.
- Cost to run: Mostly staff time, an Editor's build session and a short review each quarter when assistants change their tagging.
Finish by reconciling. The AI Referral total should be close to the sum of AI sources you found in the source / medium view. If it is lower, a source is missing from the regex. If it is higher, the pattern is catching something that is not an AI assistant.
AI Referral Grouping Regex To Copy
A safe AI referral regex for GA4 matches whole hostnames such as chatgpt.com, perplexity.ai, gemini.google.com and claude.ai, because bare tokens like gpt or google pull in sources that are not AI assistants. Search Engine Journal's analysis makes the same point and recommends a boundary-aware pattern reviewed every quarter.
Paste this into the Session source condition of the AI Referral channel.
^(.*\.)?(chatgpt\.com|perplexity\.ai|gemini\.google\.com|claude\.ai|copilot\.microsoft\.com|deepseek\.com|grok\.com)$Each part has a job.
- The ^ and $ anchors make the pattern match the whole source value, so a source that only contains one of these words does not match.
- The optional (.*\.)? prefix allows a subdomain, such as a www prefix, in front of a hostname.
- Escaped dots (\.) match a literal full stop, not any character.
- gemini.google.com is listed and google.com is not. Google's AI Overviews and AI Mode count as Organic Search, and matching google would pull ordinary search traffic into the AI channel.
Google's own help example uses loose tokens such as .gpt. and .google.bard.*. Those are easy to read but risky. A token like gpt can match any source that happens to contain those letters, and google matches Google's search and ad sources too.
Review the list every quarter. Assistants change their domains and their tagging, as the GPT-6 and Gemini episodes showed, and a new assistant may start sending visits. Add a hostname when it appears in your source / medium report with meaningful sessions.
How To Track AI Referral Leads And Key Events In GA4
AI referral leads are tracked in GA4 by marking the lead form as a key event and reading key events by the AI channel, and concentration matters because ChatGPT sends 92.4% of trackable LLM referral traffic across 166 GA4 properties, so one vendor's change can move the whole channel.
Sessions alone say little to a B2B team. Leads show whether the channel earns a place in the plan. Set it up in three steps.
- In Admin, under Data display, click Events, find the demo request, contact form or sign-up event and click the star icon to mark it as a key event. Marking an existing event needs the Editor role or above.
- In Reports, Acquisition, Traffic acquisition, apply the AI Referral channel group and read key events and session key event rate for the AI row.
- In Explore, build an exploration of landing pages and session sources for AI sessions, with sessions and key events as values.
Standard reports can take up to 24 hours to show a newly marked key event, so judge the AI row a day after the change. The exploration then shows which pages AI visitors land on, and those pages are where the decisions sit.
Reading AI referral outcomes in GA4
| Metric | What it tells you | Decision rule |
|---|---|---|
| AI sessions by landing page | Which pages AI answers send to | Keep these pages current |
| Key events by AI channel | Leads that started with an AI click | Report beside Organic leads |
| Session key event rate | How well AI visits convert | Above site average, extend that page |
| AI sessions by source | How concentrated the channel is | One source dominant, watch its tagging |
The Previsible study behind that 92.4% figure covers 6.77 million LLM sessions from November 2024 to May 2026, and ChatGPT's share rose from about 84% in December 2025. For reporting, that concentration means one change at OpenAI can shift the channel, as the GPT-6 episode did across about 500 pages.
Treat vendor conversion claims with care. Microsoft Clarity's own study of 1,277 publisher and news domains found AI referrals under 1% of traffic, with LLM visits converting to sign-ups at 1.66% against 0.15% for search and 0.13% for direct. That is Microsoft's platform data on publisher sites, not a B2B sample. Measure your own session key event rate for a few months before you plan pipeline around AI referrals.
How To Report AI Referral Traffic In Data Studio
Data Studio, the name Google restored to Looker Studio in April 2026, reports AI referral traffic from the GA4 connector once the AI rule exists, and existing Looker Studio reports moved to the new name with no action needed. A dashboard puts the AI channel in front of people who never open GA4.
Data Studio (formerly Looker Studio) connects to more than 1,400 data sources, including Google Analytics and BigQuery, by Google's own count. For this report, the GA4 connector is enough.
Build the report in four steps.
- Add your GA4 property as a data source.
- Create a filter where Session source matches the regex from the section above, so the AI rule is the same in every tool.
- Add a monthly time series of AI sessions and key events, with Organic Search sessions as a second series for scale.
- Add a table of Session source and Landing page for AI sessions, sorted by key events.
Using the same regex in GA4 and in Data Studio keeps one definition of AI traffic across the team. When the regex changes in the quarterly review, change the Data Studio filter on the same day.
- What it adds: A shared dashboard for AI sessions and key events next to other channels, built on data sources such as Google Analytics and BigQuery.
- Setup step: Connect GA4, apply the AI source filter, then build the trend and the source table.
- Limitation: Data Studio shows only what the GA4 connector returns, so AI visits filed as Direct or Organic Search stay hidden here too.
- Cost to run: The self-service tier covers creating and viewing this report, and the spend to watch sits in the data source, since a chart built on BigQuery runs queries that BigQuery bills by data scanned.
How To Query AI Referral Traffic In BigQuery
In the GA4 BigQuery export, AI referral sessions are found through the session_traffic_source_last_click record, which holds session source and medium, so the AI channel built in GA4 has to be rebuilt in SQL from those two fields. BigQuery then gives session-level AI data in SQL.
Pick the right field. The session source sits in session_traffic_source_last_click.manual_campaign.source and .medium, available on every event. The traffic_source record holds the user's first-visit source, and on conversion events it holds cross-channel last-click attribution, so it answers a different question.
This query counts AI sessions and key events by source and landing page, using the same regex as section five.
WITH ai_events AS (
SELECT
user_pseudo_id,
(SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS session_id,
session_traffic_source_last_click.manual_campaign.source AS session_source,
event_name,
(SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location') AS page_location
FROM `{{project-id}}.analytics_{{property-id}}.events_*`
WHERE _TABLE_SUFFIX BETWEEN '{{start-date}}' AND '{{end-date}}'
AND REGEXP_CONTAINS(
session_traffic_source_last_click.manual_campaign.source,
r'^(.*\.)?(chatgpt\.com|perplexity\.ai|gemini\.google\.com|claude\.ai|copilot\.microsoft\.com|deepseek\.com|grok\.com)$'
)
),
ai_sessions AS (
SELECT
CONCAT(user_pseudo_id, CAST(session_id AS STRING)) AS session_key,
ANY_VALUE(session_source) AS session_source,
MAX(IF(event_name = 'session_start', page_location, NULL)) AS landing_page,
COUNTIF(event_name = '{{key-event-name}}') AS key_events
FROM ai_events
GROUP BY session_key
)
SELECT
session_source,
landing_page,
COUNT(*) AS sessions,
SUM(key_events) AS key_events
FROM ai_sessions
GROUP BY session_source, landing_page
ORDER BY sessions DESCThe query reads only the columns it needs and limits the date range through _TABLE_SUFFIX. Both habits keep the data scanned low, which is what drives BigQuery spend.
- What it adds: Session-level AI data in SQL, with the AI channel rebuilt from session_traffic_source_last_click source and medium.
- Setup step: Link the GA4 property to BigQuery in GA4 Admin and choose daily export, adding streaming export when the team needs current-day data within minutes.
- Access needed: A Google Cloud project with a BigQuery instance to export into, linked from GA4 Admin.
- Limitation: Standard GA4 properties export up to 1 million events a day, against up to 20 billion on 360, and exported data cannot be re-exported, so link the property before you need the history.
- Cost to run: Spend follows data scanned per query and storage, as the BigQuery pricing table shows.
BigQuery pricing
| Plan | Price | Billing | Notes |
|---|---|---|---|
| Standard Edition, default, monthly view | $29.20 | per month | |
| Enterprise Edition, default, monthly view | $43.80 | per month | |
| Enterprise Plus Edition, default, monthly view | $73 | per month | |
| Enterprise Edition, BigQuery CUD 1 year, per slot-hour | $0.05 | usage-based | |
| Enterprise Edition, BigQuery CUD 3 year, per slot-hour | $0.05 | usage-based | |
| Enterprise Edition, default (pay as you go), per slot-hour | $0.06 | usage-based | |
| Enterprise Edition, Resource CUD 1 year, per slot-hour | $0.05 | usage-based | |
| Enterprise Edition, Resource CUD 3 year, per slot-hour | $0.04 | usage-based | |
| Enterprise Plus Edition, BigQuery CUD 1 year, per slot-hour | $0.09 | usage-based | |
| Enterprise Plus Edition, BigQuery CUD 3 year, per slot-hour | $0.08 | usage-based | |
| Enterprise Plus Edition, default (pay as you go), per slot-hour | $0.10 | usage-based | |
| Enterprise Plus Edition, Resource CUD 1 year, per slot-hour | $0.08 | usage-based | |
| Enterprise Plus Edition, Resource CUD 3 year, per slot-hour | $0.06 | usage-based | |
| On-demand queries (1 TiB and above), per TiB | $6.25 | usage-based | |
| Standard Edition, BigQuery CUD 1 year, per slot-hour | $0.04 | usage-based | |
| Standard Edition, BigQuery CUD 3 year, per slot-hour | $0.03 | usage-based | |
| Standard Edition, default (pay as you go), per slot-hour | $0.04 | usage-based |
How To Check AI Referral Traffic In Microsoft Clarity
Microsoft Clarity labels visits from ChatGPT, Claude, Copilot, Gemini and Perplexity as AIPlatform or PaidAIPlatform in its Referrer card, which gives a GA4 setup a second count to check its AI channel against. It also shows what those visitors did on the page, which GA4 does not.
Microsoft Clarity
Free user behavior analytics tool with session recordings and heatmaps for website and app owners.
Microsoft Clarity is Microsoft's behavior analytics tool, with session recordings and heatmaps for website and app owners. For AI referrals, it adds a classification of AI visits that is independent of GA4's channel rules.
- Free plan
- Yes
- Platforms
- Android, Chrome extension, iOS, Web
- Compliance
- GDPR
Clarity splits AI visits into two groups. AIPlatform covers organic links in an AI chat answer. PaidAIPlatform covers paid ads shown inside an AI chat.
To find them, open the Clarity dashboard, go to the Referrer card and select the Channels tab. From there you can filter to AI visits, watch their recordings, open their heatmaps and download the data.
- What it adds: An AI channel classification for ChatGPT, Claude, Copilot, Gemini and Perplexity on their standalone sites, with recordings and heatmaps for AI visitors.
- Setup step: Open the dashboard's Referrer card, Channels tab, and filter to AIPlatform and PaidAIPlatform.
- Limitation: A hidden source shows as Direct, AI features embedded in search engines or office tools are excluded, and data from before the feature's release is not reclassified. Use Clarity as a check, not as a second total. The two tools count differently, so the numbers will not match exactly. A large and growing gap, though, is useful. If Clarity shows Perplexity visits that GA4's AI channel misses, the regex or the channel order needs another look.
What AI Referral Tracking Cannot Measure
AI referral tracking in GA4 counts only clicks that keep a readable source, and across 118,671 sites AI assistants sent about 0.46% of tracked traffic against 27.55% for search engines, so the AI channel is a floor rather than a measure of AI influence. It shows the clicks, not the conversations that never produced one.
The Ahrefs benchmark covers June 2025 to October 2026, with ChatGPT the largest AI source at 0.36% of tracked traffic. A small channel can still matter if its visits convert, so measure your own key event rate, and read the number on the dashboard as the smallest true value.
Two more limits matter for reporting.
- Google's AI surfaces cannot be isolated. Neither the native AI Assistant channel nor a custom channel separates AI Overviews or AI Mode from ordinary organic clicks.
- The source list moves. Tagging changes, as the GPT-6 episode showed, and AI answers also change which pages they cite. Read how often AI citations change before treating one month's AI sessions as a trend.
Report the AI channel with that framing. Say it counts trackable AI clicks, and keep visibility measures in a separate row.
Where AI Referral Data Fits In An AI Visibility Workflow
In an AI visibility workflow, GA4 referral sessions are the click outcome and sit next to citation and mention tracking as a separate signal, so a rise in citations without a rise in AI sessions points to the cited pages rather than the tracking. Prompt tracking and citation reports show visibility that may never produce a click.
Run the review monthly.
- Pull AI channel sessions and key events from GA4 or Data Studio.
- Put them next to citation share from your AI visibility tracker, in separate rows.
- When citations rise and AI sessions do not, open the cited pages and check what the answer sends readers to.
- When AI sessions rise and citations do not, check the source / medium view for a tagging change first.
Keeping the rows apart matters. The method to measure AI visibility without double-counting treats each signal with its own denominator, and it applies here.
The same goes for mentions. Teams that separate AI brand mentions from citations get a cleaner read on which visibility can produce a click at all.
Frequently Asked Questions
Does GA4 count AI Overviews as AI traffic?
No. GA4 counts clicks from Google AI Overviews and AI Mode as Organic Search, not as AI Assistant traffic, so neither the native channel nor a custom AI channel separates them. Leave google.com out of any AI regex, or ordinary search clicks will be counted as AI referrals instead.
Do I need Google Tag Manager to track AI traffic?
No. The native AI Assistant channel and a custom channel group are both built in GA4 Admin with no tag changes. Google Tag Manager helps with diagnosis, because its built-in Referrer and Page URL variables can be sent as event parameters to compare raw referrers with GA4's grouping.
Can custom channel groups be applied to old data?
Yes. GA4 applies custom channel groups to reports retroactively, so a new AI channel also shows past months. The native AI Assistant channel works differently, because sessions from before its rollout were not tagged with the ai-assistant medium, which makes the custom group the better choice for trends.
Does Gemini traffic show up in GA4?
Yes, when the visit keeps a referrer or a tag. Gemini is on Google's AI Assistant list, and gemini.google.com belongs in the custom regex. Gemini has started adding UTM parameters to outgoing links without publishing their values, so match it by hostname rather than by a guessed tag value.
Sources
Sources
- Google Analytics Adds AI Assistant As Default Channel Group · searchenginejournal.com
- How To Track AI Traffic In GA4 Without Undercounting It · searchenginejournal.com
- OpenAI Drops UTM Parameters From ChatGPT Results (GPT-6) · seroundtable.com
- Google Gemini Adds UTM Parameters For Referral Attribution · searchenginejournal.com
- ChatGPT commands 92% of AI referral traffic. Here's what 6.77 million sessions reveal. · searchengineland.com
- AI vs Search Traffic Analysis · ahrefs.com
- Built-in variables for web containers - Tag Manager Help · support.google.com
- Data Studio returns as new home for Data Cloud assets · cloud.google.com
- Mark events as key events - Analytics Help · support.google.com
- Default channel group - Analytics Help · support.google.com
- What the value (not set) means in your reports - Analytics Help · support.google.com
- AI Traffic Converts at 3x the Rate of Other Channels (Study) · clarity.microsoft.com
- Custom channel groups - Analytics Help · support.google.com
- AIPlatform and PaidAIPlatform | Microsoft Learn · learn.microsoft.com

