Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Inspects PostHog Web analytics Live tab data — current users online, last-30-minutes pageviews, top pages, referrers, devices, browsers, countries, bot traffic, and the per-minute bot/users charts. Use when the user asks \"who is on my site right now?\", \"what is happening live?\", \"what bots are crawling me?\", asks about the \"live tab\" / \"live dashboard\", wants live numbers (last 30 min),
.claude/skills/kunanonj-cursor-plugin-posthog-exploring-live-traffic/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 185% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 146% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 85% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 120% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 162% | 0% |
The Web analytics Live tab (/web/live) shows real-time activity over a 30-minute sliding window plus a 60-second "users online" count. It is the place to answer "what is happening on my site right now?" — pageviews, named bots, devices, geo, top paths, top referrers, and a live event feed.
This skill teaches you (the agent) how to:
longer time ranges or deeper drill-down than the live window offers
The Live tab is not a HogQL playground — its data comes from a livestream backed by short HogQL backfills. When the user wants to query "right now" data with HogQL, point them at the tab; when they want historical breakdowns, build an insight with the patterns below.
Use this skill when the user:
/web/live)"the live tab shows GPTBot is hammering us, can you give me a 7-day chart of that?"
Do not use this skill for non-realtime web analytics work — for that, use the standard Web analytics tab (/web).
URL: /web/live
The tab has two filter affordances and a grid of tiles. Date range is fixed: 30 minutes sliding window for everything except "Users online" (last 60 seconds).
There is only one filter on the live tab: the host (domain) selector.
webAnalyticsFilterLogic.selectedHost./web propagates to/web/live and vice-versa.
WEB_ANALYTICS_LIVE_DOMAIN_FILTER. If the flag is off, nohost filter UI is rendered and all tiles show data across every domain.
initial 30 min is host-scoped), and the "users online" count.
filter on the Live tab. Do not promise the user controls that don't exist.
When the user asks "filter live traffic by domain <host>", direct them to the Domain selector at the top of the Live tab. There is no URL param to set it directly — it persists in localStorage via webAnalyticsFilterLogic.
| Card | What | Window | | --------------- | ----------------------------------------------- | ------ | | Users online | Distinct device IDs seen in the last 60 seconds | 60s | | Unique visitors | Distinct device IDs in the last 30 min | 30m | | Pageviews | $pageview count in the last 30 min | 30m |
| Card | What | Notes | | ----------------------- | --------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | Active users per minute | Bar chart, new vs returning visitors | last 30 min | | Top pages | Animated leaderboard, $pathname + view count | top 10, 30 min | | Top referrers | Animated leaderboard, $referring_domain | top 10, 30 min | | Devices | Breakdown bars, $device_type | top 6 + Other | | Browsers | Breakdown bars with logos, $browser | top 6 + Other | | Top countries | Breakdown bars, $geoip_country_code | top 6 + Other; replaced by a Country/City tab card if WEB_ANALYTICS_LIVE_CITY_BREAKDOWN is on | | Bot requests per minute | Bar chart, bot events / minute | flag WEB_ANALYTICS_BOT_ANALYSIS | | Bot traffic | Named bots ranked by event share, with category tag | flag WEB_ANALYTICS_BOT_ANALYSIS; rows are clickable and open an insight for that specific bot | | Countries (world map) | SVG world map heat | flag WEB_ANALYTICS_LIVE_MAP | | Live events | Streamed event feed (event, person, URL, timestamp) | last 50 events |
Every tile (except the live event feed and world map) has an "Open as new insight" button that opens a 7-day Trends query in product analytics. The bot traffic tile rows are also individually clickable — clicking a bot row opens a single-bot trend.
Bots are detected server-side. Three virtual properties are attached to the event before it lands in ClickHouse:
$virt_is_bot — boolean, true if classified as a bot$virt_bot_name — string, the bot's display name (e.g. Googlebot, GPTBot,Claude, Lighthouse, HeadlessChrome)
$virt_traffic_category — string, the category key:ai_crawler, ai_search, ai_assistant, search_crawler, seo_crawler, social_crawler, monitoring, http_client, headless_browser, no_user_agent, regular
The Live bot tiles count "bot-eligible" events: $pageview, $pageleave, $screen, $http_log, $autocapture. $http_log is included because most bots emit server-side HTTP logs rather than JS pageviews.
When the user wants a longer window, a saved insight, a dashboard tile, or to share a view of what's on the Live tab, build a Trends insight. The "Open as new insight" buttons in the UI use exactly these recipes:
A single chart of all bots over time, broken down by name. This is the canonical "who's crawling me?" view.
json{ "kind": "TrendsQuery", "interval": "hour", "dateRange": { "date_from": "-7d" }, "series": [ { "kind": "GroupNode", "custom_name": "Requests", "operator": "OR", "math": "total", "nodes": [ { "kind": "EventsNode", "event": "$pageview", "math": "total" }, { "kind": "EventsNode", "event": "$pageleave", "math": "total" }, { "kind": "EventsNode", "event": "$screen", "math": "total" }, { "kind": "EventsNode", "event": "$http_log", "math": "total" }, { "kind": "EventsNode", "event": "$autocapture", "math": "total" } ] } ], "properties": [{ "key": "$virt_is_bot", "value": ["true"], "operator": "exact", "type": "event" }], "breakdownFilter": { "breakdown": "$virt_bot_name", "breakdown_type": "event", "breakdown_limit": 25 }, "trendsFilter": { "display": "ActionsBarValue" } }
json{ "kind": "TrendsQuery", "interval": "hour", "dateRange": { "date_from": "-7d" }, "series": [ /* same combined "Requests" GroupNode as above */ ], "properties": [ { "key": "$virt_is_bot", "value": ["true"], "operator": "exact", "type": "event" }, { "key": "$virt_bot_name", "value": ["GPTBot"], "operator": "exact", "type": "event" }, { "key": "$virt_traffic_category", "value": ["ai_crawler"], "operator": "exact", "type": "event" } ], "trendsFilter": { "display": "ActionsLineGraph" } }
The category filter is optional — include it when the user asks about a specific bot+category combo (Lighthouse · headless_browser is a different signal from Lighthouse · monitoring).
Use breakdown by $virt_traffic_category instead of $virt_bot_name when the user wants "AI crawlers vs SEO crawlers vs everything else" rather than per-bot rows.
For non-bot tiles, use $pageview with math: unique_users, breakdown by the underlying property:
| Tile | breakdown property | display | | ------------- | --------------------- | ----------------- | | Top pages | $pathname | ActionsBarValue | | Top referrers | $referring_domain | ActionsBarValue | | Devices | $device_type | ActionsPie | | Browsers | $browser | ActionsPie | | Countries | $geoip_country_code | WorldMap |
Always inherit the live tab's host filter when the user is asking about a specific domain — add { "key": "$host", "value": ["<host>"], "operator": "exact", "type": "event" } to properties.
dateRange.date_from: -7d unless the user names a window — the live view itselfis 30 min, but the user is almost always asking about a longer window when they request an insight version.
interval: hour for 7-day windows, minute only for windows under a day,day for windows beyond 14 days.
silently — that changes the answer.
| User says | Right move | | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | "What's happening on the site right now?" | Send them to /web/live | | "Filter live traffic to example.com" | Use the Domain selector at top of /web/live | | "Show me bots crawling us in the last 30 min" | /web/live → Bot traffic tile | | "Show me bots crawling us this week" | Build the "Bot traffic breakdown" insight above with date_from: -7d | | "How much is GPTBot hitting us?" | Build the "Single bot drill-down" insight, set $virt_bot_name to GPTBot | | "Why is the live tab showing X but my dashboard shows Y?" | The live tab is a 30-min sliding window over events; dashboards aggregate over the picked range. They are not directly comparable beyond the last 30 min. | | "Add a date range to the live tab" | The Live tab has no date picker — for ranges, build a Trends insight using the patterns above | | "Filter live traffic by browser / device / country" | Not supported — only the host filter exists. Build a Trends insight with the relevant breakdown + filter instead |
$virt_*) only exist on events processed by the botclassification step. They are not retroactive — events from before the classifier shipped will not have them. Keep dateRange.date_from within the last few months for reliable bot results.
$http_log events come from server-side log capture, not from posthog-js. If aproject does not emit $http_log, bots that don't run JS (most crawlers) will be invisible to the bot tiles.
browser — refreshing the page replays the backfill HogQL, not the SSE stream. Do not interpret a brief "0" right after page load as a real drop.
example.com, not https://example.com.localStorage (under feature flagWEB_ANALYTICS_LIVE_EDIT_LAYOUT). If a user's layout looks different from yours, it is not a bug.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 11,184 | 7,476 | -33% | 1 | 1 | 0% | 2,177 | 4,923 | +126% | 0 | 0 | — |
case-02 | fail→pass | 7,285 | 5,580 | -23% | 1 | 1 | 0% | 1,591 | 4,527 | +185% | 0 | 0 | — |
case-03 | fail→pass | 8,030 | 3,602 | -55% | 1 | 1 | 0% | 1,560 | 3,840 | +146% | 0 | 0 | — |
case-09 | fail→pass | 10,091 | 5,114 | -49% | 1 | 1 | 0% | 2,282 | 4,229 | +85% | 0 | 0 | — |
case-20 | pass→pass | 8,277 | 6,470 | -22% | 1 | 1 | 0% | 1,661 | 4,355 | +162% | 0 | 0 | — |
case-04 | fail→pass | 9,100 | 3,084 | -66% | 1 | 1 | 0% | 1,666 | 3,672 | +120% | 0 | 0 | — |
case-05 | fail→pass | 9,507 | 4,889 | -49% | 1 | 1 | 0% | 1,527 | 3,994 | +162% | 0 | 0 | — |
case-06 | fail→pass | 8,871 | 4,778 | -46% | 1 | 1 | 0% | 1,492 | 3,984 | +167% | 0 | 0 | — |
case-07 | fail→pass | 6,115 | 3,374 | -45% | 1 | 1 | 0% | 1,170 | 3,810 | +226% | 0 | 0 | — |
case-08 | fail→pass | 7,716 | 3,752 | -51% | 1 | 1 | 0% | 1,388 | 3,969 | +186% | 0 | 0 | — |
case-10 | fail→pass | 13,907 | 3,106 | -78% | 1 | 1 | 0% | 2,334 | 3,691 | +58% | 0 | 0 | — |
case-11 | fail→pass | 15,920 | 4,299 | -73% | 1 | 1 | 0% | 2,463 | 3,824 | +55% | 0 | 0 | — |
case-12 | fail→pass | 13,727 | 6,519 | -53% | 1 | 1 | 0% | 2,119 | 4,258 | +101% | 0 | 0 | — |
case-13 | pass→pass | 8,234 | 3,907 | -53% | 1 | 1 | 0% | 1,685 | 3,855 | +129% | 0 | 0 | — |
case-14 | fail→fail | 10,979 | 7,518 | -32% | 1 | 1 | 0% | 1,783 | 4,536 | +154% | 0 | 0 | — |
case-15 | fail→pass | 10,616 | 3,713 | -65% | 1 | 1 | 0% | 1,702 | 3,733 | +119% | 0 | 0 | — |
case-16 | fail→pass | 15,513 | 1,704 | -89% | 1 | 1 | 0% | 2,935 | 3,341 | +14% | 0 | 0 | — |
case-17 | fail→fail | 7,919 | 2,058 | -74% | 1 | 1 | 0% | 1,414 | 3,463 | +145% | 0 | 0 | — |
case-18 | fail→fail | 8,287 | 1,322 | -84% | 1 | 1 | 0% | 1,588 | 3,285 | +107% | 0 | 0 | — |
case-19 | fail→fail | 11,992 | 4,067 | -66% | 1 | 1 | 0% | 2,248 | 3,978 | +77% | 0 | 0 | — |
case-21 | pass→pass | 10,523 | 6,760 | -36% | 1 | 1 | 0% | 2,094 | 4,491 | +114% | 0 | 0 | — |
case-22 | pass→pass | 8,928 | 6,840 | -23% | 1 | 1 | 0% | 1,688 | 4,540 | +169% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +59 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.