返回部落格

用 Comma 搭配 PostHog 做數據分析

用一般聊天查詢 PostHog 的漏斗、留存、功能旗標、實驗和產品錯誤,並設定 Salix Loop,只在指標變動時通知團隊。

開始使用閱讀文件

大多數團隊都很用心地在 PostHog 中埋點,卻還是要等兩天,才有人做出一張漏斗圖、比較一個實驗的各個變體,或注意到錯誤暴增正好是從週二的部署之後開始的。

把官方的 PostHog MCP 連接到 Comma 後,團隊裡的任何人都能用白話提出產品問題、把異常直接追溯到 GitHub 部署和 Linear issue,並執行全天候監看關鍵指標的 Salix Loops,不必手動查看儀表板。

設定

  1. 在 Plugins 頁面上透過官方 MCP OAuth 連接 PostHog(選擇你希望 Comma 讀取的工作區和功能範圍)。

  2. 選用:連接 GitHub、Linear、Notion 和 Slack / Feishu / Lark,讓 Comma 可以把指標變化與最近的合併交叉比對,並把成效報告發布到團隊工作的地方。

四個 PostHog 分析工作流程

1. 三十秒回答臨時的產品問題

text
Check PostHog for sign-up to first-Task completion over the last
14 days vs. the prior 14 days, broken down by web, Mac, and iOS.
Show exact counts and percentage changes for every step — include
flat or declining platforms too.

你直接在聊天中拿到附有絕對值和百分比的確切數字,而不必點過五個篩選條件。

Comma 桌面版 App:一則向 PostHog 要從註冊到完成第一個 Task 的轉換數據的請求,以及一則附上 14 天每日完成率長條圖的回覆。
用白話問 PostHog,得到確切的數字和圖表。

2. 解讀進行中的實驗和功能旗標推出狀況

text
Check the status of our "onboarding-v2" experiment and feature flag
in PostHog. Report sample size per variant, conversion rate, any
statistically meaningful lift or drop, and whether error events rose
for the treatment group.

3. 對照最近的部署診斷產品錯誤

text
Pull the top 5 new or spiking client errors in PostHog over the last
24 hours. Cross-check their first-seen timestamps against PRs merged
to main on GitHub in the last 48 hours, and draft a Linear bug report
for the most likely regression.

把 PostHog 和 GitHub 連起來,一個 Task 就能把原始的堆疊追蹤變成一個具體的嫌疑提交。

4. 為指標和錯誤異常設定 Salix Loop

text
Watch PostHog daily at 8:00 AM. Stay quiet when metrics stay within
normal range. Only alert #product-metrics if:
- Daily activation drops more than 15% week-over-week, OR
- Checkout/sign-in error rate doubles compared to the 7-day baseline.
When an alert fires, include the top affected platform and recent
deploys from GitHub.

把這個 Loop 搭配一個週一早晨的 Routine,把一份簡潔的每週指標表直接寫進團隊的 Notion 檢討頁面。

分析衛生與護欄

  • 預設以讀取為主:一開始連接 PostHog 時只用來查詢分析、實驗、旗標和錯誤;功能旗標的切換或正式環境推出的變更,都要在 Needs Review 中經過真人明確核准。

  • 回報完整的全貌:請 Comma 一律同時列出絕對數量和百分比,包括沒有變化或表現不佳的區段,讓成效報告絕不只挑好消息。


Try Comma, Now.

開始使用