Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Las propiedades del usuario son atributos que defines para describir segmentos de tu base de usuarios, como la preferencia de idioma o la ubicación geográfica.
Analytics registra automáticamente algunas propiedades del usuario;
no es necesario que agregues código para habilitarlas. Si necesitas que tu app recopile datos adicionales, puedes configurar hasta 25 propiedades del usuario de Analytics en tu app.
Puedes configurar las propiedades del usuario de Analytics a fin de describir a los usuarios de tu app. Para analizar los comportamientos de diversos segmentos de usuarios, puedes aplicar estas propiedades como filtros en tus informes.
Para configurar una propiedad del usuario, debes hacer lo siguiente:
Registra la propiedad en la pestaña Analytics de la consola de Firebase.
Agrega código para configurar una propiedad del usuario de Analytics con el método SetUserProperty(). Puedes usar el nombre y el valor que elijas para cada propiedad.
En el siguiente ejemplo, se muestra cómo agregar una propiedad hipotética, la comida favorita del usuario, que
le asigna el valor de la string mFavoriteFood al usuario activo:
SetUserProperty("favorite_food",mFavoriteFood);
Puedes acceder a estos datos de la siguiente manera:
Selecciona Analytics en el menú para ver el panel de informes de Analytics.
En la pestaña Propiedades del usuario, se muestra una lista de las propiedades del usuario que definiste en la app. Puedes usar esas propiedades como filtro en muchos de los informes disponibles en Google Analytics. Obtén más información sobre el
panel de informes de Analytics en el Centro de ayuda de Firebase.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-05 (UTC)"],[],[],null,["\u003cbr /\u003e\n\nUser properties are attributes you define to describe segments of your user\nbase, such as language preference or geographic location.\n\nAnalytics automatically logs some\n[user properties](https://support.google.com/analytics/answer/9268042);\nyou don't need to add any code to enable them. If your app needs to collect\nadditional data, you can set up to 25 different Analytics user properties\nin your app.\n\nBefore you begin\n\nMake sure that you've set up your project and can access Analytics as\ndescribed in\n[Get Started with Analytics for C++](/docs/analytics/cpp/start#before_you_begin).\n\nSet user properties\n\nYou can set Analytics user properties to describe the users of your app.\nYou can analyze behaviors of various user segments by applying these\nproperties as filters to your reports.\n\nSet a user property as follows:\n\n1. [Register](https://support.google.com/firebase/answer/6317519?hl=en&ref_topic=6317489#create-property) the property in the **Analytics** tab\n of the [Firebase console](//console.firebase.google.com/).\n\n2. Add code to set an Analytics user property with the\n [`SetUserProperty()`](/docs/reference/cpp/namespace/firebase/analytics#setuserproperty) method. You can use the name and\n value of your choosing for each property.\n\nThe following example shows adding a hypothetical favorite food property, which\nassigns the value in the string `mFavoriteFood` to the active user: \n\n```c++\nSetUserProperty(\"favorite_food\", mFavoriteFood);\n```\n| **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.\n\nYou can access this data as follows:\n\n1. In the [Firebase console](//console.firebase.google.com/), open your project.\n2. Select **Analytics** from the menu to view the Analytics reporting dashboard.\n\nThe **User Properties** tab shows a list of user properties that you have\ndefined for your app. You can use these properties as a filter on many of the\nreports available in Google Analytics. Read more about the\n[Analytics reporting dashboard](https://support.google.com/analytics/answer/11014767) in the Firebase Help Center.\n| **Note:** Data in the Analytics reporting dashboard refreshes periodically throughout the day."]]