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 | |
---|---|
kUserPropertyAllowAdPersonalizationSignals = "allow_personalized_ads" | const char *const Indicates whether events logged by Google Analytics can be used to personalize ads for the user. |
kUserPropertySignUpMethod = "sign_up_method" | const char *const The method used to sign in. |
Variables
kUserPropertyAllowAdPersonalizationSignals
constchar*constkUserPropertyAllowAdPersonalizationSignals="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 thedocumentation for more details and information about related settings.
Analytics.setUserProperty("NO",forName:AnalyticsUserPropertyAllowAdPersonalizationSignals)
kUserPropertySignUpMethod
constchar*constkUserPropertySignUpMethod="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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-04-20 UTC.