本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)41k · #6959

debugging-surveys

できること

このスキルは、アンケートが表示されない、回答が欠けるなどのアンケートの問題を、Webとモバイルのアプリにまたがって診断します。アンケートの問題に遭遇した開発者やサポート担当向けです。

使う場面

  • ✓表示されるべきユーザーに、アンケートが表示されないとき。
  • ✓アンケートの回答が想定より少ない、または一部の回答が欠けているとき。
  • ✓アンケートの一部だけが回答されている、またはアンケートが間違ったプラットフォームに表示されているとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/PostHog/posthog/blob/master/products/surveys/skills/debugging-surveys/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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がユーザーを対象外と判断しているためです。表示のバグであることは少ないです。

すべてのプラットフォームで同じアンケートの機能が使えますか?

いいえ。このスキルには、Web、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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル