如何透過 GA4 和 Search Console 追蹤 AI 搜尋流量
How to Track AI Search Traffic in GA4 and Search Console
這份指南説明如何透過 GA4 和 Search Console 追蹤 AI 搜尋流量,並指出兩者的數據都無法涵蓋所有相關訪問。GA4 可按 AI 服務網域篩選引薦流量,並在自訂渠道組中建立「AI Assistants」渠道、置於 Referral 之前;伺服器紀錄則顯示爬蟲讀取哪些頁面,但不代表引用或帶來訪問。
AI search traffic is the visits that reach your site from tools like ChatGPT, Perplexity, Gemini, Copilot and Claude. The volume is small for most sites today, but it grows, and it often converts well. Google Analytics 4 and Search Console can show you a useful part of the picture, if you set them up on purpose.
This guide shows how to find that traffic, where the data has gaps, and how to report on it without overselling the numbers.
Why AI search traffic is hard to measure
Answer engines often give the reader a full answer, so fewer people click. Some tools also strip referrer data, and their visits land in the Direct bucket. No single report captures everything.
Treat your numbers as a floor, not a total. A steady trend still tells you which pages earn citations and which topics deserve more work.
Step 1: Find AI referrals in GA4
Open Reports, then Acquisition, then Traffic acquisition. Change the primary dimension to Session source / medium. Then add a filter on Session source that matches a pattern like this:
chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai
Pick the "matches regex" option. Check the date range, because some sources may show only a handful of sessions.
Step 2: Create a custom channel group
A saved channel makes the data easy to reuse. In GA4, go to Admin, then Data display, then Channel groups. Create a new group, and add a channel named "AI Assistants". Set the condition to Source matching the same regex.
Drag the new channel above Referral in the list. GA4 assigns each session to the first channel that fits, so order matters. Once saved, you can compare AI sessions with Organic Search, key events and engagement time.
Step 3: Tag the links you control
Some AI tools add a utm_source value to the links they show, and others add nothing. You cannot tag links inside an answer, but you can tag your own placements, such as newsletters, profiles and partner posts. Use consistent UTM names, so your reports stay clean.
Step 4: Check server logs for AI crawlers
GA4 counts visitors, not crawlers. Your server logs show which AI bots fetch your pages. This command lists the most requested paths for common AI user agents:
grep -Ei "GPTBot|OAI-SearchBot|PerplexityBot|ClaudeBot" access.log \
| awk '{print $7}' | sort | uniq -c | sort -rn | head -20
Crawler visits do not equal citations or traffic. They show which pages these systems can read, which helps you debug access problems from our answer engine optimization checklist.
Step 5: Read Google's AI features in Search Console
Google counts clicks from AI Overviews and AI Mode inside the normal Web search totals. Search Console does not give them a separate filter. You can still look for patterns by filtering the Performance report with a query regex for question-style searches:
^(what|how|why|which|can|does|is|should)\b
Watch impressions, clicks and average position for those queries. Rising impressions on question queries often point to growing answer-style visibility.
Step 6: Build a simple monthly report
Keep the report short, and compare month over month. Track these items:
- Sessions from the AI Assistants channel.
- Engaged sessions and engagement time for that channel.
- Key events, such as form fills, sign-ups or purchases.
- Landing pages that receive AI referrals.
- Question-style query impressions in Search Console.
Always note the gaps. Say that Direct traffic may hide some AI visits.
AI search traffic FAQs
How do I track AI traffic in GA4?
Filter Session source with a regex of AI domains, or create a custom channel group named AI Assistants. Place it above Referral so GA4 assigns matching sessions to it.
Does ChatGPT send referral traffic?
Yes. ChatGPT links often arrive with chatgpt.com as the source, and some carry a UTM tag. Other tools send less data, so totals will look smaller than real usage.
Can I see Google AI Overviews in Search Console?
Not separately. Google includes clicks and impressions from AI features in the standard Web search performance data.
Why does AI traffic show up as Direct in GA4?
Some apps and browsers remove referrer information before the visit reaches your site. GA4 then has no source to record, so it files the session as Direct.
How do I get more traffic from AI answers?
Publish clear, sourced answers, add structured data, allow search crawlers and earn mentions on trusted sites. Then measure results every month.
Want help turning this data into growth?
Tracking works best when someone connects it to content and conversion goals. Explore DigiStreet Media's AEO services or its business analytics services. Which AI source sends you the most visits today? Tell me in the comments.
Disclosure: I publish this account for DigiStreet Media, a digital marketing agency in Noida, India.
來源:DEV Community · dev.to