PostHog Bot Traffic Filtering

•
59
•

Identifies and filters bot, crawler, and AI agent traffic in PostHog web analytics to provide clean, human-only insights.

The Filtering Bot Traffic skill enables developers and analysts to accurately distinguish between human users and automated traffic within PostHog. By leveraging specialized HogQL functions and virtual properties like $virt_is_bot, this skill allows for the exclusion of crawlers from human-centric metrics while simultaneously providing the tools to measure AI agent visibility (AEO) and monitor search engine activity. It offers a structured approach to traffic classification—separating regular users, AI agents, bots, and general automation—to ensure data integrity across historical insights, dashboards, and raw SQL queries.

主要功能

0159 GitHub stars
02Categorize traffic into Human, AI Agent, Bot, and Automation buckets.
03Identify specific bot names and operators like Googlebot, GPTBot, and ClaudeBot.
04Exclude bots and crawlers from Trends and Funnels queries using virtual properties.
05Measure AI search visibility and Answer Engine Optimization (AEO) metrics.
06Calculate the percentage share of automated traffic vs. human visitors.

使用场景

01Creating breakdowns of traffic by bot operator to monitor SEO crawler behavior.
02Analyzing how often AI agents like ChatGPT or Claude are crawling site documentation.
03Removing bot noise from pageview counts to reflect true human engagement.