GEO tracking GA4

2026年実践ガイド: GA4でAIトラフィックを追跡する方法とは?GEO分析の完全ガイド(ChatGPT/Claude)

概要

GA4データがAIトラフィックで汚染されるのを防ぎましょう!このガイドでは、ChatGPTやClaudeを含む50以上のAIソースをRegexとGTMを使って正確に追跡するための2026年最新ソリューションを提供します。今すぐGEOマーケティングパフォーマンスをマスターしましょう

GAGEOly AIGEOly Editorial Team
2026/01/22
4 分で読む
更新日 2026/11/05
目次

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.

関連記事:GA4 で Perplexity 流入を確認する方法.

関連記事:AI アシスタントからの流入量を調べる。

AI検索でブランドを際立たせる

GEOlyは、ChatGPT、Gemini、Google AIがどのようにあなたのブランドを言及し、引用し、推奨しているかを追跡し、AI市場での成功をサポートします。

無料トライアルを開始

3日間の無料トライアル · カード登録不要

Add GEOly as a preferred source on Google

主要な消費者ブランドに信頼されています

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

12,000+ ブランドがGEOlyでAI検索を追跡し成功を収める

Anker SOLIXからxToolまで — 上記のブランドはすでにChatGPT、Gemini、Google AIがどのように彼らを言及し、引用し、推奨しているかを確認しています。あなたのブランドも今、AIで話題になっています。確認してみてください。

AIでのブランドを確認 — 無料

3日間の無料トライアル · カード登録不要