Reputation: 1
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
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