GEO tracking GA4

2026 Actionable Guide: How to Track AI Traffic in GA4? Complete Guide to GEO Analytics (ChatGPT/Claude)

Summary

Stop AI traffic from polluting your GA4 data! This guide provides the 2026 latest solution to accurately track 50+ AI sources like ChatGPT and Claude using Regex & GTM. Master your GEO marketing performance now

GAGEOly AIGEOly Editorial Team
2026/01/22
4 min read
Updated 2026/11/05
Table of Contents

While configuring GA4 recently, I noticed an interesting trend: an increasing amount of traffic is coming from AI platforms like ChatGPT, Perplexity, and Claude. However, GA4 lumps all of this into the generic 'referral' bucket, making it impossible to analyze separately.

To fix this, I spent some time putting together a complete AI traffic tracking solution (the foundation for tracking GEO - Generative Engine Optimization - performance today), and I'm sharing it with you.

1. Why Track AI Traffic Separately?

Let's look at the context. By 2026, there are already over 50 mainstream AI platforms influencing user behavior:

  • Conversational AI: ChatGPT, Claude, Gemini, DeepSeek, Grok, Meta AI…
GEO tracking GA4
GEO tracking GA4


  • AI Search Engines: Perplexity, You.com, Phind, Andi Search…
GEO tracking
GEO tracking


  • Other Tools: Poe, Character.AI, BlackBox, Pi…
GEO tracking
GEO tracking


User behavior on these platforms is very different from traditional search engines. Mixing them together skews your data. Additionally, there are over 30 types of AI bots visiting websites (GPTBot, ClaudeBot, PerplexityBot, etc.), so you need to distinguish between real users and bot traffic.

GEO tracking
GEO tracking


2. Core Regex for Identification

Here is the master Regular Expression (Regex) I compiled to match referrers from 50+ mainstream AI platforms:


GEO tracking
GEO tracking


3. GA4 Configuration Strategies (Two Options)

GEO tracking
GEO tracking


Option A: Direct GA4 Configuration (Simple & Fast)

GEO tracking
GEO tracking


Step 1: Create a Custom Channel Group

GEO tracking
GEO tracking
GEO tracking
GEO tracking


  1. Go to: Admin → Data display → Channel groups.
  2. Duplicate the Default Channel Group.
  3. Rename it to "AI Traffic Enhanced".
  4. Add a new channel named "AI Traffic",Set the condition: Source matches regex:
  5. Important: Drag "AI Traffic" to position it above "Referral" so it matches first.



Step 2: Create a Segment

Create an event segment in Explorations:

^.*\.ai/.*|.*\.openai.*|.*copilot.*|.*chatgpt.*|.*gemini.*$

This allows you to apply this segment to any report to view AI traffic in isolation.

Option B: GTM Advanced Configuration (Precise Tracking)

For more granular control, use Google Tag Manager (GTM).

Step 1: Create a Detection Variable

  • Path: GTM → Variables → Custom JavaScript
  • Variable Name: AI Platform Detector
GEO tracking table
GEO tracking table


Step 2: Push to dataLayer

  • Path: GTM → Tags → Custom HTML
  • Trigger: DOM Ready
GEO tracking table
GEO tracking table


Step 3: Create Data Layer Variables

Create the following three variables:

  1. ai_platform
  2. ai_category
  3. ai_method

Step 4: Send GA4 Event

  • Path: GTM → Tags → Google Analytics: GA4 Event
  • Event Name: ai_referral
  • Event Parameters:
    • platform: {{ai_platform}}
    • category: {{ai_category}}
    • method: {{ai_method}}
  • Trigger: Custom Event = ai_referral

Step 5: Register Custom Dimensions in GA4

  • Path: Admin → Data display → Custom definitions
    • AI Platform (Event-scoped) → platform
    • AI Category (Event-scoped) → category

4. Looker Studio Dashboard Structure

GEO tracking
GEO tracking


Once configured, you can build a dedicated AI Traffic Dashboard in Looker Studio:

  • Tab 1 - Overview
GEO tracking
GEO tracking


    • Time Series: AI Traffic Trend
    • Pie Chart: Share by AI Platform
    • Table: Platform, Sessions, Engagement Rate, Conversion Rate
GEO tracking
GEO tracking


  • Tab 2 - Platform Comparison
GEO tracking
GEO tracking


    • Bar Chart: Sessions by Platform
    • Line Chart: Engagement Time Comparison
    • Table: Detailed Metrics (Bounce Rate, Pages/Session, Conversions)
  • Tab 3 - Landing Page Analysis
    • Table: Top Pages visited by AI Traffic
    • Heatmap: Page Interaction Distribution
  • Tab 4 - Conversion Funnel
    • Funnel Chart: AI Traffic Conversion Path
    • Comparison: AI vs. Organic vs. Direct
  • Tab 5 - Device & Geography
    • Device Category Distribution
    • Country/City Distribution
    • Browser Analysis

5. UTM Parameter Naming Recommendations

If you are manually tagging links shared on AI platforms, use this standard UTM naming convention:

[https://yoursite.com/?utm_source=chatgpt&utm_medium=ai_chat&utm_campaign=blog_promo](https://yoursite.com/?utm_source=chatgpt&utm_medium=ai_chat&utm_campaign=blog_promo)

6. Important Notes

  1. Session-Level Analysis: It is recommended to analyze AI traffic by Session rather than User, as AI interactions are often stateless and anonymous.
  2. Bot Filtering: Distinguish between real users and bot crawlers. Bots often show:
    • Engagement Time = 0 seconds
    • Engagement Rate = 0%
    • medium = (not set)
  3. Regular Updates: AI platforms change rapidly. Check and update your Regex list quarterly.
  4. Channel Order: Ensure the "AI Traffic" channel is ranked higher than "Referral" in your Channel Group settings to prevent misclassification.

7. Quick Checklist

Verify your setup with this list:

  • [ ] "AI Traffic" channel appears in the Traffic acquisition report.
  • [ ] Switching to the Custom Channel Group displays data correctly.
  • [ ] The "AI Traffic" segment works in Explorations.
  • [ ] The ai_referral event fires in GTM Preview mode.
  • [ ] Events are visible in GA4 DebugView.
  • [ ] Looker Studio correctly pulls the new Custom Dimensions.

8. Future Optimization Directions

Once the basics are set, consider:

  • Setting specific conversion goals for different AI platforms.
  • Creating Audiences from AI traffic for retargeting.
  • Analyzing which content is most frequently cited by AI platforms (Content Gap Analysis).
  • Comparing the Lifetime Value (LTV) of AI traffic vs. Traditional Search traffic.

This is the complete AI traffic tracking configuration guide. Option A is great for getting started quickly, while Option B is ideal for scenarios requiring granular tracking.

Related reading: how to check Perplexity traffic in GA4.

Related reading: check how much traffic AI assistants send your site.

See your brand in AI search

GEOly tracks how ChatGPT, Gemini and Google AI mention, cite and recommend your brand — and helps you win the AI shelf.

Start Free Trial

3-day free trial · No card required

Add GEOly as a preferred source on Google

Trusted by leading consumer brands

Anker SOLIX
eufy
soundcore
PLAUD
xTool
Ulike
Jackery
Roborock
Dreame
EcoFlow
Insta360
TCL
Beatbot
CASETiFY
Creality
Shokz
Segway
realme

12,000+ brands track & win AI search with GEOly

From Anker SOLIX to xTool — the brands above already see how ChatGPT, Gemini and Google AI mention, cite and recommend them. Your brand is being talked about in AI right now. See it.

See Your Brand in AI — Free

3-day free trial · No card required