Get the FREE Ultimate OpenClaw Setup Guide →

ai-traffic-tracking

Scanned
npx machina-cli add skill kostja94/marketing-skills/ai-traffic --openclaw
Files (1)
SKILL.md
3.7 KB

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

PlatformGA4 Source examples
ChatGPTchatgpt.com, openai
Perplexityperplexity.ai, perplexity
Copilotcopilot.com, copilot.microsoft.com
Geminibusiness.gemini.google, gemini.google
Claudeclaude.ai, anthropic.com
Bing Chatedgeservices.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

Source

git clone https://github.com/kostja94/marketing-skills/blob/main/skills/analytics/ai-traffic/SKILL.mdView on GitHub

Overview

Guides tracking AI-driven search traffic in Google Analytics 4 and Google Search Console. It helps separate AI sources from organic or referral so you can measure the impact of AI Overviews and AI-driven search from ChatGPT, Perplexity, Gemini, Claude, and more.

How This Skill Works

Use GA4 Exploration (Recommended) with a session source filter tied to an AI-source regex, or build a Custom Channel Group or Custom Report to classify AI traffic. This makes AI traffic visible as its own segment and avoids it being counted as Referral or Organic.

When to Use It

  • You want to quantify traffic from AI-driven sources like ChatGPT, Perplexity, Gemini, or Claude in GA4.
  • GA4 currently groups AI traffic as Referral/Organic and you need a distinct view.
  • You want to assess the impact of Google AI Overviews on site visits and engagement.
  • You need a dedicated AI Chatbots channel above Referral in GA4 Channel Groups.
  • You prefer a reusable Custom Report to track AI traffic over time.

Quick Start

  1. Step 1: In GA4, open Analysis > Exploration > Free form.
  2. Step 2: Add a filter: Session source matches AI regex (AI sources like chatgpt.com, openai.com, perplexity.ai, claude.ai, etc.).
  3. Step 3: Save as 'AI Traffic' report or add to a custom dashboard.

Best Practices

  • Identify AI sources with a dedicated regex (e.g., chatgpt.com, openai.com, perplexity.ai, claude.ai) to cleanly separate AI traffic.
  • Place the AI Chatbots channel above Referral in GA4 Channel Groups so it matches first.
  • Save your Exploration as a report or add a Custom Report to Library for ongoing use.
  • Regularly update the AI regex as new AI sources appear (e.g., new AI copilots or chat services).
  • Cross-check AI traffic in GA4 with GSC AI-oriented queries for accuracy.

Example Use Cases

  • An e-commerce site identifies AI-driven sessions from ChatGPT and Perplexity and measures their conversion rate separately from organic traffic.
  • A publisher creates a channel group named 'AI Chatbots' to isolate visits from OpenAI and Claude in GA4.
  • A marketing team builds a Custom Report filtered by the AI regex and tracks AI traffic month over month.
  • They analyze Google AI Overviews clicks in GA4 to quantify engagement changes due to AI summaries.
  • They implement GTM URL fragments to capture AI Overviews interactions and tie them to GA4 events.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers