Guide · updated 27 November 2026
How to track traffic from ChatGPT
Are buyers arriving from ChatGPT, Perplexity and the other AI tools? Here is how to find them in Google Analytics 4 in five minutes, and where GA4 falls short.
- AI visits show up in GA4 under Session source, for example
chatgpt.comorperplexity.ai. - Use the filter below to group them in one report.
- Some AI visits carry no referrer (especially from apps) and land under “(direct)”. Treat the numbers as a minimum.
Step 1: Open the traffic report
Go to Reports → Acquisition → Traffic acquisition. Change the primary dimension to Session source so you see the domains visits came from.
Step 2: Filter on AI tools
Add a filter on Session source with the condition matches regex, and paste:
chatgpt\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.mistral\.ai|meta\.ai|grok\.com|deepseek\.comNow you only see visits from AI tools, with engagement and conversions per tool. Save the report so you can follow it month by month.
Step 3: Make a permanent channel (optional)
Under Admin → Data display → Channel groups you can create a new channel “AI” with the same regex on source. Put it above “Referral”, otherwise the visits are counted as ordinary referrals.
What GA4 can't see
- Visits without a referrer. When someone copies a link from an AI app or opens it in another app, often no referrer is sent. The visit becomes “(direct)”.
- What the buyer asked. AI tools don't pass the question along. No analytics tool can see it.
- Whether you were mentioned at all. Traffic only shows those who clicked. How often AI names you (or a competitor) without a click has to be measured by asking AI the questions.
Tie AI traffic to sales
SourceTrace has a small tracker (about 3 KB) that recognises visits from 16 AI tools and links them to purchases and sign-ups, so you see revenue per AI tool. It only sets a cookie when a link carries campaign tags (utm), and it never records what people type.
See how to install it · Read the AI search optimization guide