FirebaseAnalytics.UserProperty
Stay organized with collections
Save and categorize content based on your preferences.
A UserProperty is an attribute that describes the app-user. By supplying UserProperties,
you can later analyze different behaviors of various segments of your user base. You may
supply up to 25 unique UserProperties per app, and you can use the name and value of your
choosing for each one. UserProperty names can be up to 24 characters long, may only contain
alphanumeric
characters and underscores ("_"), and must start with an alphabetic
character. UserProperty values can be up to 36 characters long. The "firebase_", "google_"
and "ga_" prefixes are reserved and should not be used.
The following user property names are reserved and cannot be used:
- first_open_time
- first_visit_time
- last_deep_link_referrer
- user_id
- first_open_after_install
Protected Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final String
ALLOW_AD_PERSONALIZATION_SIGNALS
Indicates whether events logged by Google Analytics can be used to personalize ads
for the user. Set to "true" to enable, or "false" to disable. Default is enabled. See
the documentation
for more details and information about related settings.
Constant Value:
"allow_personalized_ads"
public static final String
SIGN_UP_METHOD
The method used to sign in. For example, "google", "facebook" or "twitter".
Constant Value:
"sign_up_method"
Protected Constructors
protected UserProperty ()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-27 UTC."],[[["FirebaseAnalytics.UserProperty allows you to define custom attributes to describe your app users for segmentation and analysis."],["UserProperty names are limited to 24 alphanumeric characters and underscores, starting with an alphabetic character, while values can be up to 36 characters long."],["There are two predefined UserProperties: `ALLOW_AD_PERSONALIZATION_SIGNALS` and `SIGN_UP_METHOD`, and a few reserved names that cannot be used for custom properties."],["You can define up to 25 unique UserProperties per app, excluding the predefined and reserved names."]]],[]]