Consent is rarely a one-time choice. People opt out of analytics, then sign in, switch accounts or change their mind. If your SDK handles those moments badly, you end up with one of two problems: events captured that should not have been, or users who are stuck on the wrong feature flags.
PostHog iOS 3.93.3 changes what happens when identify() is called while a user is opted out. The SDK now updates the user’s identity and reloads feature flags, while still capturing no events. That is helpful for personalised flags, but it means your data model needs to cope with identified users who have no events.
Data Points to Track
consent_state(opted_in, opted_out) stored locally and sent with any event that is allowedopt_out_changed_attimestamp for every consent changeidentify_while_opted_outcounted in your own app logs, not sent as an analytics eventfeature_flag_reload_countper session, to confirm reloads are not excessiveflag_keyandflag_valueexposed to opted-out users, held in your own systems if neededsdk_versionto separate behaviour before and after 3.93.3opt_out_rateper app version and per countryevents_per_identified_userto see how many identified users have zero events
Setup Steps
- Audit your sign-in flow. Find every place
identify()runs and check whether it can run for an opted-out user. - Upgrade PostHog iOS to 3.93.3 or later.
- Test opt-out first. Opt out, sign in, and watch live events. You should see no new events, and the request log should show a feature flag reload.
- Check your flag logic. Make sure code that reads a flag does not assume an event was sent for that exposure.
- Keep consent counts outside the tool. Because opted-out users send nothing, track opt-out rate in your own backend or consent platform.
- Update the privacy notice if it says that sign-in details are not used while a user is opted out. Identity can now be refreshed locally.
- Review it with your data protection lead and record the decision.
Actionable Insights
The key risk is misreading silence. A user with no events is not necessarily inactive. They may be opted out. Count opted-out users separately from lapsed ones, or churn will look worse than it is.
Next, watch the opt-out rate by app version. A jump after a consent screen redesign tells you the wording or layout is working against you. A fall may mean the prompt is easy to miss.
Finally, compare feature flag results for opted-in and opted-out users. If experiments only measure opted-in people, the results describe a self-selected group. Note that limit in every experiment write-up so product decisions are made with it in mind.
A practical habit: write down, in one place, exactly what your app does for an opted-out user. Which identifiers are stored, which flags are fetched, and which events are never sent. Product, engineering and legal can then read the same page, and the next SDK upgrade becomes a quick review, not a debate.