segment-integrations / analytics-ios-integration-amplitude

The Amplitude analytics-ios integration.
MIT License
11 stars 45 forks source link

Amplitude not merging users when SEGAnalytics.identify is called #66

Closed alexdojo closed 5 years ago

alexdojo commented 5 years ago

I recently adding analytics-ios-integration-amplitude in order to get session logging but it appears to have introduced this issue of double counting users.

When my app is installed for the first time, Analytics just uses an anonymous id and logs the AppInstalled and AppOpened, etc. However, once I call SEGAnalytics.identify, instead of just updating the user_id of the current amplitude user, it makes a completely new one. This is breaking all my new user retention and user count metrics.

It appears that the device_id that Amplitude is different after the identify call, which is maybe why this issue is happening?