Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính41k · #6974

exploring-live-traffic

Skill này làm gì

Skill này cho phép agent đọc tab Live của PostHog, nơi hiển thị hoạt động website theo thời gian thực. Skill dành cho chủ website muốn biết chuyện gì đang diễn ra trên trang của họ ngay lúc này.

Khi nào nên dùng

  • ✓Khi bạn hỏi ai đang có mặt trên website hoặc điều gì đang diễn ra trực tiếp.
  • ✓Khi bạn muốn xem những bot nào đang thu thập dữ liệu trang của bạn vào lúc này.
  • ✓Khi bạn muốn so sánh các con số trực tiếp với một khoảng thời gian dài hơn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/exploring-live-traffic/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ai đang có mặt trên website của tôi lúc này, và họ đang xem những trang nào?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc cửa sổ trực tiếp 30 phút gần nhất, cùng số người đang online trong 60 giây qua. Với lịch sử dài hơn, nó tạo một báo cáo định kỳ trong PostHog thay vì dùng chế độ trực tiếp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Exploring Web analytics live traffic

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:

  • recognize a request that belongs on the Live tab
  • read the tile model (what each card shows, where the data comes from)
  • manipulate the only filter that exists (host)
  • build product-analytics insights that match a Live tile when the user wants 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.

When to use this skill

Use this skill when the user:

  • asks "who is on my site right now?", "what is happening live?", "show me live traffic"
  • mentions the "Live" tab, the "Live dashboard", or the live page (/web/live)
  • asks about live bot traffic ("which bots are crawling me?", "is GPTBot scraping us?")
  • wants to filter live traffic by domain / host
  • wants to compare what they see on the Live tab to a longer time window — e.g. "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).

Tab structure

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).

Filters

There is only one filter on the live tab: the host (domain) selector.

  • It comes from webAnalyticsFilterLogic.selectedHost.
  • It is shared with the rest of Web analytics, so changing it on /web propagates to /web/live and vice-versa.
  • It is gated by feature flag WEB_ANALYTICS_LIVE_DOMAIN_FILTER. If the flag is off, no host filter UI is rendered and all tiles show data across every domain.
  • Setting the host filter narrows: the SSE stream, the HogQL backfill queries (so the initial 30 min is host-scoped), and the "users online" count.
  • There is no date picker, no compare control, no property filters, no test-account 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.

Stat cards (top strip)

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

Content cards

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 co
Câu hỏi thường gặp

Tab Live bao quát khoảng thời gian nào?

Nó bao quát cửa sổ trượt 30 phút, cùng số người đang online trong 60 giây qua.

Agent có chạy được truy vấn trực tiếp tùy chỉnh không?

Không. Tab Live không phải công cụ truy vấn, nên để xem lịch sử, agent tạo một insight thông thường.

Tôi có lọc lưu lượng trực tiếp được không?

Có, theo tên miền hoặc host, đó là bộ lọc duy nhất mà tab Live cung cấp.

Chi tiết

Mô tả gốc của tác giả

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), or wants help filtering or drilling into the live view. Also covers building product-analytics insights that mirror what the tiles show.

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6974
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự