Attribution
How to track traffic and sales from ChatGPT and other AI assistants
ChatGPT tags many of its links, and GA4 now has an AI Assistant channel. But a lot of AI influence still arrives as direct or branded search. Here is how to see both halves.
Yforms team, Product & growthPublished Updated 9 min read
On this page
If you're asking how to track traffic from ChatGPT, the good news is that part of it is easy: ChatGPT tags many of the links it shows, and Google Analytics 4 now has a channel for AI assistants. The hard part is everything else. Plenty of shoppers read a recommendation in ChatGPT, close the app and search for your brand later. That shows up as direct or Google. This guide covers both halves: finding AI referrals in GA4 and Shopify, and catching the rest by asking customers in a post-purchase survey.
Why AI search is hard to attribute
An AI assistant influences a purchase in three different ways, and tracking sees only one of them well.
| What the shopper does | What your analytics sees | Trackable? |
|---|---|---|
| Clicks a link to your site in the answer | A visit from chatgpt.com, usually tagged | Mostly |
| Reads your brand name, later types your URL | A direct visit | No |
| Reads your brand name, later searches it on Google | Organic or paid search, often branded | No, and search gets the credit |
The second and third paths look exactly like the dark social problem: real influence, no trail. And because an assistant often names a brand without needing a click, those paths may be common for product recommendations. No public data tells you the split for your store. You have to measure it.
There's a second problem. Your attribution model decides what happens when an AI visit is followed by another one. A shopper who clicks through from ChatGPT, leaves, and comes back a week later from a Google search will usually be credited to Google. The AI visit happened and was tracked, but it doesn't own the sale.
What ChatGPT links pass today
OpenAI's publisher FAQ says ChatGPT automatically adds the UTM parameter utm_source=chatgpt.com to referral URLs, so sites can measure traffic from ChatGPT (OpenAI (opens in a new tab)). In June 2025 the tag was extended to links in the “More” section of answers, not only citations (Search Engine Roundtable (opens in a new tab)).
It isn't guaranteed. In October 2026, analysts noticed ChatGPT links arriving with no UTM tag and no referrer for about a week, so the visits were recorded as direct. It was described as a bug, and tagging came back by October 15 (Search Engine Roundtable (opens in a new tab)). If your ChatGPT numbers dip and direct rises on the same pages, check for a repeat before you conclude anything.
- A clicked link usually carries utm_source=chatgpt.com, and often a chatgpt.com referrer.
- A copied or forwarded link may or may not keep the tag, depending on what was copied and where it was pasted. Don't count on it.
- No link at all passes nothing. That's the brand name read and typed later.
How to check ChatGPT traffic in GA4
GA4's default channel group now includes an AI Assistant channel. Google describes it as users arriving from sources like ChatGPT, Gemini, Deepseek, Copilot or Grok. Sessions from a recognized assistant get the medium “ai-assistant”. Google's AI Overviews and AI Mode are not included (Google (opens in a new tab)). They stay in organic search.
- Open Reports, then Acquisition, then Traffic acquisition.
- Set the primary dimension to Session default channel group and look for AI Assistant.
- Switch to Session source / medium to see which assistant sent each visit.
- Add a comparison or filter for source containing “chatgpt” to see ChatGPT alone, including any visits that landed in Referral.
Google doesn't publish the full list of referrers the AI Assistant channel recognizes. Perplexity, for one, isn't named. Check where your Perplexity visits land before you assume they're counted.
Building an AI-referrer channel group
If you want control over which sources count as AI, build your own channel group. Standard GA4 properties can have two custom channel groups, and they apply to past data as well as new (Google (opens in a new tab)).
- In Admin, open Data display, then Channel groups, and copy the default group.
- Add a channel called AI assistants. Set the condition to source matching a regex such as: chatgpt\.com|perplexity|gemini\.google|copilot\.microsoft|claude\.ai
- Move it above Referral and Organic Search, because GA4 assigns a session to the first channel whose rule matches.
- Save, then use the new group as a dimension in your acquisition reports.
Review the regex every few months. New assistants appear, and existing ones change domains.
Finding AI referrals in Shopify analytics
Shopify records the referrer and UTM tags of the sessions before each order. That makes it the better place to see sales, not just visits, from AI.
- In Shopify's analytics, look at sessions and orders by referring source or by UTM source, and filter for chatgpt.com and the other assistants.
- On a single order, the conversion details show the sessions Shopify linked to it, with their source and UTM tags. Useful for spot checks.
- Remember the attribution model. Under the default last non-direct click model, a ChatGPT visit followed by a later Google search gives the order to Google. See our guide to Shopify marketing attribution.
Expect these numbers to be small next to what customers tell you. That gap is the point of the next section.
The gap: AI influence that shows up as direct
Tagged clicks give you a floor for AI traffic, not the total. To estimate the rest, look for the indirect signs:
- Branded search grows without a matching rise in ads, PR or creator activity.
- Direct new-customer orders grow on product pages, not just the home page. People rarely type a product URL from memory, but they do paste one from an AI answer.
- Customers mention it. Write-ins such as “ChatGPT”, “asked AI”, or “Gemini recommended you” appear under Other in your survey.
None of these alone proves AI is the cause. Together, and especially with survey answers, they tell you whether it's worth acting on.
Branded search is the easiest of the three to watch. In Google Search Console, filter queries that contain your brand name and track clicks per week. A steady climb with no change in your own activity means people are hearing your name somewhere. AI answers are one candidate. Word of mouth, creators and press are others. The survey is how you tell them apart.
Asking customers: adding AI to your HDYHAU options
The most direct way to catch the untracked paths is to ask. Add an AI option to your “How did you hear about us?” question on the Thank you page. Our how did you hear about us survey guide covers the rest of the list.
- Main option: “ChatGPT or another AI assistant”. One option keeps the list short.
- Follow-up, only for people who pick it: “Which one?” with ChatGPT, Gemini, Perplexity, Google AI answers, Copilot, Claude and Other.
- Optional second follow-up: “What did you ask it?” as a short text. The answers show you which prompts surface your brand, which is useful for the next section.
Keep “Google search” as its own option. Some shoppers will treat Google's AI answers as search, and that's fine. The follow-up separates them.
Combining referral and survey data
Each month, put three numbers side by side for AI assistants:
| Measure | Where from | Example |
|---|---|---|
| AI-referred sessions | GA4 AI Assistant channel or your custom group | 1,200 sessions |
| Orders with an AI referrer | Shopify, by UTM source or referrer | 18 orders (0.9%) |
| Buyers who say AI | Survey share x total orders | 5% of answers, about 100 orders |
In this example, tracked AI orders are a fraction of what buyers report. The ratio between the two is your rough multiplier for AI influence. Watch whether the ratio is stable. If the survey share climbs while tracked orders stay flat, more of the influence is happening off-click.
Keep the comparison honest. Survey answers depend on memory and on who answers. Someone may say ChatGPT when they mean they used it to compare two brands they already knew. Read it as direction, over several months.
A monthly AI reporting template
Keep one row per month in a sheet with these columns. It takes ten minutes once the reports are saved.
- Month.
- AI-referred sessions, split by assistant (ChatGPT, Gemini, Perplexity, other).
- Orders and revenue with an AI referrer from Shopify, under the one attribution model you always use.
- Survey share for “ChatGPT or another AI assistant”, new customers only.
- Estimated AI orders from the survey: share x new-customer orders.
- Ratio of estimated to tracked orders.
- Branded search clicks from Google Search Console, as a cross-check.
- Notes: tracking outages, new content, press, anything that explains a jump.
After three to six months you'll know whether AI is a rounding error or a channel worth planning for, and whether the tracked numbers alone would have told you.
Common mistakes with AI attribution
- Reading the AI Assistant channel as the total. It's tagged clicks only. The untracked paths are often bigger.
- Comparing across the date the channel appeared. If AI sessions used to sit in Referral and now sit in their own channel, a jump in AI traffic may just be a relabel. Compare by source, not channel, across that change.
- Trusting a single week. Tagging outages like the one in October 2026 can move traffic from AI to direct overnight.
- Ignoring Google's own AI answers. AI Overviews and AI Mode count as organic search in GA4, so they're invisible in the AI channel. Only the survey follow-up separates them.
- Adding five AI options to your survey. One option plus a follow-up keeps the main list short.
What to do when AI is a real channel
If both your referral data and your survey say AI assistants bring buyers, it's worth some work. The practice is sometimes called generative engine optimization (GEO). The basics overlap with good SEO:
- Let the search crawler in. OpenAI's OAI-SearchBot is the crawler that surfaces sites in ChatGPT search, and sites that block it won't appear in ChatGPT search answers (OpenAI (opens in a new tab)). Check your robots.txt. Blocking GPTBot, the training crawler, is a separate choice.
- Answer the questions shoppers ask. Clear product pages with materials, sizing, use cases and who it's for. Comparison and FAQ pages in plain language.
- Be talked about elsewhere. Reviews, press, Reddit threads and creator content are what assistants read about you. Word of mouth feeds AI answers too.
- Use the prompts customers give you. The “What did you ask it?” answers tell you which questions to make sure your site answers well.
- Keep measuring. Re-check GA4, Shopify and the survey monthly. AI referral behavior changes quickly.
Questions
How do I check ChatGPT traffic in GA4?
Open Traffic acquisition and look at the AI Assistant channel in the session default channel group, then switch to session source / medium to isolate chatgpt.com. ChatGPT links usually carry utm_source=chatgpt.com, so a filter on source containing “chatgpt” also works. Some ChatGPT visits may still land in Referral or Direct.
Can you track LLM traffic in Google Analytics?
Partly. GA4's AI Assistant channel covers sources such as ChatGPT, Gemini, Deepseek, Copilot and Grok, and you can build a custom channel group with your own regex for others like Perplexity. What GA4 can't see is people who read an AI answer and later type your URL or search your name.
Does ChatGPT pass referrer data?
Usually, for clicked links. OpenAI says ChatGPT adds utm_source=chatgpt.com to referral URLs. That has failed at times, such as about a week in October 2026 when links arrived with no tag or referrer before it was fixed. Copied brand names and URLs typed later pass nothing, so they show as direct.
How do I know if customers found us through AI search?
Combine three signals: AI-referred sessions and orders in GA4 and Shopify, a rise in branded search or direct new-customer orders you can't explain, and what buyers tell you. Adding “ChatGPT or another AI assistant” to your post-purchase “How did you hear about us?” question is the most direct of the three.
Should “ChatGPT” be an option in a “how did you hear about us” survey?
Yes, if you sell products people research. Use one option, “ChatGPT or another AI assistant”, to keep the list short, and add a follow-up asking which one. Read the Other write-ins too, since some buyers will type the assistant's name there anyway. Review the share monthly alongside your referral data.
Start free on Shopify
Hear from every customer after they buy.
Yforms asks one short question on your thank-you page, when the order arrives and after use. Free for up to 200 orders a month, and every new store gets 14 days of Growth.