This table lists the custom user properties that you create and register in the Firebase interface. For example, if you want to keep track of a user’s favorite sports team, set that as a user property.
Capture user properties so you can segment your user base. Apply the properties as report filters so you can understand how each segment interacts with your app.
Create and register a user property
Each Firebase app can have up to 25 uniquely named user properties (case-sensitive). You should use properties for static or slow-changing attributes, such as "spender=true", "profession=engineer", or "favorite_team=Real Madrid". Properties are effectively sticky event parameters that are automatically logged with every subsequent call to
logEvent. After you set a user property value, it will be associated with every event logged afterwards, so that you gain the ability to filter all of your analytics reports by this user property. This allows you to, for example, see how the game play habits of spenders differ from those of non-spenders. To learn how to call
setUserProperty (Android) or
setUserPropertyString (iOS) in your code, refer to the developer documentation.
In order to use a user property as a report filter, you need to explicitly register it. Filtering is possible on data received from the day of registration onwards. To register a new user property:
- In Google Analytics or Firebase, navigate to your app.
- Google Analytics: Click User Properties in the report navigation.
Firebase: In Analytics, click User Properties.
- Click NEW USER PROPERTY.
- Enter a name and description for the user property, then click Create.