# How to Track ChatGPT Traffic and Other AI Referrals in GA4 and Shopify

Source: https://www.smartecomseo.com/blog/track-chatgpt-traffic-ga4-shopify/  
Published: 2026-09-22  
Updated: 2026-09-29

GA4 now has an AI Assistant channel, but it misses history, unlisted assistants and some ChatGPT clicks. Here is the regex, the channel group, the exploration and the Shopify reports we use to track AI traffic properly.

## Key takeaways

- GA4’s built-in AI Assistant channel (medium “ai-assistant”) is a good start, but Google names only examples of the assistants it recognizes, not the full list, and it excludes AI Overviews and AI Mode.
- A custom channel group matching session source with an anchored regex, plus an OR rule on the AI Assistant channel, catches more assistants and applies to historical data.
- ChatGPT’s utm_source=chatgpt.com can override the referrer, so some sessions land in Unassigned as chatgpt.com / (not set). Match on source, never on medium.
- In Shopify, use Sessions by referrer, Total sales by referrer and each order’s conversion summary. AI Overviews, referrer-less app clicks and answers without clicks stay invisible, so track branded search as the proxy.

To track ChatGPT traffic in GA4, start with the built-in AI Assistant channel in the Traffic acquisition report. Then build a custom channel group that matches AI referrers by session source with a regex, so you also catch older data and assistants Google doesn't recognize. In Shopify, open Sessions by referrer and Total sales by referrer and filter for ChatGPT and the other assistants.

Neither tool sees everything. Clicks from Google's AI Overviews and AI Mode count as Google organic, some AI clicks arrive with no referrer and land in Direct, and many buyers read an AI answer without clicking at all. Below is the exact setup we use on Shopify stores, the regex you can paste, and what to use for the parts analytics can't see.

## What utm_source=chatgpt.com means

`utm_source=chatgpt.com` is a tracking parameter ChatGPT adds to many of the links it shows. When someone clicks through to your store, the landing URL carries it, so analytics tools can attribute the visit to ChatGPT. You don't need to add it and you can't control it.

It has one side effect in GA4. When a URL carries UTM parameters, GA4 uses them instead of the referrer, and ChatGPT sets a source but no medium. Depending on how the click arrives, you may see the visit as `chatgpt.com / referral`, as `chatgpt.com / (not set)` inside the Unassigned channel, or, since May 2026, with the `ai-assistant` medium. That's why every rule below matches on **source**, not medium.

## Step 1: Check GA4's built-in AI Assistant channel

In May 2026 Google added an AI Assistant channel to GA4's [default channel group](https://support.google.com/analytics/answer/9756891). Its definition: the medium exactly matches `ai-assistant`, and GA4 sets that medium (and the campaign `(ai-assistant)`) when the referrer matches its list of AI assistants.

To see it, go to **Reports > Acquisition > Traffic acquisition** and keep the primary dimension on the default channel group. If you've had AI visits since the rollout, AI Assistant appears as its own row.

Know its limits before you report on it:

- **Google hasn't published the full list** of assistants it recognizes. Its help page names examples (ChatGPT, Gemini, DeepSeek, Copilot, Grok), so you can't check coverage.
- **It excludes Google's AI Overviews and AI Mode.** Those clicks stay in Organic Search.
- **Treat it as forward-looking.** Google hasn't said it relabels sessions from before the rollout. Custom channel groups, which do apply to historical data, are how you see the trend.
- **It needs a referrer.** Visits that arrive without one land in Direct, or in Unassigned if they carry only a utm_source.

## Step 2: Build an AI channel group in GA4

A [custom channel group](https://support.google.com/analytics/answer/13051316) fixes most of those gaps. Standard GA4 properties allow two custom groups with up to 50 channels each, and custom groups apply to past data as well as new data.

Here's the regex we use for the session source condition:

```text
^(.*\.)?(chatgpt\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|copilot\.com|edgeservices\.bing\.com|deepseek\.com|grok\.com|meta\.ai|chat\.mistral\.ai|you\.com|phind\.com|poe\.com)$
```

Why it's written this way:

- **GA4 regex is full match by default** ([Google's regex reference](https://support.google.com/analytics/answer/1034324)), so the pattern describes the whole source value.
- **`(.*\.)?` allows subdomains**, so `chat.openai.com` matches through `openai.com` and `chat.deepseek.com` through `deepseek.com`.
- **Dots are escaped**, so `chatgpt.com` can't match a lookalike such as `chatgptxcom`.
- **No generic words** like `ai` or `gpt` on their own, which would sweep in unrelated sites.

Now build the group:

1. Go to **Admin > Data display > Channel groups**.
2. Open **Default Channel Group** and choose **Copy to create new**, so every standard channel carries over. Name it something like "Channels incl. AI".
3. If the copy includes an **AI Assistant** channel, edit it. If not, click **Add new channel** and name it "AI Assistants".
4. Set the condition to **Source matches regex** and paste the regex. Add an **OR** condition: **Default channel group exactly matches AI Assistant**, so anything Google recognizes that your regex doesn't is still included.
5. Save the channel, click **Reorder**, drag it to the top (above Referral and Unassigned, which would otherwise claim the traffic first) and click **Apply**. GA4 puts each session in the first channel it matches.
6. Save the group.

To use it, open **Reports > Acquisition > Traffic acquisition**, click the primary dimension dropdown and pick your new group.

> **Split out ChatGPT:** ChatGPT usually sends the most AI traffic. Add a "ChatGPT" channel above the general AI channel with the source condition `^(.*\.)?(chatgpt\.com|openai\.com)$` to report on it separately.

## Step 3: Build an AI traffic exploration

Channel groups tell you how much. An exploration tells you where AI visitors land and whether they buy.

1. Go to **Explore > Blank** (a free-form exploration).
2. Add dimensions: **Session source**, **Session source / medium**, **Landing page + query string**, **Session default channel group**, your custom channel group and **Device category**.
3. Add metrics: **Sessions**, **Engaged sessions**, **Engagement rate**, **Key events**, **Ecommerce purchases** and **Purchase revenue**.
4. **Tab 1, sources:** rows = Session source, filter Session source matches regex (paste the regex). This is your AI traffic by assistant.
5. **Tab 2, landing pages:** rows = Landing page + query string, same filter. Expect many visits to land straight on product pages, because assistants deep-link to the products they recommend.
6. **Tab 3, comparison:** rows = your custom channel group, same metrics, no filter. Compare AI visitors with Organic Search on engagement, purchase rate and revenue per session.

Before you trust the regex, run a discovery pass: in Tab 1, change the filter to Session source **partially matches regex** `gpt|openai|perplexity|claude|gemini|copilot|deepseek|grok|mistral`. Any AI source that shows up there but isn't in your channel regex gets added to it.

Purchase data only appears if GA4 receives your Shopify purchase events, which is the case when GA4 is connected through Shopify's Google & YouTube app. If purchases are missing, fix that before judging AI revenue.

## Step 4: Track ChatGPT traffic in Shopify

Shopify's reports count sessions and orders independently of GA4, and every order is recorded whether or not the visitor accepted analytics cookies, so use Shopify as the revenue reference.

1. **Sessions by referrer.** In the admin, go to **Analytics > Reports**, choose the Acquisition category and open [Sessions by referrer](https://help.shopify.com/en/manual/reports-and-analytics/shopify-reports/report-types/default-reports/acquisition-reports). Shopify's own guidance is to filter by referrer channel for ChatGPT, Perplexity, Copilot or Claude, and to filter the referrer host for `gemini.google.com` to find Gemini.
2. **UTM source.** In the same report, add a filter on UTM source for `chatgpt.com` to catch ChatGPT clicks that carried the parameter.
3. **Total sales by referrer.** In the Sales category, [Total sales by referrer](https://help.shopify.com/en/manual/reports-and-analytics/shopify-reports/report-types/default-reports/sales-report) shows revenue by referrer source and host. Filter the host for the AI domains.
4. **Order conversion summary.** Open any order under **Orders** and look at the [Conversion summary](https://help.shopify.com/en/manual/orders/conversion-summary). It shows where the customer's first visit came from, and **View conversion details** shows the visit history. For high-ticket stores, check your largest orders each month: a first visit from ChatGPT three weeks before a $4,000 order is exactly the pattern totals hide.
5. **Agentic checkout.** If you sell through Shopify's [agentic storefronts](https://help.shopify.com/en/manual/online-sales-channels/agentic-storefronts), orders from AI channels show channel or referrer attribution in the admin. Check them in Total sales by sales channel as well. Our explainer on [ChatGPT Shopping for Shopify stores](/blog/chatgpt-shopping-shopify/) covers how those orders flow.

Shopify's own data gives a sense of scale: in Q1 2026, [AI referral sessions to Shopify storefronts grew more than 8x and AI-referred orders nearly 13x](https://www.shopify.com/enterprise/blog/ai-search-insights) year over year. Small numbers today can move fast.

> **Why GA4 and Shopify won't match:** The two tools define sessions differently, filter bots differently, and GA4 may not record visitors who decline cookies where consent is required. Expect gaps. Use Shopify for orders and revenue, GA4 for behavior and landing pages, and compare trends rather than totals.

**Want AI traffic tracked properly from day one?** Our AI visibility audit sets up AI channels in GA4 and Shopify, runs your buyer prompts in ChatGPT, Perplexity and Google, and shows where you’re cited and where you’re missing. [See the AI visibility audit](/geo-agency/ai-visibility-audit/)

## What GA4 and Shopify can't see

| Blind spot | Why it's invisible | What to use instead |
| --- | --- | --- |
| Clicks from Google AI Overviews and AI Mode | Google [counts them in Search Console's Web totals](https://developers.google.com/search/docs/appearance/ai-features) and in Organic Search, with no separate line | Search Console trends for question-style queries and the pages they land on |
| AI clicks with no referrer | Some app clicks, copied links and privacy settings strip the referrer, so visits land in Direct | Direct sessions landing on deep product pages; a post-purchase survey |
| Answers with no click | The buyer reads the recommendation, then searches your brand days later | Search Console's [branded queries filter](https://developers.google.com/search/blog/2025/11/search-console-branded-filter): a rising branded trend |
| Purchases inside AI apps | Agentic checkout may not create a normal storefront session | Shopify orders by sales channel |
| Visibility itself | Analytics only sees visits | A monthly prompt set: are you named, and which sources are cited? |

Visibility is the part most stores never measure. Our [AI visibility audit](/geo-agency/ai-visibility-audit/) starts there: which prompts name you, which sources the assistants cite, and which competitors appear instead.

Two proxies deserve more weight than they get. A **post-purchase survey** ("How did you first hear about us?") with ChatGPT and "another AI assistant" as options catches visits analytics lost, and for high-ticket brands the same question belongs on sales calls. And **branded search** is where AI influence often shows first, which is why our guide to [how AI Overviews cite stores](/blog/google-ai-overviews-ecommerce/) tracks it alongside citations.

## A monthly AI traffic report

| Metric | Source |
| --- | --- |
| AI sessions by assistant | GA4 custom channel group, exploration Tab 1 |
| Top AI landing pages | GA4 exploration Tab 2 |
| AI purchase rate and revenue per session vs Organic Search | GA4 exploration Tab 3 |
| AI-referred orders and revenue | Shopify Total sales by referrer |
| Large orders with an AI first visit | Shopify order conversion summaries |
| Branded clicks and impressions | Search Console, branded queries filter |
| Prompts where you're named, and cited sources | Monthly prompt set |

We put these in the same monthly report as rankings, traffic and revenue; the [sample monthly SEO report](/sample-monthly-seo-report/) shows the format. When the landing page tab shows which products AI assistants send people to, improve those pages first, then work on being named more often: our guides to [ranking in ChatGPT](/blog/how-to-rank-in-chatgpt/) and [getting into the “best of” lists AI cites](/blog/how-to-get-recommended-by-chatgpt/) cover that side.

## FAQs

### What does utm_source=chatgpt.com mean?

It is a tracking parameter ChatGPT adds to many of the links it shows. When someone clicks from ChatGPT to your site, the landing URL includes it, so GA4, Shopify and other analytics tools can attribute the visit to ChatGPT. You don’t need to add it. Because it sets a source without a medium, filter by source when you look for this traffic.

### Why does ChatGPT traffic show as Unassigned or Direct in GA4?

Unassigned usually means the visit carried utm_source=chatgpt.com with no medium, so GA4 used the UTM tag instead of the referrer and couldn’t place it in a default channel. Direct means no referrer arrived at all, which happens with some app clicks and copied links. A custom channel group that matches session source catches the first case; the second needs proxies.

### Does GA4 have an AI traffic channel?

Yes. Since May 2026 the default channel group includes AI Assistant, defined by the medium ai-assistant, which GA4 sets when the referrer matches its list of AI assistants. Google names examples but hasn’t published the full list, and the channel excludes AI Overviews and AI Mode. A custom channel group with a source regex adds coverage and shows historical data.

### Can you track Google AI Overviews traffic in GA4?

Not separately. Clicks from AI Overviews and AI Mode arrive as Google organic traffic, and Google includes them in Search Console’s overall Web search totals without a separate filter. The closest proxies are Search Console trends for question-style queries, the landing pages those queries reach, and manual checks of which of your pages AI Overviews cite.

### How do I see ChatGPT sales in Shopify?

Go to Analytics > Reports and open Total sales by referrer, then filter the referrer host for chatgpt.com and other AI domains. Sessions by referrer shows visits, filterable by referrer channel and UTM source. For individual orders, the conversion summary on the order page shows where the customer’s first visit came from, which matters for high-ticket purchases.