-
-
Notifications
You must be signed in to change notification settings - Fork 5
Analytics Set User Properties
The contents of this page are based on the original Firebase Documentation
User properties are attributes you define to describe segments of your user base, such as language preference or geographic location.
Analytics automatically logs some user properties; you don't need to add any code to enable them. If you need to collect additional data, you can set up to 25 different Analytics User Properties per project.
You can set Analytics user properties to describe the users of your app. You can analyze behaviors of various user segments by applying these properties as filters to your reports.
Set a user property as follows:
- Register the property in the Analytics page of the Firebase console.
- Add code to set an Analytics user property with the setUserProperty() method. You can use the name and value of your choosing for each property.
The following example shows adding a hypothetical favorite food property, which assigns the value in the string food to the active user:
analytics.setUserProperty("favorite_food", food);
Note: Once the property is registered, it can take several hours for data collected with the property to be included in reports. When the new data is available, the user property can be used as a report filter or audience definition.
Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Project setup
Analytics
Authentication
Dynamic Links
Google Sign In
Firestore
- Configuring the ANE
- Get Started
- Add and Manage Data
- Query Data
- Get Data
- Get Realtime Updates
- Perform Simple and Compound Queries
- Order and Limit Data
- Paginate Data
Messaging
One Signal
Performance
Remote Config
Storage
- Configuring the ANE
- Get Started
- Create a Reference
- Upload Files
- Download Files
- Use File Metadata
- Delete Files
Crashlytics
Vision
- Detect faces
- Scan barcodes
- Label images
- Recognize landmarks
- Natural Language
- Custom Models
External Links