Stay organized with collections
Save and categorize content based on your preferences.
Analytics User Properties
Predefined user property names.
Summary
A UserProperty is an attribute that describes the app-user. By supplying UserProperties, you can later analyze different behaviors of various segments of your userbase. 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.
Variables
UserPropertyAllowAdPersonalizationSignals
string UserPropertyAllowAdPersonalizationSignals = "allow_personalized_ads"
Indicates whether events logged by Google Analytics can be used to personalize ads for the user.
Set to "YES" to enable, or "NO" to disable. Default is enabled. See the documentation for more details and information about related settings.
Analytics.setUserProperty("NO", forName: AnalyticsUserPropertyAllowAdPersonalizationSignals)
UserPropertySignUpMethod
string UserPropertySignUpMethod = "sign_up_method"
The method used to sign in.
For example, "google", "facebook" or "twitter".
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 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[],[],null,["# Analytics User Properties\n=========================\n\nPredefined user property names.\n\nSummary\n-------\n\nA UserProperty is an attribute that describes the app-user. By supplying UserProperties, you can later analyze different behaviors of various segments of your userbase. 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.\n\n| ### Variables ||\n|---------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [UserPropertyAllowAdPersonalizationSignals](#group__user__property__names_1gae84a687de309c83dabf27ca65dd18b0e)` = \"allow_personalized_ads\"` | `string` Indicates whether events logged by Google [Analytics](/docs/reference/unity/namespace/firebase/analytics#namespace_firebase_1_1_analytics) can be used to personalize ads for the user. |\n| [UserPropertySignUpMethod](#group__user__property__names_1ga58850cee496acc02fbf1cc788b45df32)` = \"sign_up_method\"` | `string` The method used to sign in. |\n\nVariables\n---------\n\n### UserPropertyAllowAdPersonalizationSignals\n\n```c#\nstring UserPropertyAllowAdPersonalizationSignals = \"allow_personalized_ads\"\n``` \nIndicates whether events logged by Google [Analytics](/docs/reference/unity/namespace/firebase/analytics#namespace_firebase_1_1_analytics) can be used to personalize ads for the user.\n\nSet to \"YES\" to enable, or \"NO\" to disable. Default is enabled. See the [documentation](https://firebase.google.com/support/guides/disable-analytics) for more details and information about related settings.\n\n\n```c#\nAnalytics.setUserProperty(\"NO\", forName: AnalyticsUserPropertyAllowAdPersonalizationSignals)\n```\n\n\u003cbr /\u003e\n\n### UserPropertySignUpMethod\n\n```c#\nstring UserPropertySignUpMethod = \"sign_up_method\"\n``` \nThe method used to sign in.\n\nFor example, \"google\", \"facebook\" or \"twitter\"."]]