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

PostHog iOS Opt-Out Identify Tracking

PostHog iOS opt-out identify tracking: keep identity and feature flags correct for opted-out users while capturing no events, from SDK 3.93.3.

· 3 min read

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 allowed
  • opt_out_changed_at timestamp for every consent change
  • identify_while_opted_out counted in your own app logs, not sent as an analytics event
  • feature_flag_reload_count per session, to confirm reloads are not excessive
  • flag_key and flag_value exposed to opted-out users, held in your own systems if needed
  • sdk_version to separate behaviour before and after 3.93.3
  • opt_out_rate per app version and per country
  • events_per_identified_user to see how many identified users have zero events

Setup Steps

  1. Audit your sign-in flow. Find every place identify() runs and check whether it can run for an opted-out user.
  2. Upgrade PostHog iOS to 3.93.3 or later.
  3. 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.
  4. Check your flag logic. Make sure code that reads a flag does not assume an event was sent for that exposure.
  5. Keep consent counts outside the tool. Because opted-out users send nothing, track opt-out rate in your own backend or consent platform.
  6. 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.
  7. 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.