If your Android app runs more than one analytics instance, the same person can end up with two identities. One instance knows the user ID, the other does not, and events split across profiles. Funnels break, retention drops, and nobody can say why.
Amplitude Android Kotlin SDK 1.36.0 (21 October 2026) adds shared identity properties with an atomic setter. Multiple SDK instances can share and sync user identity without race conditions. That is a fix for a problem many teams only discover when numbers stop adding up.
Data Points to Track
- instance_name: which SDK instance sent the event
- user_id_present: true when the event carries a user ID
- device_id: the device ID on each instance
- identity_mismatch: true when two instances report different user IDs
- identity_set_source: login, restore or migration
- time_to_identity_ms: app start to user ID set
- anonymous_event_pct: share of events without a user ID
- sdk_version: Amplitude Kotlin version
- app_version: release
- process_name: main or secondary process
Setup Steps
- List your SDK instances. Include any used by libraries, modules or secondary processes.
- Add
instance_nameto a shared custom property so you can split events by source. - Measure the baseline. Calculate the share of users with more than one device ID or a missing user ID.
- Upgrade to 1.36.0 or later.
- Move user identity to the shared atomic setter instead of setting it separately on each instance.
- Log an
identity_mismatchevent in debug builds when instances disagree. - Compare the baseline after one full release cycle.
Actionable Insights
A falling anonymous event share after login tells you identity now reaches every instance in time. Expect cleaner funnels and fewer duplicate users.
If mismatches persist, look at where the setter is called. A login flow that runs after the first screen events will always leave early events anonymous.
Do not expect old data to merge. Past events keep the identity they had, so mark the upgrade date in your dashboards and compare only across that line.
Watch active user counts. Merging split identities lowers monthly active users without any change in real usage, so explain the drop before someone reports it as churn.
Common Mistakes to Avoid
Do not set the user ID on one instance and assume the rest will follow. Avoid clearing identity on logout in only one place, since that leaves a stale ID on the others. Finally, do not test only on a fresh install, because restored sessions are where races hide.
A Simple Rollout Plan
Release to ten percent of users and compare identity mismatch and anonymous event share with the control group for a week. If both fall, roll out fully and tell analysts about the break in user counts.
Who Should Own Identity
Identity bugs last because nobody owns them. Name one person or team responsible for where the user ID is set, cleared and restored. Write the rules in your tracking plan: which events may be anonymous, how long after launch a user ID is expected, and what happens on logout. A short written rule saves hours of debugging when a new module adds its own SDK instance.
Related Resources
- Product analytics for connecting identity to retention
- Documentation for sending events and usage data
- Services for help with reliable app tracking