AI/ML

ai-traffic-tracking

kostja94/marketing-skills · updated Apr 8, 2026

$npx skills add https://github.com/kostja94/marketing-skills --skill ai-traffic-tracking
summary

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

skill.md

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. ExploreFree 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. AdminData DisplayChannel 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. ReportsLibrary →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

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
general reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    ai-traffic-tracking is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Piyush G· Sep 9, 2024

    Keeps context tight: ai-traffic-tracking is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Chaitanya Patil· Aug 8, 2024

    Registry listing for ai-traffic-tracking matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Sakshi Patil· Jul 7, 2024

    ai-traffic-tracking reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ganesh Mohane· Jun 6, 2024

    I recommend ai-traffic-tracking for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Oshnikdeep· May 5, 2024

    Useful defaults in ai-traffic-tracking — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Dhruvi Jain· Apr 4, 2024

    ai-traffic-tracking has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Rahul Santra· Mar 3, 2024

    Solid pick for teams standardizing on skills: ai-traffic-tracking is focused, and the summary matches what you get after install.

  • Pratham Ware· Feb 2, 2024

    We added ai-traffic-tracking from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Yash Thakker· Jan 1, 2024

    ai-traffic-tracking fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.