debugging-surveys
Fungsinya
Skill ini mendiagnosis masalah survei, seperti survei yang tidak muncul atau respons yang hilang, di aplikasi web dan seluler. Ditujukan untuk pengembang dan staf dukungan yang menghadapi masalah survei.
Kapan dipakai
- βSaat survei tidak muncul untuk pengguna yang seharusnya melihatnya.
- βSaat survei memiliki respons lebih sedikit dari yang diharapkan, atau sebagian respons hilang.
- βSaat hanya sebagian survei yang dijawab, atau survei muncul di platform yang salah.
Link skill
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/debugging-surveys/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMengapa survei di dalam aplikasi saya tidak tampil untuk pengguna yang seharusnya melihatnya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memeriksa apakah setiap pengguna memenuhi aturan kelayakan survei, seperti penargetan dan fitur yang didukung platform. Sebagian besar masalah adalah gerbang kelayakan, bukan bug tampilan, sehingga skill mencari gerbang mana yang gagal dan mengapa.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
surveyPopupDelaySecondsis 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
Pertanyaan umum
Mengapa survei sering tidak ditampilkan?
Biasanya SDK memutuskan pengguna tidak memenuhi syarat, misalnya karena aturan penargetan tidak terpenuhi, bukan karena bug tampilan.
Apakah setiap platform mendukung fitur survei yang sama?
Tidak. Skill mencakup tabel fitur di seluruh web, iOS, Android, Flutter, dan React Native.
Apakah skill memerlukan kode sumber aplikasi?
Tidak. Skill menggunakan alat PostHog dan API survei untuk memeriksa konfigurasi dan respons.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6959
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.