본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트41k · #6975

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/filtering-bot-traffic/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬