PostHog Android 4.1.0, released on 26 November 2026, changes how session replay decides to record. It supports session replay v2 trigger groups from remote config, handles negative hashes in sampling the way posthog-js does, and checks event triggers after your beforeSend hooks run.
If you use replay to investigate problems, this changes which sessions you will actually see. Without a way to measure it, you can lose recordings and never notice.
Why This Metric Matters
Session replay is only useful if the right sessions get recorded. A trigger rule that is too narrow gives you almost no recordings. One that is too wide fills your quota with sessions that tell you nothing.
Two details in this release can shift your numbers. First, events dropped by a beforeSend hook no longer start a recording. Second, events you rename in beforeSend now match under their new name. If you filter or rename events, your trigger rules may behave differently after the upgrade.
Data Points to Track
Capture these so you can compare recording behaviour before and after the upgrade:
sdk_version: the PostHog Android version on each sessionreplay_started(true or false) for each sessionreplay_trigger_group: the group or rule that started the recordingreplay_trigger_event: the event name that matchedevent_renamed_in_before_send(true or false)event_dropped_in_before_send_countsample_rate_configuredandsampled_in(true or false)session_length_secondsapp_versionandbuild_numberplatform(Android) andos_version
Setup Steps
- Upgrade the PostHog Android SDK to 4.1.0 or later in a test build.
- List every
beforeSendhook in your app. Note which ones drop or rename events. - Open your replay settings in PostHog and write down the current trigger rules and sample rate.
- Add
sdk_versionto your session properties if it is not already there. - Run through a normal user journey. Confirm a trigger event starts a recording.
- Trigger an event your hook drops. Confirm that no recording starts.
- Trigger an event your hook renames. Confirm the rule matches the new name.
- Roll out to a small share of users. Build a chart of recordings per 1,000 sessions, split by
sdk_version.
Actionable Insights
Recordings per 1,000 sessions drop after the upgrade. Check whether a dropped event was the old trigger. Move the rule to an event that your hook keeps.
A rule never fires. If you rename an event in a hook, update the rule to use the new name.
Android and web sample differently. The negative hash fix is meant to line up sampling with posthog-js. If the same user gets a different decision on web and mobile, compare the configured rates first.
One trigger group produces most recordings. Review whether it is the group you care about. A broad group can use up your quota.
Recordings of failed flows are missing. Add a trigger group for the error or abandon event that starts those flows.
Common Mistakes to Avoid
Do not judge the new behaviour from one day of data, because sampling is random. Do not edit trigger groups and upgrade the SDK in the same release, since you will not know which change moved the numbers. And do not assume mobile and web rules are the same without checking.