AI Channel 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.

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

Table of Contents

Video Run Through

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.

Filtering AI Traffic in GA4

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.

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

.*(chatgpt\.com|edgepilot|edgeservices|copilot\.microsoft\.com|openai\.com|gemini\.google\.com|iask\.ai|aitastic\.app|bnngpt\.com|writesonic\.com|copy\.ai|chat-gpt\.org|quillbot\.com|blackbox\.ai|jasper\.ai|bard\.google\.com|outrider|neeva|phind|huggingface|anthropic|grok|cohere|poe|ghostwriter|^you\.com).*|meta\.ai|chat\.openai\.com|claude\.ai|chat\.mistral\.ai|bard\.google\.com|.*\.ai$|groq|(gpt|chatgpt|neeva|writesonic|nimble|outrider|perplexity|google.*bard|bard.*google|bard|edgeservices|deepseek).*

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). 

Looker 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