How to Track AI Traffic in GA4: Simple Setup Guide

Cover image

Last updated: April 6, 2026

Quick Answer

GA4 doesn't automatically track AI traffic from platforms like ChatGPT, Perplexity, or Claude. To track how to track AI traffic in GA4, you need to create a custom channel group using regex patterns that identify AI platform referrals. This setup lets you see exactly how many visitors arrive from AI chatbots and search tools, separate from regular referral or organic traffic.

Key Takeaways

  • GA4 scatters AI traffic across Referral, Direct, and Organic channels by default
  • Custom channel groups with regex filters consolidate all AI platform visits into one trackable channel
  • Your AI Traffic channel must be positioned above the Referral channel or it won't work
  • Over 30 AI platforms can be tracked with an updated 2026 regex pattern
  • Custom channel groups apply retroactively to your historical data
  • Google Search Console now has an "AI Mode" filter to track Google AI search separately
  • Regex patterns need quarterly updates as new AI tools launch
  • Different AI platforms send referrer data inconsistently, affecting accuracy

Landscape editorial infographic illustration depicting a visual flowchart showing how AI traffic moves through GA4

Why GA4 Doesn't Track AI Traffic Automatically

GA4 wasn't built with AI chatbots in mind. When someone clicks a link from ChatGPT or Perplexity, GA4 sees it as regular referral traffic. Sometimes it shows up as Direct traffic. Other times it gets mixed into Organic.

This happens because GA4 doesn't have a built-in category for AI platforms.

Your traffic reports show visits, but you can't tell which ones came from AI tools. That's a problem because AI traffic behaves differently than search traffic or social traffic.

You need to know if AI platforms are sending quality visitors who convert.

How to Track AI Traffic in GA4 Using Custom Channel Groups

The reliable way to track AI traffic is creating a custom channel group. This tells GA4 exactly which traffic sources count as AI platforms.

Here's how it works:

  1. Go to your GA4 property
  2. Click Admin in the bottom left
  3. Under Data Display, select Channel Groups
  4. Click Create New Channel Group
  5. Name it something clear like "AI Traffic"
  6. Add a new channel called "AI Traffic"
  7. Add a condition: Session source matches regex
  8. Paste your regex pattern (more on this below)

The regex pattern is a list of AI platform domains. When GA4 sees traffic from any domain in that list, it labels it as AI Traffic.

Critical step: Move your AI Traffic channel above the Referral channel in the list. If you don't do this, GA4 processes Referral first and your AI traffic gets mislabeled.

Channel order matters. GA4 checks channels from top to bottom and assigns traffic to the first match.

The 2026 Regex Pattern for AI Traffic

Here's a current regex pattern that covers major AI platforms as of April 2026:

(chatgpt|openai|anthropic|deepseek|grok)\.com|(gemini|bard)\.google\.com|(perplexity|claude)\.ai|(copilot\.microsoft|edgeservices\.bing)\.com|edge\scopilot

This pattern includes:

  • ChatGPT and OpenAI
  • Anthropic and Claude
  • DeepSeek
  • Grok (X AI)
  • Google Gemini and Bard
  • Perplexity
  • Microsoft Copilot
  • Bing Edge services

Copy this pattern exactly into your Session source regex field.

You can expand it by adding more platforms. Just follow the same format: domain names separated by the pipe symbol (|).

Important: GA4 regex is case-sensitive. If your source data shows both "ChatGPT" and "chatgpt," include both variations.

Why Channel Order Is Critical

This trips up most people who try to track AI traffic in GA4.

If your AI Traffic channel sits below Referral in the processing order, GA4 never reaches it. Traffic from ChatGPT gets labeled as Referral first, and GA4 stops checking.

The fix is simple but easy to miss.

After creating your AI Traffic channel, drag it to the top of your channel list. Position it above Referral, above Direct, above everything except maybe Paid Search if you want that prioritized.

Now GA4 checks for AI platforms first, before assigning traffic to broader categories.

This one step determines whether your tracking actually works.

Updating Your Regex Pattern Quarterly

New AI platforms launch constantly. Existing platforms change their referral domains. A regex pattern from 2024 misses newer tools like Grok, DeepSeek, and Meta AI that emerged in 2025-2026.

Set a calendar reminder every three months to review and update your pattern.

Check which AI tools your audience uses. Add their domains to your regex. Remove platforms that shut down or stop sending traffic.

This maintenance keeps your tracking accurate as the AI landscape shifts.

Using Google Search Console for Google AI Mode Traffic

Google added an "AI Mode" filter to Search Console in June 2025. This shows impressions and clicks specifically from Google's AI-powered search results.

GA4 can't separate Google AI Mode traffic from regular organic search. Only Search Console can do this.

To see this data:

  1. Open Google Search Console
  2. Go to Performance
  3. Click Search Appearance
  4. Filter by "AI Mode"

This gives you a complete picture. GA4 tracks AI chatbot referrals. Search Console tracks Google AI search.

Together, they show your total AI traffic footprint.

Common Mistakes When Tracking AI Traffic

Placing the AI channel too low in the order. This is the most frequent error. Always position it above Referral.

Using an outdated regex pattern. Patterns from 2024 miss platforms that launched in 2025 and 2026. Update quarterly.

Expecting perfect attribution. ChatGPT sends referrer data inconsistently. Perplexity is more reliable. Some AI traffic will always slip through.

Forgetting to save the channel group. GA4 doesn't auto-save. Click Save after making changes or you'll lose your work.

Not checking historical data. Custom channel groups apply retroactively. Check past months to see how much AI traffic you were already getting.

Building Custom Reports for AI Traffic Analysis

Basic channel grouping shows you AI traffic volume. Custom exploration reports show you what that traffic does.

Create a freeform exploration report:

  1. Go to Explore in GA4
  2. Start a blank exploration
  3. Add dimensions: Session source, Landing page, Page path
  4. Add metrics: Sessions, Engaged sessions, Average engagement time, Conversions
  5. Add a filter: Default channel group equals "AI Traffic"

This shows which pages AI platforms link to most often. It shows which AI sources send engaged visitors. It shows whether AI traffic converts.

You can also segment by individual platforms. Create separate explorations for ChatGPT traffic versus Perplexity traffic to compare behavior.

Setting Up Alerts for AI Traffic Changes

AI traffic fluctuates more than other channels. Model updates, new platform launches, and changes in AI citation behavior can shift your traffic by 30-50% in a single week.

Set up automated alerts to catch these changes early:

  1. Go to your GA4 dashboard
  2. Create a custom alert
  3. Set condition: AI Traffic sessions decrease or increase by 20% week-over-week
  4. Choose email notification

This tells you immediately when something significant happens with your AI traffic.

You can investigate whether it's a platform change, a content update, or a broader trend.

Conclusion

Tracking AI traffic in GA4 requires manual setup, but the process is straightforward. Create a custom channel group with a current regex pattern, position it above Referral in your channel order, and update the pattern quarterly as new platforms emerge.

This gives you clear visibility into how AI chatbots and search tools send traffic to your site. You'll see which platforms matter most, which content they reference, and whether those visitors convert.

Start by implementing the 2026 regex pattern today. Check your historical data to see how much AI traffic you've been missing. Then build custom reports to understand what that traffic does on your site.

For simplified analytics that make sense without technical complexity, explore Opal44's features or sign up for a free trial.

Other frequently asked questions