Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Properti pengguna adalah atribut yang Anda tentukan untuk menggambarkan segmen
basis pengguna, seperti preferensi bahasa atau lokasi geografis. Properti ini dapat digunakan
untuk menentukan audience
aplikasi Anda. Panduan ini menunjukkan cara menetapkan properti pengguna di aplikasi.
Analytics akan otomatis mencatat beberapa
properti pengguna ke dalam log.
Anda tidak perlu menambahkan kode apa pun untuk mengaktifkannya. Jika perlu mengumpulkan data tambahan,
Anda dapat menetapkan hingga 25 properti pengguna berbeda per project. Perlu diperhatikan bahwa nama
properti pengguna peka huruf besar/kecil, sehingga penetapan dua properti pengguna dengan
nama yang sama tetapi susunan huruf kapitalnya berbeda akan menyebabkan pencatatan dua properti pengguna yang berbeda ke dalam log.
Anda tidak dapat menggunakan sekumpulan kecil nama properti pengguna yang dilindungi oleh Google:
Usia
Gender
Minat
Sebelum memulai
Pastikan Anda telah menyiapkan project dan dapat mengakses Analytics seperti
yang dijelaskan dalam artikel
Mulai Menggunakan Analytics.
Menetapkan properti pengguna
Anda dapat menetapkan properti pengguna Analytics untuk menggambarkan pengguna aplikasi.
Anda dapat memanfaatkan properti pengguna dengan membuat definisi kustom, kemudian menggunakannya
untuk menerapkan perbandingan dalam laporan atau sebagai kriteria evaluasi audience.
Untuk menetapkan properti pengguna, ikuti langkah-langkah berikut:
Anda dapat mengakses data ini dari
halaman Custom Definitions
pada Analytics di Firebase console. Halaman ini menampilkan daftar
properti pengguna yang ditentukan untuk aplikasi Anda. Anda dapat menggunakan properti ini
dalam perbandingan pada banyak laporan yang tersedia di Google Google Analytics.
Baca selengkapnya tentang
dasbor.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-21 UTC."],[],[],null,["iOS+ Android Web Flutter \n\n\u003cbr /\u003e\n\nUser properties are attributes you define to describe segments of your\nuser base, such as language preference or geographic location. These can be used\nto define [audiences](https://support.google.com/firebase/answer/6317509)\nfor your app. This guide shows you how to set user properties in your app.\n\nAnalytics automatically logs some\n[user properties](https://support.google.com/analytics/answer/9268042); you\ndon't need to add any code to enable them. If you need to collect additional\ndata, you can set up to 25 different user properties per project. Note that user\nproperty names are case-sensitive and that setting two user properties whose\nnames differ only in case results in two distinct user properties being logged.\n\nYou can't use a small set of user property names reserved by Google:\n\n- **Age**\n- **Gender**\n- **Interest**\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](/docs/analytics/get-started?platform=web).\n\nSet user properties\n\nYou can set Analytics user properties to describe the users of your app.\nYou can make use of user properties by creating custom definitions, then using\nthem to apply comparisons in your reports or as audience evaluation criteria.\n\nTo set a user property, follow these steps:\n\n1. Create a custom definition for the user property in the [**Custom Definitions** page](https://console.firebase.google.com/project/_/analytics/userproperty) of *Analytics* in the Firebase console. For more information, see [Custom dimensions and metrics](https://support.google.com/analytics/answer/10075209).\n2. Set a user property in your app with the [`setUserProperty()`](/docs/reference/js/analytics#setuserproperties) method.\n\nThe following example shows how to add a hypothetical \"favorite food\" property,\nwhich assigns the value in the string `food` to the active user: \n\nWeb \n\n```javascript\nimport { getAnalytics, setUserProperties } from \"firebase/analytics\";\n\nconst analytics = getAnalytics();\nsetUserProperties(analytics, { favorite_food: 'apples' });https://github.com/firebase/snippets-web/blob/467eaa165dcbd9b3ab15711e76fa52237ba37f8b/snippets/analytics-next/index/analytics_set_user_properties.js#L8-L11\n```\n\nWeb \n\n```javascript\nfirebase.analytics().setUserProperties({favorite_food: 'apples'});https://github.com/firebase/snippets-web/blob/467eaa165dcbd9b3ab15711e76fa52237ba37f8b/analytics/index.js#L38-L38\n```\n| **Note:** After 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.\n\nYou can access this data from the\n[**Custom Definitions** page](https://console.firebase.google.com/project/_/analytics/userproperty)\nof *Analytics* in the Firebase console. The page shows a list of\nuser properties that you have defined for your app. You can use these properties\nin comparisons on many of the reports available in Google Analytics.\nRead more about the\n[dashboard](https://support.google.com/analytics/answer/11014767).\n| **Note:** Data in the Analytics reporting dashboard refreshes periodically throughout the day."]]