AI Traffic In GA4

January 2, 2025

AI tools are the talk of the town, but how do you measure their impact on your website traffic?

With Google Analytics 4 (GA4), you can track AI-driven traffic sources and assess their contribution to your site.

This guide will walk you through the process of setting up tracking for AI tools in GA4, from simple filtering to creating a dedicated AI traffic channel. It also runs through the new AI Assistant Channel group.

So let’s dig into what it means and how you can leverage the information.

Table of Contents

Video Run Through

Please accept marketing-cookies to watch this video.

Why Track AI Traffic?

Understanding AI-generated traffic is crucial for:

  • Evaluating the role of AI tools like ChatGPT, Perplexity.ai, and Beacons.ai in driving visitors.
  • Adjusting your SEO and marketing strategies based on AI-driven trends.
  • Making data-backed decisions about AI-focused content and user engagement.
  • You’re boss keeps talking about it.

AI Assistant Channel

Google has introduced an AI-Assistant channel in their default channel grouping.

They have defined the AI Assistant as:

“the channel by which users arrive at your site from sources like ChatGPT, Gemini, Deepseek, Copilot, or Grok. It excludes Google’s AI Overviews and AI Mode.“

Crucially, unlike the social media channel grouping there isn’t a list of AI Channels that’s included etc.

AI Assistant Channel

I have found with my clients, that creating a regex custom channel group is much more inclusive and broader. It captures avenues and traffic that the AI Assistant channel seems to miss.

I would therefore recommend absolutely still creating that custom channel group.

How to track AI traffic in GA4

With the introduction of the AI Assistant Channel group, there’s several options you can go down. You can use that channel as your filtering options, as you run through the approaches below. Or you can continue to use the regex provided.

 

The report section

If you just want a quick look at how much traffic is coming from specific AI tools, you can apply a simple session source filter:

  1. Go to Reports and navigate to the Traffic Acquisition Report.

  2. Add a filter for Session Source.

  3. Enter the AI tool’s domain (e.g., chatgpt.com) and apply the filter.

  4. You’ll now see how many users are coming from that AI source.

This method is useful for a one-off check, but for a long-term solution, setting up a dedicated AI channel group is the best approach. Of course, you could customise your report section to have reports ready filtered for AI.

Building an Exploration

 
You could of course, build a free-form report to showcase your AI traffic in GA4.
 

Here’s one I would build.

I’d add in session source / medium as a dimension, and then include metrics such as sessions, new users, key events etc.

I would then use a filter to show AI channels only. 

This is the regex:

 

.*chatgpt\.com.*|.*perplexity.*|.*edgepilot.*|.*edgeservices.*|.*copilot\.microsoft\.com.*|.*openai\.com.*|.*gemini\.google\.com.*|.*nimble\.ai.*|.*iask\.ai.*|.*claude\.ai.*|.*aitastic\.app.*|.*bnngpt\.com.*|.*writesonic\.com.*|.*copy\.ai.*|.*chat-gpt\.org.*

If you were in this scenario to decide to use the AI Assistants channel group you would include Session Default Channel Group as a dimension, and use that as the filter. 

Creating an AI Channel Group in GA4

To systematically track AI traffic, you need to create a new channel group:

Step 1: Create a New Channel Group

  1. Go to the Admin section in GA4.

  2. Click on Channel Groups.

  3. Select Create New Channel Group.

  4. Name it Primary Channel Group with AI (or a similar name that suits your setup).

  5. Optionally, add a description.

Channel Groups

Step 2: Define an AI Channel

  1. Add a new channel and name it AI.

  2. Set the condition:

    • Parameter: Session Source

    • Condition: Matches Regex

    • Regex Pattern: (Use a regex that includes common AI tools such as chatgpt\.com|perplexity\.ai|beacons\.ai|coursefinder\.ai)

  3. Click Apply and Save Channel.

Regex Grouping for AI

This is the regex (it’s the same as above):

 

.*chatgpt\.com.*|.*perplexity.*|.*edgepilot.*|.*edgeservices.*|.*copilot\.microsoft\.com.*|.*openai\.com.*|.*gemini\.google\.com.*|.*nimble\.ai.*|.*iask\.ai.*|.*claude\.ai.*|.*aitastic\.app.*|.*bnngpt\.com.*|.*writesonic\.com.*|.*copy\.ai.*|.*chat-gpt\.org.*

Step 3: Reorder Channels for Proper Categorisation

GA4 assigns traffic to the first matching channel, so it’s important to reorder the AI channel:

  1. Move the AI channel to the top of the list.

  2. Click Apply and Save Group.

Step 4: Make AI the Primary Channel Group

  1. Click the pencil icon next to the primary channel group setting.

  2. Select Primary Channel with AI as the default.

  3. Click Save.

Making the channel the primary channel group

Viewing AI Traffic in Reports

Once your AI channel group is set up, head back to the Traffic Acquisition Report (although any traffic report will do):

  • You should now see AI listed as a traffic channel.

  • Use the Session Source filter to drill down into specific AI tools.

  • Example AI traffic sources might include:

    • ChatGPT.com

    • Perplexity.ai

    • Beacons.ai

    • CourseFinder.ai

By setting up an AI channel in GA4, you can get a clearer picture of how AI tools impact your website traffic.

This may help to define your strategy going forward with AI and Generative Engine Optimisation (GEO) (oh good, another acronym). 

Data Studio Report

I’ve built a Looker Studio report that shows you how many users and sessions are coming from AI tools.

This is the report here

All you have to do is click the link, and add your GA4 property.

Kyle

Author

Hello, I'm Kyle Rushton McGregor!

I’m an experienced GA4 Specialist with a demonstrated history of working with Google Tag Manager and Looker Studio. I’m an international speaker who has trained 1000s of people on all things analytics.

Scroll to Top