AI Referral Traffic Dashboard Template
Short answer
To report AI referral traffic, create a GA4 custom channel group with an "AI Assistants" channel whose Source matches a regex of AI assistant hostnames such as chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com, and claude.ai, and place it above Referral. Then report it in an exploration or Looker Studio. Agent Commerce Optimization's starter gives you a tested regex, sample data, and setup steps.
Key takeaways
- There is no hosted dashboard: this is a documented starter you build in your own GA4 property.
- Google's help says to put the AI channel above Referral, because traffic goes to the first channel it matches.
- Standard GA4 properties allow two custom channel groups (five on 360), and Google says they apply to reports retroactively.
- The regex is anchored so look-alike hosts such as notchatgpt.com don't match.
- AI referrals are a floor, not a total: AI search features, in-app browsers, and purchases completed inside AI platforms are partly or wholly invisible here.
How can I report AI referral sessions and conversions?
Do it in three layers: a channel definition in GA4, an exploration for analysis, and optionally a Looker Studio report for sharing. The channel definition is the part that matters. The rest is presentation.
- 1
Open channel groups
In GA4, go to Admin > Data display > Channel groups. You need the Editor role or higher on the property.
- 2
Create a new group
Click "Create new channel group". It starts as a copy of the default group, so existing channels keep working.
- 3
Add the AI channel
Click "Add new channel", name it "AI Assistants", add a condition on Source, choose "matches regex", and paste the regex from the builder below. Save the channel.
- 4
Order it above Referral
Click "Reorder" and drag AI Assistants above Referrals. Google's help explains that traffic goes into the first channel whose definition it matches.
- 5
Save and check
Save the group, then open Reports > Acquisition > Traffic acquisition and switch the primary dimension to your new channel group. Google says custom channel groups apply to reports retroactively.
What regex identifies AI assistant referrals?
Pick the sources to include, then paste referrer URLs or Source values from your own GA4 property to see what matches. The output uses the form ^(.*\.)?(host|host)$, which matches a hostname and its subdomains (www.perplexity.ai) and nothing else. Google's own help example uses broad patterns like .*gpt.*, which also match unrelated sources. We tested this one against the synthetic lines preloaded below.
1. Choose AI sources
2. Regex for the GA4 channel condition
111 characters. Anchored with ^ and $, so it matches the host or any subdomain and does not match look-alike hosts.
3. Test against your own referrers
| Input | Source value tested | Matches | Assistant |
|---|---|---|---|
| https://chatgpt.com/ | chatgpt.com | yes | OpenAI ChatGPT |
| https://www.example-store.com/p/tee?utm_source=chatgpt.com | chatgpt.com | yes | OpenAI ChatGPT |
| perplexity.ai / referral | perplexity.ai | yes | Perplexity |
| https://www.perplexity.ai/search/abc | www.perplexity.ai | yes | Perplexity |
| https://gemini.google.com/app | gemini.google.com | yes | Google Gemini |
| copilot.microsoft.com | copilot.microsoft.com | yes | Microsoft Copilot |
| https://claude.ai/ | claude.ai | yes | Anthropic Claude |
| google / organic | no | — | |
| https://mail.google.com/ | mail.google.com | no | — |
| https://notchatgpt.com/ | notchatgpt.com | no | — |
| l.facebook.com / referral | l.facebook.com | no | — |
7 of 11 lines match. The sample lines are synthetic.
Runs entirely in your browser. Nothing you paste or upload is sent to a server or stored.
| Assistant | Hostname(s) | Notes |
|---|---|---|
| OpenAI ChatGPT | chatgpt.com, chat.openai.com | chat.openai.com is the legacy host. Links may also carry utm_source=chatgpt.com, which GA4 reports as Source, so the same regex covers it. |
| Perplexity | perplexity.ai | Subdomains such as www. match. |
| Google Gemini | gemini.google.com | Clicks from AI features inside Google Search come from Google Search, so we expect them under google / organic, not here (inferred). |
| Microsoft Copilot | copilot.microsoft.com | Bing search traffic reports as bing. |
| Anthropic Claude | claude.ai | |
| Optional: Meta AI, DeepSeek, Mistral Le Chat, You.com | meta.ai, chat.deepseek.com, chat.mistral.ai, you.com | Off by default. Add them only after you see them in your Source values. |
How do I set up a GA4 exploration for AI traffic?
- 1
Create a free-form exploration
In GA4, open Explore and start a blank free-form exploration.
- 2
Add dimensions
Import your custom channel group (session scope), Session source, and Landing page. Google says custom channel groups are available as dimensions in explorations.
- 3
Add metrics
Import Sessions, Engaged sessions, Key events, and Purchase revenue (or your ecommerce metrics).
- 4
Build the table
Rows: the channel group, then Session source. Values: the metrics. Filter to the AI Assistants channel for a source-level view.
- 5
Add a landing-page tab
Duplicate the tab and swap Session source for Landing page to see which products and guides AI referrals reach.
Explorations are subject to the property's data retention setting (two months by default, per Google's help), so set retention before you need historical comparisons.
How do I build the Looker Studio version?
Looker Studio can show the same view for stakeholders who don't use GA4. (On 2026-11-29, Google's function documentation was titled "Data Studio"; the steps are the same.) Download the synthetic sample data to prototype the layout before you connect live data.
- 1
Prototype with the sample CSV
Create a report, add data with the File Upload connector, and upload the sample CSV. Every row is labeled SYNTHETIC.
- 2
Connect GA4
Add a Google Analytics data source and choose your GA4 property.
- 3
Create the AI channel field
If your custom channel group appears in the field list, use it. If it doesn't, add a calculated field with the formula below. We could not confirm in Google's Looker Studio documentation on 2026-11-29 whether custom channel groups are always exposed.
- 4
Add charts
A time series of Sessions by AI channel, a table of Session source with Sessions, Key events, and revenue, and a table of Landing page filtered to AI Assistants.
- 5
Add the caveat text box
Put the attribution caveats from this page on the report, so readers don't treat the number as all AI commerce activity.
CASE
WHEN REGEXP_MATCH(Session source, '^(.*\\.)?(chatgpt\\.com|chat\\.openai\\.com|perplexity\\.ai|gemini\\.google\\.com|copilot\\.microsoft\\.com|claude\\.ai)$')
THEN 'AI Assistants'
ELSE 'Other'
ENDLooker Studio formulas may need backslashes doubled inside the quoted pattern, as shown. If the field shows no matches, test the pattern in the builder above, then check the escaping.
How do I avoid treating referrals as all AI commerce activity?
Report AI referrals as "sessions that arrived with an AI assistant as Source", which is a measurable floor, not the total influence of AI on sales. Several kinds of activity never show up as an AI referral:
| Activity | How it appears in GA4 | Observable? |
|---|---|---|
| Click from an assistant's web app with a referrer | AI Assistants channel | Yes |
| Click from a mobile app or in-app browser that strips the referrer | Often Direct | Partly (inferred, not attributable) |
| Shopper reads an AI answer, then searches your brand or types your URL | Organic Search or Direct | No |
| AI features inside Google Search | Expected as google / organic (inferred) | Not separately in standard GA4 channels |
| Purchase completed inside an AI platform's own checkout | May not create a session on your site at all | In platform or order data, not GA4 sessions |
| Agent or crawler fetching pages without running JavaScript | Usually not recorded | Server logs only |
To see more of the picture, join GA4 with order data from your platform, including orders from agentic channels your platform reports. The guide to measuring AI shopping traffic and sales covers that join, and agentic commerce monitoring is the managed version.
What does this starter cover, and what can't it prove?
| Covers | Cannot prove |
|---|---|
| A tested regex for the Source values you supply | That every AI visit carries an identifiable Source |
| Channel-group steps from Google's help | That a channel's sessions caused the purchases attributed to them |
| An exploration and Looker Studio layout | Total AI influence on revenue |
| Synthetic sample data for prototyping | Benchmarks: the sample numbers are invented for layout and mean nothing |
Is my referral data sent anywhere?
No. The regex builder runs in your browser, and lines you paste for testing are not uploaded or stored. The GA4 and Looker Studio setup happens in your own Google accounts. We never see it unless you share access.
Frequently asked questions
Is there a hosted dashboard I can copy?
No. Agent Commerce Optimization does not host a dashboard or ask for access to your analytics. This page gives the definitions, regex, layout, and sample data so you can build it in your own GA4 and Looker Studio accounts.
Does ChatGPT add utm_source=chatgpt.com to links?
OpenAI's publisher guidance has described tagging ChatGPT search links with utm_source=chatgpt.com, but we could not confirm that text on OpenAI's current help page on 2026-11-29. Either way, GA4 records the value as Source, so the regex matches both the referrer hostname and that tag. Check your own Source values.
Why not use a broad regex like .*gpt.* or .*ai.*?
Broad patterns match unrelated sources: "ai" matches mail.google.com, for example. An anchored hostname list is stricter. Add a new assistant when you see its hostname in your data.
Should the AI channel go above Referral?
Yes. GA4 assigns traffic to the first channel whose definition matches, in channel order. Google's help tells you to place an AI Assistants channel above Referrals.
Will this show traffic from AI features in Google Search?
Not separately. Those clicks come from Google Search, so we expect them in organic search in standard channels (an inference, not a documented GA4 rule). This channel covers standalone assistant apps such as Gemini at gemini.google.com.
How do I count purchases made inside an AI platform?
Use your commerce platform's order data. Orders placed through an agentic checkout may never create a session on your site, so GA4 alone can't count them. Report them alongside the referral numbers, not inside them.
Need reporting that goes past referrals?
We set up monitoring that joins GA4 with platform order data and agentic channel reports, with the caveats written in.
Related
Sources
- Google Analytics Help: Custom channel groups
- Google Analytics Help: Explorations
- Google Cloud: REGEXP_MATCH (Looker Studio / Data Studio functions)
- Google Analytics Data API: API schema (custom channel group dimensions)
- Google Search: AI features and your website
Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.