मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट41k · #6975

filtering-bot-traffic

यह क्या करती है

यह स्किल एजेंट को PostHog डेटा में बॉट, क्रॉलर और AI एजेंट पहचानकर उन्हें आपके आँकड़ों से हटाना सिखाती है। यह उन साइट मालिकों के लिए है जिन्हें ऐसी एनालिटिक्स चाहिए जो असली विज़िटर दिखाए।

कब इस्तेमाल करें

  • ✓जब आप अपने पेजव्यू या दूसरी रिपोर्ट से बॉट हटाना चाहें।
  • ✓जब आप जानना चाहें कि आपका कितना ट्रैफ़िक बॉट या AI क्रॉलर से आ रहा है।
  • ✓जब आप यह जानना चाहें कि कोई खास AI टूल आपकी साइट पर आ रहा है या नहीं।

Skill का लिंक

https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/filtering-bot-traffic/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/filtering-bot-traffic/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी वेबसाइट का कितना ट्रैफ़िक बॉट है? कृपया बॉट हटाकर मेरे आँकड़े दिखाइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

PostHog हर अनुरोध को उसके user agent से वर्गीकृत करता है। एजेंट उन वर्गीकरणों का उपयोग क्वेरी या इनसाइट बिल्डर में करता है, ताकि पुरानी रिपोर्ट में बॉट ट्रैफ़िक शामिल या बाहर किया जा सके।

तकनीकी सामग्री (मूल 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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills