(post updated March 16, 2026)
In this blog post, I’ll walk you through how to track and analyze AI-generated traffic in Google Analytics 4 (GA4). We’ll create a custom segment to identify AI sources, set up a new channel group, and visualize the data in both GA4 and Looker Studio. This process will help you understand the growing impact of AI platforms on your website traffic and lead generation.
Why Track AI Traffic?
As AI platforms like ChatGPT become more prevalent, they’re starting to show up as significant traffic sources for many websites. In GA for the Two Octobers website, I noticed ChatGPT appearing as a top traffic source, and we even received a qualified lead from someone who found us through the platform! By tracking AI traffic separately, you can:
- Understand the impact of AI on your overall traffic
- Measure the quality of AI-driven visits
- Adjust your content strategy to better serve AI platforms
- Compare AI traffic performance against other channels
Let’s dive into the step-by-step process of setting this up in GA4. Watch the video or view the steps below.
Step 1: Start an Exploration & Create an AI Traffic Segment
First, let’s show AI traffic in an exploration.
- In the exploration, change the Visualization to a line chart and select Session Source/Medium as the breakdown dimension. Add Sessions in the Values section.
- Set the Time Range to the last 90 days for a broader view.
- Adjust the Granularity from Day to Week for a clearer view of weekly changes in traffic.

Step 3: Creating an AI Traffic Channel Group
For ongoing reporting, we’ll add AI traffic as a new channel group in GA4.
- In Admin, go to Channel groups under Data display.
- Click Create new channel group and name it “Custom channel group with AI”
- Click on Add new channel. Name it “AI”. Set the channel conditions to Source, matches regex, and insert the same patterns from Larry Engel’s post. Save the channel.
- Click Reorder and move the “AI” group up in priority so it is assigned before Referral. Save the group.
Step 4: View the AI Channel Group in the Traffic Acquisition Report
New Channel groups start collecting data when you create them, so you’ll need to wait a bit. Once your new channel group has been collecting data for some time:
- Go to Reports > Acquisition > Traffic Acquisition.
- At the top of the data table, change to “Custom channel group with AI” (or whatever you named the new channel group you created) to see your new AI line item on the report.
Step 5: Integrate with Looker Studio
To use your new channel group in Looker Studio:
- Open your Looker Studio report.
- Go to your GA4 data source and click “Edit Connection”.
- Click “Refresh Fields” to update the available dimensions and metrics.
- You can now use the new channel group in your Looker Studio visualizations.
Taking your AI traffic analysis to the next level
Once you have Google Analytics set up to identify AI traffic, here are some resources for where to go next:
- Tracking Google AIO traffic – The method above works for AI platforms and tools, but it doesn’t work for AI overviews in Google search. This article from Dana DiTomaso describes a crafty trick for doing that: How to Track Traffic from AI Overviews, Featured Snippets, or People Also Ask Results in Google Analytics 4.
- Tracking AI agents – A challenge with AI is the fact that a user might ask AI to gather information about your business without ever visiting your site. This typically triggers a bot visit to your site, but these visits don’t show up in Google Analytics. This LinkedIn post from Dan Hinkley describes how to analyze web server log files with Screaming Frog to see when ChatGPT visits your site in response to a specific user’s prompt. I do a similar analysis using Cloudflare.
- Webmaster tools for AI – Microsoft added an AI performance report to their webmaster tools. I really liked this article from Will Scott detailing his experience with it: Inside Bing’s New AI Performance Report: What 20,000 Copilot Citations Taught Us. Google hasn’t added AI details to Search Console yet, but here’s a clever hack to get a sense for how people are interacting with AI Mode.
- How does your AI traffic compare? This article from Conductor has a variety of AI traffic benchmarks.
- How AI traffic performs – a question on a lot of people’s minds is how traffic from AI platforms performs in comparison to organic search traffic. Anecdotally, most of what I’m hearing is that AI traffic tends to convert at a higher rate than organic, but sometimes I hear the opposite. Here are some articles backed up by actual data:
- Open GA4 and click on Explore.
- Start a new blank exploration.
- Select Session Source/Medium as a dimension and Sessions as the metric. You can also add additional metrics like Engaged Sessions or Key Events to provide more context.
- Under Segments, create a new custom segment, a Session segment.
- Name this segment “AI Sources” and add a condition: Session Source, Matches regex, and copy/paste this value:


As a business that is trying to expand our AI-driven traffic this was really useful in getting our analytics aligned. Thanks.
Great to hear!
Hi Nico,
Thank you so much for this!
I have two sources for ChatGPT: chatgpt.com / (not set) and chatgpt.com / referral.
Any idea why this is happening please?
You’re welcome!
Yes, they sometimes include a utm_source=chatgpt.com parameter in a link to your site – notably in their search results listings, but people have observed them showing up in other cases too. When a link has a utm_source but no utm_medium, utm_medium shows up as “(not set)”. If there are no UTM parameters, then GA sets the source to the referring domain and the medium to “referral”.
Thank you so much Nico – your help is truly appreciated!
Thanks Nico, great post.
To fix the utm_source but no utm_medium, I added a second condition group with the same regex above but the medium exactly matches (not set), that fixed it.
Extremely timely, clear and useful, Thanks
Thanks!