|
1 | 1 | {# This content gets published to the following location: #}
|
2 | 2 | {# https://firebase.google.com/docs/analytics/user-properties?platform=flutter #}
|
3 | 3 |
|
4 |
| -{# TODO(markarndt): Sync all this content up with Analytics content consolidation plan. #} |
| 4 | +{# TODO(markarndt): Sync all this content up with Analytics content |
| 5 | +consolidation plan. #} |
5 | 6 |
|
6 | 7 | ## Before you begin
|
7 | 8 |
|
8 |
| -Make sure that you've set up your project and can access Analytics as |
9 |
| -described in [Get Started with Analytics](get-started). |
| 9 | +Make sure that you've set up your project and can access {{analytics}} as |
| 10 | +described in [Get Started with {{analytics}}](get-started). |
10 | 11 |
|
11 | 12 | ## Set user properties
|
12 | 13 |
|
13 |
| -You can set Analytics User Properties to describe the users of your app. |
14 |
| -You can analyze behaviors of various user segments by applying these |
15 |
| -properties as filters to your reports. |
| 14 | +You can set {{ analytics }} user properties to describe the users of your app. |
| 15 | +You can make use of user properties by creating custom definitions, then using |
| 16 | +them to apply comparisons in your reports or as audience evaluation criteria. |
16 | 17 |
|
17 |
| -Set a user property as follows: |
| 18 | +To set a user property, follow these steps: |
18 | 19 |
|
19 |
| -1. Register the property in the [** User Properties ** page](https://console.firebase.google.com/project/_/analytics/userproperty) |
20 |
| - of Analytics in the Firebase console. For more information, see |
21 |
| - [Set and register a user property](//support.google.com/firebase/answer/6317519?ref_topic=6317489#create-property). |
22 |
| -1. Add code to set an Analytics User Property with the `setUserProperty()` |
23 |
| - method. |
| 20 | +1. Create a custom definition for the user property in the |
| 21 | + [**Custom Definitions** page](https://console.firebase.google.com/project/_/analytics/userproperty){: .external} |
| 22 | + of _{{analytics}}_ in the {{name_appmanager}}. For more information, see |
| 23 | + [Custom dimensions and metrics](//support.google.com/firebase/answer/6317519). |
| 24 | +1. Set a user property in your app with the `setUserProperty()` method. |
24 | 25 |
|
25 |
| -The following example |
26 |
| -adds a hypothetical favorite food property, which assigns the value in |
27 |
| -`favoriteFood` to the active user: |
| 26 | +The following example adds a hypothetical favorite food property, which |
| 27 | +assigns the value in `favoriteFood` to the active user: |
28 | 28 |
|
29 | 29 | ```dart
|
30 | 30 | await FirebaseAnalytics.instance
|
|
0 commit comments