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

PostHog React Native Property Override Tracking

PostHog React Native property override tracking: 4.81.0 lets capture() properties replace SDK context such as $app_version. Audit your events.

· 3 min read

Event properties look simple until two sources disagree. If your code sends $app_version and the SDK also adds $app_version, one of them wins. When you do not know which, dashboards quietly split by the wrong value and nobody notices for weeks.

PostHog React Native 4.81.0, released on 10 October 2026, changes the rule. Properties you pass to capture() and the other event methods now override SDK context properties such as $app_version, $os_name and $lib. This matches posthog-js and posthog-android. Previously the SDK value could win.

Data Points to Track

  • overridden_property_name: which reserved key you set per event
  • sdk_value: what the SDK would have sent
  • custom_value: what your code sent instead
  • override_count: events carrying any override
  • app_version_distinct_count: number of distinct $app_version values per day
  • os_name_distinct_count: number of distinct $os_name values per day
  • sdk_version: React Native SDK version on each event
  • event_name: where overrides occur most often

Setup Steps

  1. Search your codebase for capture( calls that pass keys beginning with $.
  2. List each reserved key you set and decide whether you want it to win.
  3. Remove accidental keys, such as a copied $app_version from an old helper.
  4. Upgrade to 4.81.0 or later in a test build first.
  5. Capture a test event and inspect the properties in PostHog.
  6. Compare distinct values of $app_version and $os_name before and after release.
  7. Annotate the release date on charts that break down by these properties.

Actionable Insights

A sudden new value in $app_version after release usually means your code was passing a different version string that was previously ignored. Decide which one is correct, then fix the source rather than the chart.

If $lib values change, check whether a wrapper or plugin sets it. You may want to stop passing it so lib-based filters keep working.

Overrides can be useful. Teams that ship a web view inside a native app sometimes want to tag events with the host app version. Now that this is supported, document it and keep the list of overridden keys short.

Watch your funnels after the upgrade. A filter such as “app version equals 3.2.0” can silently lose events if the value format changes, for example from 3.2.0 to 3.2.0 (412).

Common Pitfalls

Do not treat this as a pure bug fix. It changes the data your team already trusts. Brief anyone who owns a dashboard that breaks down by a reserved property.

Do not override identity or session properties unless you fully understand the effect. Keep overrides to descriptive fields.

Why Product Teams Should Care

Reserved properties drive the most common breakdowns: version, platform and library. When their meaning shifts, release comparisons and adoption charts shift with them. A short note to analysts before the upgrade saves hours of confused questions afterwards.

Testing Checklist

Capture one event with a custom $app_version and one without. Check both in the live events view. Confirm the value you expect appears in each case, then repeat on iOS and Android builds. Save screenshots with the SDK version for your records.