Analytics: AI Traffic
Guides tracking of AI-driven search traffic in Google Analytics 4 and Google Search Console.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Scope
- - AI search traffic: Track in GA4 and GSC; separate AI sources from organic referral
- Google AI Overviews: AI summary box in Google search (formerly SGE)
- AI-driven search: Traffic from ChatGPT, Perplexity, Gemini, Claude, Copilot, etc.
Why Track Separately
- - AI traffic is growing but GA4 often groups it as Referral, Organic, or Direct
- AI visitors may have stronger intent and higher conversion
- Separating AI Overviews from organic helps assess AI impact
GA4: AI-Driven Search
Option 1: Exploration Report (Recommended)
- 1. Explore →Free form
- Dimensions:
Session source (or Session source / medium) - Metrics: Sessions, Engagement rate, Event count, etc.
- Filters: Add filter →
Session source Matches regex →use regex below - Configure table, save report
Regex (common AI sources):
CODEBLOCK0
Option 2: Custom Channel Group
- 1. Admin →Data Display →Channel Groups
- Copy default group, name e.g. "Default and AI Chatbots"
- Add channel "AI Chatbots":
Source Matches regex (same regex) - Important: Place "AI Chatbots" above "Referral" so it matches first
- Save and use in Traffic Acquisition
Option 3: Custom Report
- 1. Reports →Library →Create Detail Report
- Use Traffic Acquisition template
- Add filter:
Session source Matches regex (same regex) - Save and add to menu
Common AI Source Domains
| Platform | GA4 Source examples |
|---|
| ChatGPT | chatgpt.com, openai |
| Perplexity |
perplexity.ai, perplexity |
| Copilot | copilot.com, copilot.microsoft.com |
| Gemini | business.gemini.google, gemini.google |
| Claude | claude.ai, anthropic.com |
| Bing Chat | edgeservices.bing.com |
Google AI Overviews
- - GA4 + URL fragment: Some AI Overview clicks add URL fragments; can use GTM (partial coverage)
- GSC: For AI Overviews analysis in GSC (filter, limitations), see google-search-console
Checklist
- - [ ] AI sources identified in GA4 (Session Source)
- [ ] AI traffic Exploration report created
- [ ] Channel group updated with AI above Referral (if used)
- [ ] Custom report added to Library (optional)
- [ ] GTM + URL fragment for AI Overviews (optional)
- [ ] GSC AI-oriented query filter (optional; see google-search-console)
Output Format
- - GA4 setup: Exploration, channel group, or custom report
- Regex: Adapted to user's observed sources
Related Skills
- - generative-engine-optimization: GEO strategy; AI traffic tracking measures GEO impact
- traffic-analysis: Traffic sources, attribution, UTM
- analytics-tracking: GA4 events and conversions
- google-search-console: GSC AI traffic analysis
- robots-txt: AI crawler allow/block strategy
分析:AI 流量
指导如何在 Google Analytics 4 和 Google Search Console 中追踪 AI 驱动的搜索流量。
调用时:在首次使用时,如有帮助,可用 1-2 句话说明此技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用户要求跳过时,直接进入主要输出。
范围
- - AI 搜索流量:在 GA4 和 GSC 中追踪;将 AI 来源与自然引荐来源区分开
- Google AI 概览:Google 搜索中的 AI 摘要框(原 SGE)
- AI 驱动搜索:来自 ChatGPT、Perplexity、Gemini、Claude、Copilot 等的流量
为何单独追踪
- - AI 流量正在增长,但 GA4 通常将其归类为引荐来源、自然搜索或直接流量
- AI 访问者可能具有更强的意图和更高的转化率
- 将 AI 概览与自然搜索分开有助于评估 AI 的影响
GA4:AI 驱动搜索
选项 1:探索报告(推荐)
- 1. 探索 → 自由形式
- 维度:会话来源(或 会话来源/媒介)
- 指标:会话数、互动率、事件计数等
- 过滤器:添加过滤器 → 会话来源 匹配正则表达式 → 使用下方正则表达式
- 配置表格,保存报告
正则表达式(常见 AI 来源):
chatgpt\.com|openai\.com|openai|perplexity\.ai|perplexity|doubao\.com|chat\.qwen\.ai|copilot\.microsoft\.com|copilot\.com|(business\.)?gemini\.google|chat\.deepseek\.com|deepseek\.com|poe\.com|anthropic\.com|claude\.ai|bard\.google\.com|edgeservices\.bing\.com
选项 2:自定义渠道分组
- 1. 管理 → 数据展示 → 渠道分组
- 复制默认分组,命名为例如默认和 AI 聊天机器人
- 添加渠道AI 聊天机器人:来源 匹配正则表达式(相同正则表达式)
- 重要:将AI 聊天机器人置于引荐来源之上,以便优先匹配
- 保存并在流量获取中使用
选项 3:自定义报告
- 1. 报告 → 库 → 创建详细报告
- 使用流量获取模板
- 添加过滤器:会话来源 匹配正则表达式(相同正则表达式)
- 保存并添加到菜单
常见 AI 来源域名
| 平台 | GA4 来源示例 |
|---|
| ChatGPT | chatgpt.com, openai |
| Perplexity |
perplexity.ai, perplexity |
| Copilot | copilot.com, copilot.microsoft.com |
| Gemini | business.gemini.google, gemini.google |
| Claude | claude.ai, anthropic.com |
| Bing Chat | edgeservices.bing.com |
Google AI 概览
- - GA4 + URL 片段:部分 AI 概览点击会添加 URL 片段;可使用 GTM(部分覆盖)
- GSC:有关 GSC 中的 AI 概览分析(过滤器、限制),请参见 google-search-console
检查清单
- - [ ] 在 GA4 中识别 AI 来源(会话来源)
- [ ] 创建 AI 流量探索报告
- [ ] 更新渠道分组,将 AI 置于引荐来源之上(如使用)
- [ ] 将自定义报告添加到库(可选)
- [ ] 为 AI 概览设置 GTM + URL 片段(可选)
- [ ] GSC AI 导向查询过滤器(可选;请参见 google-search-console)
输出格式
- - GA4 设置:探索、渠道分组或自定义报告
- 正则表达式:根据用户观察到的来源进行调整
相关技能
- - generative-engine-optimization:GEO 策略;AI 流量追踪衡量 GEO 影响
- traffic-analysis:流量来源、归因、UTM
- analytics-tracking:GA4 事件和转化
- google-search-console:GSC AI 流量分析
- robots-txt:AI 爬虫允许/阻止策略