跳到正文
Skillpedia
部署与云(DevOps)41k · #6959

debugging-surveys

它能做什么

本技能诊断问卷问题,例如问卷未出现或回复丢失,涵盖网页和移动应用。适合遇到问卷问题的开发者和支持人员。

适用场景

  • ✓当本应看到问卷的用户没有看到问卷时。
  • ✓当问卷的回复数量少于预期,或部分回复缺失时。
  • ✓当问卷只回答了一部分,或问卷在错误的平台上显示的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/surveys/skills/debugging-surveys/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/surveys/skills/debugging-surveys/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为什么我的应用内问卷对本应看到它的用户不显示?”

每周 5 个新技能,1 分钟读完。

工作原理

它会检查每位用户是否符合问卷的资格规则,例如定向设置以及平台是否支持相关功能。大多数问题出在资格门槛上,而非显示错误,因此它会找出是哪一道门槛未通过以及原因。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Debugging surveys

PostHog Surveys is a no-code in-app form builder. A customer creates a survey in the PostHog UI; it must then be evaluated and rendered by whichever SDK their app runs. Most "survey not showing" tickets are eligibility problems, not rendering bugs — the SDK correctly decided the user is not eligible, and the job is to find which gate failed and why.

Access requirements

Use PostHog MCP tools or the survey API to inspect survey configuration and responses. A checkout of the PostHog repository is not required for these diagnostic steps.

Cross-SDK feature parity (check this FIRST)

A large class of tickets is "customer expects a feature their platform doesn't support." Confirm the survey's lib / the customer's platform before anything else, then consult this table. Verified against the SDK source — re-verify if it's been months, the gaps get filled over time.

Feature Web (posthog-js) iOS Android Flutter React Native
Rendering DOM + shadow root Native SwiftUI (SurveysWindow) No built-in UI — delegate only Dart widgets (SurveyBottomSheet) RN components (SurveyModal)
Event-based triggers yes (since 1.137.0, 2024-06-05) yes yes yes (native side) yes
URL / screen targeting yes decoded but NOT evaluated (// TODO) decoded but NOT evaluated NOT evaluated (native gap) explicitly excluded in filter
Feature-flag / cohort targeting yes yes yes yes (native side) yes
seenSurveyWaitPeriodInDays yes yes yes yes (native side) yes (≥ 4.81.5)
surveyPopupDelaySeconds yes not implemented not implemented not implemented not implemented (TODO)
enable_partial_responses yes (≥ 1.240.0) no no no no
skipSubmitButton (auto-submit) yes (≥ 1.244.0) no no no no

The last two rows are per the editor's own help text ("Doesn't work with the mobile SDKs for now" / "Not available for the mobile SDKs at the moment") rather than a per-SDK source audit.

Consequences worth memorizing:

  • surveyPopupDelaySeconds is web-only. If a mobile ticket blames the delay, it's a red herring.
  • Partial responses and auto-submit are web-only too. On mobile a survey always stores one response at the end, and a rating tap never self-submits. Don't carry a web diagnosis onto a mobile ticket.
  • URL targeting is effectively web-only. Mobile SDKs decode the field but never enforce it; React Native filters those surveys out entirely. A mobile survey with a URL condition behaves as "no URL condition" (mobile/flutter) or "never shows" (RN).
  • Android ships no survey UI. The app (or the Flutter plugin) must provide a PostHogSurveysDelegate. "Survey never renders on Android" is often a missing delegate, not a PostHog bug.
  • Flutter is hybrid: triggering/eligibility runs in the native iOS/Android layer; rendering is Dart (SurveyService.showSurvey → showModalBottomSheet). It does not "just call native" for UI. So a Flutter rendering bug lives in Dart; a Flutter eligibility bug lives in native.
  • React Native enforces the wait period from 4.81.5. Older versions skip the check, s
常见问题

为什么问卷经常不显示?

通常是 SDK 判定用户没有资格,例如未满足某条定向规则,而不是显示错误。

每个平台都支持相同的问卷功能吗?

不是。本技能包含一张表格,列出网页、iOS、Android、Flutter 和 React Native 各自支持的功能。

它需要应用的源代码吗?

不需要。它使用 PostHog 工具和问卷 API 检查配置和回复。

详情

作者的原始描述

Diagnose PostHog Surveys configuration and responses across all five SDKs (web/posthog-js, iOS, Android, Flutter, React Native). Use whenever a Surveys support ticket is pasted ("survey not showing", "fewer responses than expected", "responses disappeared", "responses are incomplete", "only the first question was answered", "the user says they didn't mean to submit", "survey shows on wrong platform"), or when diagnosing why a survey does or doesn't display. Covers the eligibility pipeline, how a response actually gets stored (partial responses, branching, optional questions, auto-submit), cros

repo: PostHog/posthog

热度

GitHub 星标
41k
排名
#6959
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能