AI tools like ChatGPT, Perplexity, Claude, and Google Gemini are sending more traffic to websites. Most businesses can’t see this traffic properly in Google Analytics because AI platforms don’t always pass referrer information, so traffic appears as “Direct”.
This guide shows you how to track AI traffic in GA4 so you know where your visitors really come from.
How to Track AI Traffic
Method 1: Quick Check in Reports
Use this to see if you have AI traffic right now.
Steps:
- Go to Reports > Acquisition > Traffic acquisition
- Change the dropdown from “Session default channel group” to “Session source”
- Look for these sources:
- chatgpt.com
- perplexity.ai
- claude.ai
- gemini.google.com
- copilot.microsoft.com
If you see these, you have AI traffic. Move to Method 2 or 3 for proper tracking.
Method 2: Create a Saved Report
Create a report that shows only AI traffic.
Steps:
- Go to Reports > Library
- Find “Traffic acquisition” report, click the three dots (⋮)
- Select “Make a copy” and name it “AI Traffic”
- Click “Add filter”
- Set dimension to “Session source”, match type to “matches regex”
- Paste this pattern:
^(chatgpt\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|openai\.com)$
- Click “Apply” and “Save”
- Go to Library > “Edit collection” > drag your report into the menu > “Publish”
Now you have a one-click AI traffic report in your navigation.
Method 3: Create AI Channel Group
This is the best method. It automatically categorizes AI traffic as its own channel. It applies retroactively to all your historical data.
Steps:
- Go to Admin > Data display > Channel groups
- Click three dots (⋮) next to “Default channel grouping”
- Select “Copy to create new”
- Click “Add new channel” like “Traffics from AI”
- Set dimension to “Source”, match type to “matches regex”
- Paste this pattern:
^(chatgpt\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|openai\.com)$

- Click “Save channel”
- Important: Click “Reorder” and drag “AI Traffic” above “Referral”
- Click “Save group”
Why reorder matters: GA4 assigns traffic to the first matching channel in the list. If Referral is first, AI traffic gets labeled as generic referral.

How to use it:
Go to any acquisition report, change the channel grouping dropdown to your new “Channels + AI” group. AI Traffic now appears as its own channel.
Understanding the Regex Pattern
The pattern tells GA4 which domains are AI platforms. It looks complex but it’s simple:
^= start of domain$= end of domain|= OR (matches any of these)\.= literal dot in the domain
Current AI platforms in the pattern:
- ChatGPT: chatgpt.com, openai.com
- Perplexity: perplexity.ai
- Claude: claude.ai
- Gemini: gemini.google.com
- Copilot: copilot.microsoft.com
To add a new platform:
Add |newplatform\.com before the $ symbol.
Example: ^(chatgpt\.com|perplexity\.ai|deepseek\.com)$
Which Method to Use?
Method 1: Just checking if you have AI traffic
Method 2: You want a dedicated AI report
Method 3: You want permanent, automatic tracking (recommended)
Use Method 3 if you’re serious about tracking AI traffic. It’s the most complete solution.
Frequently Asked Questions
Why don’t I see any AI traffic?
Most AI traffic appears as “Direct” because AI platforms don’t pass referrer data. You’re only seeing the minimum. Your actual AI traffic is higher.
Can I see what question people asked the AI?
No. AI platforms don’t pass the user’s query, unlike search engines. You only see which page they landed on.
How much AI traffic is normal?
Average websites see about 0.17% of traffic from AI, but this is growing fast. Tech sites see more. ChatGPT accounts for about 78% of AI referrals, Perplexity 15%, Gemini 6.4%.
Is this real people or bots?
Check engagement metrics. Real users show normal session duration and behavior. Bots have very short sessions. AI referral visitors typically spend 6-10 minutes per session.
Do I need to update this regularly?
Yes. Check monthly for new AI platforms. Add them to your regex pattern when they start sending traffic.
Will this slow down my website?
No. These methods only organize data GA4 already collects. No new tracking code is added.
Conclusion
AI traffic is growing fast but most of it hides in your “Direct” traffic.
Use Method 3 (Channel Group) for automatic, permanent tracking. Update your regex pattern when new AI platforms launch. Check your reports monthly to see growth trends.
The AI traffic you track is only the minimum, the actual number is higher because of missing referrer data.





