In short
A dedicated AI traffic channel groups, on a single row of the reports, all the visits sent by AI assistants: ChatGPT, Perplexity, Gemini, Copilot, Claude, Le Chat, DeepSeek, Grok. GA4 and Matomo now offer one by default; this task consists of checking that it really covers your sources and, if needed, creating your own version with a list you control. Once it is done, AI traffic can be read at a glance, with its conversions, without being diluted among referral sites.
Why it matters
For a long time, analytics tools filed these visits under “Referral”, alongside blogs and directories. They stayed buried there: impossible to follow their trend without filtering by hand every month.
Google Analytics 4 (GA4) has added an “AI Assistant” default channel, which groups visits from sources such as ChatGPT, Gemini, Deepseek, Copilot or Grok, based on a list maintained by Google. Matomo did the same from version 5.5 with the AI Assistants channel type. These default channels have two limits:
- You do not control the list. An assistant that matters in your market may be missing, or be added later than the others.
- They do not always apply to the past. Matomo states that its channel only concerns data collected after the update. A custom channel group in GA4, on the other hand, applies to existing data.
Creating your own channel solves both points and gives a stable, documented definition that you can reproduce in Looker Studio, BigQuery or a spreadsheet.
What it improves
- Readability An “AI Assistants” row in the acquisition reports, with sessions, engagement, key events and revenue.
- History A GA4 custom group recalculates past data, which gives you a trend immediately.
- Comparison AI traffic can be compared directly with organic search and the other channels.
- Alerts and dashboards A stable channel serves as the basis for drop alerts and periodic reports.
- Rankings and citations No effect. It is a measurement, not a lever. No practice guarantees a citation in an AI answer.
How to check
- In GA4,
Reports > Acquisition > Traffic acquisition, dimension “Session default channel group”. The “AI Assistant” row should appear if the site receives this traffic. - Switch the dimension to “Session source” and search for
gpt,perplexity,gemini,copilot,claude,mistral. Any AI assistant source classified somewhere other than AI Assistant (often “Referral” or “Unassigned”) points to a gap. - If you have a custom group, select it in the dimension picker of the same report: the “AI Assistants” channel should group all these sources.
- In Matomo,
Acquisition > All Channels: an AI Assistants row should appear for recent data.
How to implement
Before you start
First draw up the list of referring domains actually present in your data: see identify ChatGPT, Perplexity, Gemini, Copilot and Claude referrers (opens in a new tab). The regular expression below is the starting version:
.*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|chat\.mistral\.ai|chat\.deepseek\.com|grok\.com|meta\.ai).*
The .* at the start and end make the expression work whether the tool requires a full or a partial match. Dots are escaped (\.) so that they only match a dot. Avoid broad patterns such as .*gpt.* or .*ai.*: they catch unrelated sites whose names contain those letters.
With Google Analytics 4
You need the Editor role on the property. A standard property accepts two custom channel groups in addition to the default group; a 360 property accepts five.
Admin > Data display > Channel groups.- Open the default group, three-dot menu, “Copy to create”: starting from a copy keeps all the standard channels. Name the group, for example “SEO-GEO channels”.
- Click “Add new channel” and name it “AI Assistants”.
- “Add condition group”: dimension “Source”, operator “matches regex”, value: the expression above.
- In the same group, add a condition joined with OR: dimension “Medium”, “exactly matches”
ai-assistant. This is the medium GA4 assigns to visits it recognizes as coming from an assistant, and the one you can use in your own UTM parameters. - “Save channel”.
- Click “Reorder” and drag “AI Assistants” above “Referral”, then “Apply”. Traffic is assigned to the first channel whose conditions it meets: placed below, your channel would receive nothing.
- “Save group”.
The group then appears as a dimension in the acquisition reports (dimension picker above the table), in explorations and in audience conditions. It applies to existing data: the trend over past months is visible immediately.
To see the breakdown by assistant, add “Session source” as a secondary dimension.
Warning: do not add
organic, exactly like a click on a classic result: catching them would send all Google search into your AI channel.
If the interface rejects an expression that is too long, split it into two “Source” conditions joined with OR.
With Matomo
Matomo 5.5 and later
The AI Assistants channel type exists natively. It includes ChatGPT, Copilot, Gemini, Claude, Le Chat, Meta AI, iAsk and Perplexity among others, and is shown in Acquisition > Overview, Acquisition > All Channels and in a dedicated Acquisition > AI Assistants report. It only applies to visits recorded after the update: earlier visits remain under websites or direct entry.
To filter any report, create a segment on channel type equal to ai (referrerType==ai) and save it for all users of the site.
To cover an assistant missing from Matomo's list, add a second segment on the referrer URL (see below) and compare the two.
Matomo 5.4 and earlier
Create an “AI Assistants” segment on the referrer URL, with “contains” conditions joined with OR. As a segment definition:
[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
In the segment selector, choose “Add new segment”, then the referrer URL dimension with the “Contains” operator, one row per domain joined with OR. Make the segment visible to all users of the site. A segment only applies to past periods if the raw visit data is still retained.
Update Matomo as soon as possible to benefit from the native channel.
With Looker Studio
If your dashboards read GA4 through the Looker Studio connector, create a calculated field in the data source (Resource > Manage added data sources > Edit > Add a field):
CASE
WHEN REGEXP_MATCH(Session source, r".*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|chat\.mistral\.ai|chat\.deepseek\.com|grok\.com|meta\.ai).*") THEN "AI Assistants"
WHEN Session medium = "ai-assistant" THEN "AI Assistants"
ELSE Session default channel group
END
REGEXP_MATCH requires a match on the entire string, hence the .*. Depending on the interface language, field names may be displayed translated (“Source de la session” in French): use the name offered by the formula editor. The r prefix declares a raw string: without it, Looker Studio may require you to double every backslash.
With BigQuery
If the property exports to BigQuery, apply the same rule in your queries to get a definition identical to the one in the reports:
SELECT
CASE
WHEN REGEXP_CONTAINS(collected_traffic_source.manual_source, r'chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai')
THEN 'AI Assistants'
WHEN REGEXP_CONTAINS(NET.HOST((SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_referrer')), r'chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai')
THEN 'AI Assistants'
ELSE 'Other'
END AS canal,
COUNT(*) AS sessions
FROM `mon-projet.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20261001' AND '20261031'
AND event_name = 'session_start'
GROUP BY canal
ORDER BY sessions DESC;
Replace the project name, the dataset ID and the dates. The query counts session starts, broken down by UTM source or, failing that, by referrer. Event parameters vary with the implementation: check that page_referrer is present in your export.
Document the definition
Record in your measurement documentation, in one line: the creation date, the regular expression in force, its position in the group and the name of the owner. Review the list every quarter: assistants change domains (ChatGPT moved from chat.openai.com to chatgpt.com, Gemini from bard.google.com to gemini.google.com) and new ones appear. See document the limits of attribution (opens in a new tab).
Common mistakes
- Placing the channel below “Referral”: the Referral rule catches the visit before yours does.
- Using patterns that are too broad (
.*ai.*,.*gpt.*) that catch unrelated sites. - Including
googleto catch AI Overviews: all Google search then switches to the AI channel. - Forgetting UTM parameters: a visit tagged
utm_source=chatgpt.comwithoututm_mediumcan fall into “Unassigned” if your rule only looks at the referrer. The condition on the source covers this case. - Creating a different channel in each tool: GA4, Looker Studio and BigQuery must share the same list.
- Never reviewing the list: an assistant that changes domain silently disappears from the channel.
Frequently asked questions
Does GA4 have a channel for AI traffic?
Yes. The GA4 default channel group includes an AI Assistant channel, which groups visits from sources such as ChatGPT, Gemini, Deepseek, Copilot or Grok, based on a list maintained by Google. It excludes AI Overviews and AI Mode, which are counted as organic search. A custom channel group is still useful to control the list of assistants and apply the definition to past data.
Why does my custom AI channel stay empty in GA4?
Most often, the channel is placed below Referral in the group's order. GA4 assigns each visit to the first channel whose conditions it meets: the Referral rule catches the visit before yours does. Open the group, click Reorder, place AI Assistants above Referral, then save. Also check that the regular expression matches the sources actually present.
Does Matomo detect traffic from ChatGPT?
Yes, from Matomo 5.5. This version introduced an AI Assistants channel type that includes ChatGPT, Copilot, Gemini, Claude, Le Chat and Perplexity among others, with a dedicated report in the Acquisition menu. It only applies to visits recorded after the update. On an earlier version, create a segment on a referrer URL that contains chatgpt.com and the other domains.
Can traffic from Google's AI Overviews be separated into a channel?
No, not at present. Clicks from Google's AI Overviews and AI Mode arrive with the source google and the medium organic, like a click on a classic result, and GA4 excludes them from its AI Assistant channel. No channel rule can tell them apart. Search Console also counts them in web search, with no dedicated filter.
Resources
- Google Analytics Help: Default channel groupsupport.google.com
- Google Analytics Help: Custom channel groupssupport.google.com
- Matomo: How to track and analyze traffic from AI assistantsmatomo.org
- Matomo: 5.5.0 release notesmatomo.org
- Looker Studio: REGEXP_MATCH functiondocs.cloud.google.com
- Google Analytics: BigQuery export schemasupport.google.com
Updated on
Topic checklist (PDF)