返回博客

Comma PostHog 数据分析指南

在聊天里用平常的话查询 PostHog 的漏斗、留存、功能开关、实验和产品错误,并设置 Salix Loop,只在指标变化时提醒团队。

开始使用阅读文档

大多数团队都把 PostHog 埋点做得很仔细,然后照样要等两天,才有人做出一张漏斗图、比较一次实验的各个变体,或者发现错误激增正好始于周二那次部署之后。

把官方 PostHog MCP 连接到 Comma 之后,团队里任何人都能用平常的话提产品问题,把异常直接关联到 GitHub 部署和 Linear issue,并运行 Salix Loop 全天候盯住关键指标,不用手动查看看板。

准备

  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 桌面应用:一个从 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.

开始使用