Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

PostHog Framework Version Property Tracking

PostHog framework version property tracking: handle $react_native_version and $flutter_version now sent only on install and update events.

· 3 min read

Cross-platform apps break in ways native apps do not. A bug may appear only on React Native 0.79 or only on Flutter 3.32, and you cannot find it if your events do not say which framework version was running.

PostHog added framework version properties to its React Native and Flutter SDKs, then changed them within days. React Native 4.79.0 added $react_native_version to every JavaScript event. Version 4.80.0 narrowed it to the Application Installed and Application Updated events. Flutter 5.53.0 did the same for $flutter_version, and stopped sending it on web. If your dashboards break down by these properties on ordinary events, your numbers have changed.

Data Points to Track

  • $react_native_version or $flutter_version: the framework version at install or update
  • app_version and build_number: to join against the lifecycle event
  • sdk_version: the PostHog SDK release in use
  • platform: iOS, Android, or web
  • event_name: Application Installed or Application Updated
  • first_seen_framework_version: stored per user from the lifecycle event
  • crash_free_rate: by framework version
  • session_count: to size each version’s audience

Setup Steps

  1. Upgrade to React Native 4.80.0 or later and Flutter 5.53.0 or later, and note the date.
  2. Find every insight that breaks down or filters by the framework version property on non-lifecycle events.
  3. Rebuild those insights to use the lifecycle events, or copy the value onto the person profile.
  4. Register a super property yourself if you need the version on every event. In React Native, set it in customAppProperties.
  5. Test the event payload in a debug build and confirm which events carry the property.
  6. Add a chart of active users by framework version, built from the profile value.
  7. Record the change as an annotation on your dashboards.

Actionable Insights

Users who installed before the change only report a framework version when they next update the app. Expect a long tail of “unknown” in any breakdown, and do not read it as a drop in adoption.

Compare crash-free rate by framework version once the profile property is in place. A single version with a worse rate points to an engine regression, not your own code.

If most active users sit on an old framework version, upgrading carries a smaller blast radius than you fear. If they are spread thinly across many versions, test on the oldest one still in use.

Common Pitfalls

Do not assume the property is missing because of a bug. Check the event name first. Remember that events captured by native layers, such as lifecycle events, follow different rules from JavaScript or Dart events.

Why Product Teams Should Care

The change reduces event size and cost, which is welcome. The price is that framework-level questions now need one extra join. Ask engineering to confirm which dashboards use these properties before the upgrade ships, so a sudden empty chart is not mistaken for a real user trend.

Testing Checklist

Install a fresh build on a test device, then update it, and look at both lifecycle events in the live view. Confirm the version is present on each and absent on ordinary events. Then check a saved insight that used to filter on the property and confirm it is rebuilt. Keep screenshots as a record for the team.