Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

PostHog Android Compose Survey Failure Tracking

PostHog Android Compose survey tracking: measure skipped surveys when Material3 versions clash, with surveysCompose 0.5.0 failure isolation.

· 3 min read

In-app surveys sit on top of your own interface, so they inherit every dependency choice you made. When a library clash breaks the survey view, the old result was worse than a missing survey: the host app could crash. A feedback tool that takes down a checkout screen costs far more than the feedback it was meant to collect.

PostHog’s surveysCompose 0.5.0 changes this. Survey composition and measurement failures are now isolated, so an incompatible Compose dependency makes the survey skip instead of crashing the app. The release also raises the minimum Material3 version to 1.4.0 and updates the bottom-sheet APIs for Material3 1.5.0.

Safer failure has a cost: a skipped survey is silent. You need your own signal to learn how often it happens, or your response rate will fall and nobody will know why.

Data Points to Track

  • survey_eligible count, when the user matched targeting
  • survey_rendered count, when the survey view appeared
  • survey_skipped_render_failure count, as a custom event from your app
  • render_skip_rate: skipped divided by eligible
  • survey_id and survey_type (popover, bottom sheet)
  • material3_version and compose_bom_version
  • surveys_compose_version, app_version and android_version
  • device_model for the skipped group
  • survey_response_rate by app version

Setup Steps

  1. Check your Material3 version and raise it to 1.4.0 or later before adopting surveysCompose 0.5.0.
  2. Upgrade the dependency in a debug build and open each survey type on a real device.
  3. Add an app-side event that fires when a survey was due but did not appear, for example after a short timeout.
  4. Attach the dependency versions as properties so you can group skipped surveys by library set.
  5. Build a funnel from survey_eligible to survey_rendered to survey_sent.
  6. Compare response rates for the 14 days before and after release, by app version.
  7. Set an alert if render_skip_rate rises above a level your team agrees, such as 2%.

Actionable Insights

Read the funnel from the top. A big gap between eligible and rendered means surveys are being skipped for technical reasons, not because users ignored them. That is a quality problem for engineering, not a messaging problem for product.

Group skipped events by Material3 and Compose BOM version. If the problem sits in one combination, you can fix it with a dependency change and expect the response rate to recover. If it spreads across versions, check the device model for a pattern before blaming the library.

Compare response rate by app version around the upgrade. A drop right after release, with a matching rise in skips, tells you the new minimum version excluded some builds. A drop with no extra skips points to survey design or timing instead.

Finally, remember the trade you made. You chose a missing survey over a crash, which is the right call, but only if you watch the cost. Review the skip rate each release, and treat a rising number as a bug report from your own data.