Key Takeaways:
- Learn how to build a custom GA4 Exploration report to uncover traffic from AI tools like ChatGPT, Claude and Perplexity.
- See how to use a Regex filter to isolate AI referral traffic that would otherwise stay buried in Google Analytics.
- Find out which pages on your site are getting the most AI traffic so you can spot what is already working.
- Understand why certain types of content, like blog posts and structured service pages, tend to perform better in AI search.
- Use this data to guide your SEO strategy and build more content that performs well in both traditional and AI search.
How To Track AI Traffic in GA4
Most websites are already getting traffic from AI tools. That's great, right? While a few visits here and there from AI search tools IS great, the problem is that almost nobody is tracking it.
That means your site could be showing up in tools like ChatGPT, Claude, and Perplexity—and you wouldn’t even know it.
In this AI traffic report guide, you’ll learn how to uncover that AI traffic inside Google Analytics using a simple custom Exploration report that utilizes a Regex filter. More importantly, you’ll see how to use that data to figure out what’s actually working in AI search and how to improve your content to start coming up more.
Why AI Traffic Is Hard to See in Google Analytics
Google Analytics has a TON of features, reports, insights, etc,, but when it comes to knowing how to find specific information (like where AI traffic is coming from), it can be a little challenging. The reason why is because Google Analytics doesn’t clearly label AI traffic.
Visits from tools like ChatGPT, Claude, and Perplexity are typically grouped into referral traffic, making them easy to miss unless you know how to pull them out.
This creates a blind spot for many businesses that are trying to do their best to optimize for today's search landscape. AI search is growing fast, but without visibility, it’s difficult to understand:
- Which tools are sending traffic
- How much traffic you’re getting
- Which pages are performing
Once you can see that data, you have a better picture of what adjustments to make to your content strategy.
How to Track AI Traffic in GA4 (Step-by-Step)
The good news is that you can uncover AI traffic in just a few minutes using a custom Exploration report! Read on and I'll show you exactly how to do that in Google Analytics (GA4).
Step 1: Create a New Exploration Report
Once you've opened up analytics, you need to make a new custom report. Follow these steps to get one made:
- Open your Google Analytics property
- Click Explore in the left-hand menu
- Select Blank Exploration
Name your report something like: AI Traffic – Exploration
Set your date range (last 28 days is a good starting point). This will give you the most recent data, but if you're a seasonal business, you may want to go back further than that.
Step 2: Add Dimensions
On the left-hand side of the screen, click the + icon under Dimensions and when the search bar comes up, add:
- Session source
- Page location
Click the checkmark next to each dimension to add them to your dimensions section. Click Confirm on the top righthand part of your screen to save.
Step 3: Add Metrics
Go back to the left-hand side of your screen and right below "Dimensions", you'll see a button called "Metrics". Add the following metrics:
- Sessions
- Engagement rate
- Active users
Again, click the checkboxes to add the metrics to your GA4 AI traffic report and click Confirm on the top right of the screen again.
Step 4: Build the AI Traffic Report
In your report settings (the secondary menu to the right of where you just were), go over to "Rows" and press the plus sign:
- Add Session source to Rows
- Add Page location to Rows
Then scroll down to the section that says "Values", and add:
- Sessions
- Engagement rate
- Active users
You've now added the X and Y Axis values to populate the Google Analytics traffic report. Now on to the custom regex filter to add in the AI traffic!
Step 5: Apply the AI Traffic Filter (Regex)
This is the key step that allows you to filter AI traffic by either ChatGPT, Claude, Perplexity or Gemini. You'll be inputting a regular expression (also known as a Regex) into the filter section to get us the report metrics we want.
Scroll down to Filters and:
- Select Session source
- Set the condition to Matches regex
Paste in the following Regex expression EXACTLY into the "Enter Expression" field:
(chatgpt|openai|anthropic|deepseek|grok)\.com|(gemini|bard)\.google\.com|(perplexity|claude)\.ai|(copilot\.microsoft|edgeservices\.bing)\.com|edge\scopilot
This regular expression will pull out all the traffic coming from AI tools like:
- ChatGPT
- Openai
- Perplexity
- Claude
- Gemini
Then click Apply.
What You’ll See in the GA4 AI Traffic Report
Once the Regex filter is applied to your Google Analytics explorations AI traffic report, your table will populate with:
- AI tools sending traffic (ChatGPT, Claude, Perplexity, etc.)
- The pages they’re sending users to
- How many sessions each page is receiving
The AI traffic report is sorted by the pages getting the most sessions (or traffic) from AI referrals, down to the least.
Exporting Your Full GA4 AI Traffic Data
By default, GA4 shows a limited number of rows (typically only 10). To download the full dataset of pages that are getting referral traffic from AI Tools, do the following:
- Click Export data (top right)
- Select Download as CSV
This gives you a complete view of your AI referral traffic that Google Analytics is tracking.
How to Use This AI Traffic Data to Improve Your SEO
Just finding out the traffic you're getting from AI search tools like ChatGPT, Claude and Perplexity is one thing, but knowing how to use this information to improve your SEO strategy is where things get interesting.
Once you review your GA4 AI traffic report, you'll notice that some patterns begin to emerge. Here are some that we frequently see:
1. Blog Content (With Query Fan-Out) Often Performs Well in AI Search
In many cases, blog posts outperform service pages when it comes to getting AI referral traffic.
Why?
Because strong blog content answers more than just one question—it covers related questions around the topic. This approach (often called query fan-out) aligns well with how AI tools generate responses. AI is constantly trying to guess the question you asked before and after the main query and provide information about it.
The more you can do that in your content, the better you can rank in AI Search.
2. Properly Formatted/Structured Main Pages With FAQs Also Rank
Service pages can still perform well when they give context about who you are, what you do, where you do it, and who it's for. The more clearly you can outline these things on your main pages, the better chance you can get served up by AI tools when someone is having a conversation with a chat bot.
The best service pages for AI:
- Include FAQs
- Answer specific questions clearly
- Stay concise and easy to scan
A clean structure makes it easier for AI tools to reference your content. Clear headings and direct answers to questions make your pages easier to parse than marketing speak and long, drawn out answers.
3. Reverse Engineer What’s Working on Pages Getting AI Referral Traffic
Having an AI traffic report like this from Google Analytics that tells you what pages are getting referrals from ChatGPT, Claude and Perplexity gives you a clear advantage.
Instead of guessing which pages might perform in AI search, you can:
- Identify top-performing pages
- Analyze what makes them effective
- Apply those patterns to future content
The same way you'd do an SEO content audit of your own site to see what's ranking on Google, doing a report like this shows you what's already working in AI search.
Turning AI Traffic Into a Scalable Channel
Learning how to track AI Traffic in Google Analytics is just the first step. The real opportunity comes from knowing which pages to optimize, understanding why they're performing, and then being able to repeat that AI search strategy across your site.
AI search is already driving traffic to websites. The difference is whether you’re tracking it—and using that data to improve.
So set up this Google Analytics AI traffic report, review your top pages, and start building content based on what’s already working for your site!
Get a Free SEO Content and AI Search Audit
If you want a clear breakdown of how your site is performing in both Google and AI search, we offer a free SEO content audit where we use our proprietary tool to show you your best-performing pages, as well as the biggest content opportunities you have.
With this FREE SEO service you get:
- A review of your top-performing pages
- Insights into what’s underperforming
- Actionable recommendations for improvement
👉 Get your free SEO content audit here:
Want to Do SEO and Optimize for AI Search Yourself?
If you prefer a hands-on approach, join our Skool community.
Inside our premium membership, you’ll get:
- Access to the same audit tool we use with clients
- Step-by-step DIY SEO courses using our EXACT framework
- A community of marketers and business owners improving their content
👉 Join the community here:
- How to Track AI Traffic in Google Analytics (Step-by-Step Tutorial) - March 24, 2026
- How To Use Keywords in Your Content for SEO - February 2, 2026
- The 10 Best Digital Marketing Agencies In Utah: 2026 List - January 6, 2026
