AI Search Traffic Tracker

AI traffic tracking

by kostja94 · MIT license · ★ 1,006 on GitHub

AI traffic tracking cover

When the user wants to track AI search traffic in GA4 or GSC. Also use when the user mentions "AI traffic," "ChatGPT referral," "Perplexity traffic," "AI Overviews," "GA4 AI sources," "AI search analytics," "track AI referrals," "AI…

---
name: ai-traffic-tracking
description: When the user wants to track AI search traffic in GA4 or GSC. Also use when the user mentions "AI traffic," "ChatGPT referral," "Perplexity traffic," "AI Overviews," "GA4 AI sources," "AI search analytics," "track AI referrals," "AI search traffic," "Claude traffic," or "how to track AI traffic." For AI SEO strategy, use generative-engine-optimization.
metadata:
  version: 1.0.1
---

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

Overview

Guides tracking of AI-driven search traffic in Google Analytics 4 and Google Search Console.

What you get

  • GA4 setupExploration, channel group, or custom report
  • RegexAdapted to user's observed sources
Manual install (npx, ZIP)
Claude Codenpx skills add kostja94/marketing-skills --skill ai-traffic-tracking -g -a claude-code
Claude Code (degit)npx degit kostja94/marketing-skills/skills/analytics/sources/ai-traffic#main ~/.claude/skills/ai-traffic-tracking
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.8 KB
Read SKILL.md here
kostja94/main1 file shown
SKILL.md
Show the full text94 lines

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
  1. Explore →Free form
  2. Dimensions: Session source (or Session source / medium)
  3. Metrics: Sessions, Engagement rate, Event count, etc.
  4. Filters: Add filter →Session source Matches regex →use regex below
  5. Configure table, save report

Regex (common AI sources):

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
Option 2: Custom Channel Group
  1. Admin →Data Display →Channel Groups
  2. Copy default group, name e.g. "Default and AI Chatbots"
  3. Add channel "AI Chatbots": Source Matches regex (same regex)
  4. Important: Place "AI Chatbots" above "Referral" so it matches first
  5. Save and use in Traffic Acquisition
Option 3: Custom Report
  1. Reports →Library →Create Detail Report
  2. Use Traffic Acquisition template
  3. Add filter: Session source Matches regex (same regex)
  4. 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
  • 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
1---
2name: ai-traffic-tracking
3description: When the user wants to track AI search traffic in GA4 or GSC. Also use when the user mentions "AI traffic," "ChatGPT referral," "Perplexity traffic," "AI Overviews," "GA4 AI sources," "AI search analytics," "track AI referrals," "AI search traffic," "Claude traffic," or "how to track AI traffic." For AI SEO strategy, use generative-engine-optimization.
4metadata:
5 version: 1.0.1
6---
7 
8# Analytics: AI Traffic
9 
10Guides tracking of AI-driven search traffic in Google Analytics 4 and Google Search Console.
11 
12**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.
13 
14## Scope
15 
16- **AI search traffic**: Track in GA4 and GSC; separate AI sources from organic referral
17- **Google AI Overviews**: AI summary box in Google search (formerly SGE)
18- **AI-driven search**: Traffic from ChatGPT, Perplexity, Gemini, Claude, Copilot, etc.
19 
20## Why Track Separately
21 
22- AI traffic is growing but GA4 often groups it as Referral, Organic, or Direct
23- AI visitors may have stronger intent and higher conversion
24- Separating AI Overviews from organic helps assess AI impact
25 
26## GA4: AI-Driven Search
27 
28### Option 1: Exploration Report (Recommended)
29 
301. **Explore** →**Free form**
312. **Dimensions**: `Session source` (or `Session source / medium`)
323. **Metrics**: Sessions, Engagement rate, Event count, etc.
334. **Filters**: Add filter →`Session source` **Matches regex** →use regex below
345. Configure table, save report
35 
36**Regex (common AI sources):**
37 
38```
39chatgpt\.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
40```
41 
42### Option 2: Custom Channel Group
43 
441. **Admin** →**Data Display** →**Channel Groups**
452. Copy default group, name e.g. "Default and AI Chatbots"
463. Add channel "AI Chatbots": `Source` **Matches regex** (same regex)
474. **Important**: Place "AI Chatbots" above "Referral" so it matches first
485. Save and use in Traffic Acquisition
49 
50### Option 3: Custom Report
51 
521. **Reports** →**Library** →Create Detail Report
532. Use Traffic Acquisition template
543. Add filter: `Session source` **Matches regex** (same regex)
554. Save and add to menu
56 
57## Common AI Source Domains
58 
59| Platform | GA4 Source examples |
60|----------|---------------------|
61| ChatGPT | chatgpt.com, openai |
62| Perplexity | perplexity.ai, perplexity |
63| Copilot | copilot.com, copilot.microsoft.com |
64| Gemini | business.gemini.google, gemini.google |
65| Claude | claude.ai, anthropic.com |
66| Bing Chat | edgeservices.bing.com |
67 
68## Google AI Overviews
69 
70- **GA4 + URL fragment**: Some AI Overview clicks add URL fragments; can use GTM (partial coverage)
71- **GSC**: For AI Overviews analysis in GSC (filter, limitations), see **google-search-console**
72 
73## Checklist
74 
75- [ ] AI sources identified in GA4 (Session Source)
76- [ ] AI traffic Exploration report created
77- [ ] Channel group updated with AI above Referral (if used)
78- [ ] Custom report added to Library (optional)
79- [ ] GTM + URL fragment for AI Overviews (optional)
80- [ ] GSC AI-oriented query filter (optional; see **google-search-console**)
81 
82## Output Format
83 
84- **GA4 setup**: Exploration, channel group, or custom report
85- **Regex**: Adapted to user's observed sources
86 
87## Related Skills
88 
89- **generative-engine-optimization**: GEO strategy; AI traffic tracking measures GEO impact
90- **traffic-analysis**: Traffic sources, attribution, UTM
91- **analytics-tracking**: GA4 events and conversions
92- **google-search-console**: GSC AI traffic analysis
93- **robots-txt**: AI crawler allow/block strategy
94 
View all files on GitHub →

Details

License
MIT
Stars on the repo
★ 1,006
Checked
Source
kostja94/marketing-skills ↗
Creator
kostja94 · 106 listings
View creator

Similar skills

See all →

More from kostja94

SkillAffiliate Marketing Strategykostja94/marketing-skills · by kostja94When the user wants to plan, implement, or optimize affiliate marketing strategy. Also use when the user mentions "affiliate marketing," "affiliate program strategy," "CPS model," "affiliate recruitment," "commission structure," "affiliate partners," "affiliate network," "affiliate tracking," "affiliate commission," or "partner marketing." For affiliate page, use affiliate-page-generator.★ 1k GitHub starsSkillGA4 Analytics Optimizerkostja94/marketing-skills · by kostja94When the user wants to set up, audit, or optimize analytics tracking (GA4, events, conversions). Also use when the user mentions "Google Analytics," "GA4," "event tracking," "conversions," "attribution model," "gtag," "data layer," "GA4 setup," "conversion tracking," "event setup," "User ID tracking," or "CTA attribution." For traffic insights, use traffic-analysis.★ 1k GitHub starsSkillMobile App Campaign Managerkostja94/marketing-skills · by kostja94When the user wants to run app install ads, user acquisition (UA), or promote mobile apps. Also use when the user mentions "app ads," "app install ads," "UA," "user acquisition," "Google App Campaigns," "Apple Search Ads," "ASA," "UAC," "App Store ads," "Play Store ads," "CPI," or "app promotion." For store listings, use distribution-channels.★ 1k GitHub starsSkillLong-Form Article Writerkostja94/marketing-skills · by kostja94When the user wants to write, generate, or create article body content—blog post body, long-form content, how-to guide, listicle. Also use when the user mentions "write article," "article content," "blog post content," "article body," "long-form content creation," "generate article," "article draft," "how-to guide content," "listicle content," "information gain," or "content density." For single post page structure, schema, and SEO metadata, use article-page-generator. For blog index/listing page, use blog-page-generator. For short ad, landing, or email copy, use copywriting.★ 1k GitHub starsSkillBacklink Profile Analyzerkostja94/marketing-skills · by kostja94When the user wants to analyze backlinks, audit link profile, or identify link issues. Also use when the user mentions "backlink analysis," "backlink audit," "referring domains," "toxic links," "link profile," or "disavow file." For acquisition, use link-building.★ 1k GitHub starsSkillTrademark Detectorkostja94/marketing-skills · by kostja94When the user wants to monitor brand mentions, detect trademark infringement, or set up brand monitoring. Also use when the user mentions "brand monitoring," "brand watch," "trademark watch," "brand mentions," "impersonation detection," "counterfeit detection," or "brand abuse monitoring." For enforcement, use brand-protection.★ 1k GitHub stars