Dc Technology
Dc Technology

Reputation: 1

How to record username in Firebase analytics?

How to record the user data e.g. USERNAME in log events for a Unity based ap using Firebase analytics?

Ex:

Firebase.Analytics.FirebaseAnalytics.LogEvent("user_name", "abc");

Upvotes: 0

Views: 338

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317402

User IDs are not events - they are user properties. You should set a user property for the current user with their ID, and that will get associated with all subsequent events for that user:

Firebase.Analytics.FirebaseAnalytics.SetUserProperty("user_name", "abc");

Upvotes: 1

Related Questions