To track AI referral traffic from ChatGPT and Gemini in Google Analytics 4, you need to set up custom filters and channel groups since GA4's default configuration miscategorizes AI traffic as direct or referral sources.
Quick Method: Search for AI Sources
The fastest way to identify ChatGPT and Gemini traffic is to:
- Go to Reports → Traffic acquisition
- Change the dimension dropdown to Session source / medium
- Search for "chatgpt" or "gpt" to find ChatGPT referrals (appearing as "chatgpt.com / referral")
- Search for "gemini" to find Gemini traffic (appearing as "gemini.google.com / referral")
To see which pages received clicks from these sources, click the + next to the primary dimension and add Landing page + query string.
Advanced Method: Create a Custom Channel Group
For cleaner reporting and trend analysis, create a dedicated AI traffic channel:
- Go to Admin → Data display → Channel groups and click Create new channel
- Name it "AI Traffic Channels" and add a new channel called "AI Traffic"
- Set the Source condition to Matches regex and use this pattern:
^.*(chatgpt\.com|gemini\.google\.com|openai\.com|perplexity\.ai|copilot\.microsoft\.com).*
Alternatively, use this more comprehensive regex:
(?i).*(openai|chatgpt|copilot|perplexity|claude|anthropic|writesonic|poe|neeva|nimble|bnngpt|edgeservices|gemini\.google|bard\.google|google.*bard|bard.*google|gemini.*google|gpt\b).*
- Important: Reorder your AI channel to appear before the "Referrals" channel in your channel group hierarchy, otherwise AI traffic will continue to be classified as referral traffic.
Key Referrer Patterns to Track
| AI Platform | Referrer Pattern |
|---|---|
| ChatGPT | chat.openai.com, chatgpt.com |
| Gemini | gemini.google.com, bard.google.com |
Note: ChatGPT also adds UTM parameters (utm_source=chatgpt.com) to outbound links, making it easier to track than other AI platforms. Google AI Mode traffic typically appears as organic or direct traffic and is not easily tracked as a distinct referrer.
Analyzing AI Traffic Behavior
Once tracked, you can analyze which pages AI users discover by going to Engagement → Landing Pages, filtering by your AI traffic sources, and sorting by clicks. This reveals which content AI platforms cite to solve user problems. You can then query ChatGPT directly to understand what prompts trigger citations of your pages.










Maple Ranking offers the highest quality website traffic services in Canada. We provide a variety of traffic services for our clients, including website traffic, desktop traffic, mobile traffic, Google traffic, search traffic, eCommerce traffic, YouTube traffic, and TikTok traffic. Our website boasts a 100% customer satisfaction rate, so you can confidently purchase large amounts of SEO traffic online. For just 720 PHP per month, you can immediately increase website traffic, improve SEO performance, and boost sales!
Having trouble choosing a traffic package? Contact us, and our staff will assist you.
Free consultation