Account-level analytics depends on one thing being right: every event carries the correct group. If a group is set with a blank type or key, the events that follow can be attributed to nothing useful, and your per-company reports quietly fill with noise.
PostHog iOS 3.92.0 addresses this. Previously, a group(type:key:) call with an empty type or key stored the empty group on later events and sent an invalid $groupidentify. Now the call does nothing and logs a debug message. That is safer, but it also means a bug in your own code can now result in missing groups instead of bad ones.
Data Points to Track
- group_type: for example company, workspace or team
- group_key: the account identifier
- group_call_count: how many group calls the app makes per session
- group_call_ignored: count of blank calls seen in debug logs
- events_with_group: events that include a group
- events_without_group: events from signed-in users with no group
- sdk_version: iOS SDK version in use
- auth_state: whether the user was signed in when the call ran
- account_id_source: where the key was read from
Setup Steps
- Upgrade the iOS SDK to 3.92.0 or later.
- Search your code for every
group(type:key:)call. - Validate inputs. Check the type and key are non-empty before calling.
- Run a debug build and watch the log for the new message about ignored calls.
- Track the share of signed-in events that carry a group, before and after upgrade.
- Check call order. Make sure the group is set after the account is known, not during launch.
- Add a test that signs in and confirms the group appears on the first event.
Actionable Insights
If the share of grouped events rises after the upgrade, you had invalid groups polluting reports. If it falls, blank calls were hiding in your code and are now visibly missing. Both are useful findings.
Look at when blank values occur. A key read before authentication completes is the usual cause, which tells you the call needs to move later in the sign-in flow.
Compare account counts before and after. A drop in the number of distinct groups can mean the old figure included phantom accounts.
Common Pitfalls
Do not treat the debug message as a production alert. It appears only in debug logging, so add your own check for release builds.
Do not assume the fix is retroactive. Events already sent with bad groups stay as they are.
Why Product Teams Should Care
B2B decisions such as which accounts are healthy, expanding or at risk rest on grouped data. Clean groups mean trustworthy account reports.
Testing Checklist
Call group with an empty type, then with an empty key, then with valid values. Confirm the first two send nothing and log a message, and that the third is attached to later events.
Example Scenario
A team sets the group inside app launch, reading the company ID from a cached profile. On a fresh install the cache is empty, so the call passes a blank key. Before 3.92.0 the blank group was attached to everything the user did until the next sign-in, and a bogus group appeared in the account list. After the upgrade the call is ignored, so those early events carry no group at all.
The fix is the same either way: set the group once the account is known, and re-apply it after a restore from the keychain or a token refresh. Then measure the share of grouped events in each session so you can see the gap close.