filtering-bot-traffic
하는 일
이 스킬은 에이전트가 PostHog 데이터에서 봇, 크롤러, AI 에이전트를 식별하고 그것을 수치에서 제외하도록 가르칩니다. 사람 방문자를 보여 주는 분석을 원하는 사이트 운영자를 위한 스킬입니다.
사용하는 경우
- ✓페이지뷰나 다른 보고서에서 봇을 제거하고 싶을 때.
- ✓트래픽의 몇 퍼센트가 봇이나 AI 크롤러에서 오는지 알고 싶을 때.
- ✓특정 AI 도구가 내 사이트를 방문하는지 알고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/filtering-bot-traffic/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 웹사이트 트래픽 중 봇은 얼마나 되나요? 봇을 뺀 수치를 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
PostHog는 각 요청을 사용자 에이전트로 분류합니다. 에이전트는 이 분류를 쿼리나 인사이트 빌더에서 사용해, 과거 기간의 보고서에서 봇 트래픽을 포함하거나 제외합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Filtering and measuring bot traffic
PostHog classifies every request by user agent so you can tell humans apart from bots, crawlers, and AI agents anywhere HogQL runs — the SQL editor, insights, trends, and Web analytics breakdowns. This skill teaches you (the agent) how to use that classification to:
- exclude bots so analytics reflect human traffic only
- measure how much traffic is automated, and which bots / operators are responsible
- separate AI-agent traffic (worth measuring) from noise (worth dropping)
- pick the right surface — virtual properties for the insight builder, functions for raw SQL
For real-time ("right now", last 30 min) bot questions and the Live tab tiles, use the exploring-live-traffic skill instead. This skill is for historical windows, saved insights, dashboards, and filtering.
When to use this skill
Use it when the user wants to:
- exclude or filter out bots ("remove bots from my pageviews", "humans only")
- quantify automated traffic ("what % of traffic is bots?", "how much is AI crawlers?")
- find which bots hit them ("which crawlers visit us?", "is ChatGPT reading our docs?")
- break a trend down by traffic type or bot name
- measure AI-agent / AI-search traffic specifically (AEO / answer-engine visibility)
Do not use it for the Live tab, real-time numbers, or the per-minute bot charts — that is exploring-live-traffic.
The classification surface
Two equivalent ways to reach the same classification. Prefer virtual properties in the insight builder and filters; use functions in hand-written SQL or when you need a value the virtual properties don't expose.
Virtual properties (insight builder, filters, breakdowns)
These read the user agent for you (falling back from $raw_user_agent to $user_agent),
so you don't pass anything in. Available wherever you pick an event property.
| Property | Value |
|---|---|
$virt_is_bot |
boolean — true for bots / crawlers / automation |
$virt_traffic_type |
Regular, AI Agent, Bot, or Automation |
$virt_traffic_category |
finer category, e.g. ai_crawler, ai_search, ai_assistant, search_crawler, seo_crawler, social_crawler, monitoring, http_client, headless_browser, no_user_agent, regular |
$virt_bot_name |
display name, e.g. Googlebot, GPTBot, ClaudeBot |
$virt_bot_operator |
company behind the bot, e.g. Google, OpenAI, Anthropic |
HogQL functions (raw SQL)
Pass properties.$raw_user_agent (and optionally properties.$ip) as is, the same arguments the
virtual properties use. Don't wrap it, e.g. in coalesce(...): server and mobile SDK events (and
cookieless events) are exempt from the empty-UA rule only when the argument is that plain field.
| Function | Returns |
|---|---|
isLikelyBot(ua) |
true on a bot pattern or empty UA (server/mobile SDK events exempt) |
getTrafficType(ua) |
AI Agent / Bot / Automation / Regular |
getTrafficCategory(ua) |
subcategory; regular for humans |
getBotType(ua) |
same subcategory but empty string for humans — handy for filtering |
getBotName(ua) |
bot name; empty for humans |
getBotOperator(ua) |
operator |
자주 묻는 질문
이 스킬이 실시간 봇 트래픽도 다루나요?
아니요. 실시간 봇 질문은 별도의 실시간 트래픽 스킬이 다루며, 이 스킬은 과거 보고서를 위한 것입니다.
사이트를 방문하는 봇의 이름을 알 수 있나요?
네. 트래픽을 봇 이름과 운영자별로 나눌 수 있으므로, 어떤 크롤러가 원인인지 볼 수 있습니다.
저장된 인사이트와 대시보드에서도 쓸 수 있나요?
네. 과거 기간, 저장된 인사이트, 대시보드, 필터에서 작동합니다.
상세 정보
작성자의 원본 설명
Identify, measure, and exclude bot / crawler / AI-agent traffic in PostHog web and product analytics using the traffic classification surface (the isLikelyBot / getTrafficType HogQL functions and the $virt_* virtual properties). Use when the user asks to "exclude bots", "filter out crawlers", "remove bot traffic from my numbers", "how much of my traffic is bots / AI crawlers", "is GPTBot / ChatGPT / Claude hitting my site", "break down traffic by human vs bot", or wants clean human-only counts in an insight or dashboard. For the real-time Live tab bot tiles, use exploring-live-traffic instead.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6975
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.