Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

PostHog iOS Late Setup Cold Open Tracking

PostHog iOS late setup cold open tracking: stop missing background events and wrong cold opens when SDK setup or opt-in happens after launch.

· 3 min read

Many iOS apps do not start analytics at the very first line of code. You might wait for a consent prompt, load remote configuration, or initialise the SDK only after sign-in. That is sensible, but it creates a quiet measurement problem: the app has already launched by the time the SDK starts listening.

PostHog iOS 3.93.2 fixes missing background events and incorrect cold opens after late setup or opt-in. If you upgrade without checking your numbers, your launch and engagement charts may shift overnight, and it will look like a change in user behaviour when it is really a change in measurement.

Data Points to Track

  • $app_opened with its from_background property, so cold opens and returns from background stay separate
  • $app_backgrounded counts per session, to confirm background events are arriving
  • sdk_setup_timing (at_launch, after_consent, after_login), a property you set yourself
  • sdk_version on every event, so you can split data before and after 3.93.2
  • consent_granted_at and seconds_since_launch at the moment of opt-in
  • is_first_launch_after_install to avoid mixing install opens with ordinary cold opens
  • session_event_count to spot sessions that start with no opening event at all
  • app_version and os_version for release comparisons

Setup Steps

  1. Record your baseline. Before upgrading, note the daily count of cold opens, background events and sessions with no open event.
  2. Upgrade PostHog iOS to 3.93.2 or later (3.93.3 is the current release).
  3. Register the SDK-setup timing as a super property, using the values above, so every event carries it.
  4. Release to a small group first. Compare cold opens per daily active user between old and new versions.
  5. Test the late paths manually. Launch the app, accept consent, then background and reopen it. Confirm the events appear in live events with the right properties.
  6. Annotate the release in your dashboard so a step change is explained, not investigated.
  7. Document the break. Add a note to your metric definition that cold open counts changed from the upgrade date.

Actionable Insights

Start with cold opens per active user. If the figure drops after the upgrade, the old SDK was probably counting some warm returns as cold launches. The new number is the more honest one. Restate your historical trend or mark the break so no one reads it as a decline.

Next, look at sessions with no opening event, split by sdk_setup_timing. If late setup accounts for most of them, you have a clear case for initialising the SDK earlier and queueing events until consent arrives, instead of starting from nothing.

Finally, check background events. They are a signal for how often people leave and return. If they were missing for consented users, your session length and retention calculations may have been slightly off. Recheck any retention report that depends on app-open events before you present it to the team.

Launch metrics are only useful when everybody agrees what a cold open is. A short note beside the chart is cheap insurance.