Roei
Roei

Reputation: 319

How to set user identity

I'd like to report analytics using Firebase from different platforms (same user can have multiple desktop/mobile devices).

Is there a way to set user identity so all events from all devices will be aggregated into same unique user?

I only see a way to report user properties in documentation: https://firebase.google.com/docs/analytics/ios/properties

Thanks!

Upvotes: 1

Views: 5197

Answers (2)

Giedrius Šlikas
Giedrius Šlikas

Reputation: 1201

In case of logout you have to set user id to empty string setUserID("") , because users still being tracked if .setUserID(null) doesn't do the trick

Upvotes: 0

Steve Ganem
Steve Ganem

Reputation: 10851

The setUserID API allows you to associate a user identity with the app-instance.

Upvotes: 3

Related Questions