---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/analytics/content/data-collection/about-profiles.md
  - https://boost.yandex.com/doc/ru/analytics/content/data-collection/about-profiles.md
  - https://boost.yandex.com/doc/zh/analytics/content/data-collection/about-profiles.md
  - href: https://boost.yandex.com/doc/zh/analytics/content/data-collection/about-profiles.md
    type: text/markdown
    title: Markdown version
  - href: https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064

# 用户资料

用户个人资料描述了应用程序单个用户的一组属性，例如姓名、性别、年龄等。 Boost 让您收集这些信息并在 [个人档案报告](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/profile-report.md) 中进行分析，或者使用个人档案属性来分段其他报告。

{% cut "为什么我看到单个用户有多个账户？" %}

很可能您在初始化库时没有提供用户资料 ID。 在这种情况下，AppMetricaSDK会创建一个技术配置文件，其ID为`appmetrica_device_id`. 调用 `setUserProfileID` 方法使用新 ID 会创建一个新配置文件，但技术配置文件仍然保留。

为了防止创建技术型用户档案，请在使用扩展配置初始化库时调整发送 ID 的方式。 在 [Android](https://boost.yandex.com/doc/zh/analytics/content/sdk/android/analytics/android-operations.md#initialize) 上，你可以通过调用 `withUserProfileID` 方法来完成；在 [iOS](https://boost.yandex.com/doc/zh/analytics/content/sdk/ios/analytics/ios-operations.md#initialize) 上，编辑 `userProfileID` 属性。

{% endcut %}

{% note alert "" %}

与事件属性不同，个人资料属性只能取一个值。 当您发送新的属性值时，旧的值会被覆盖。

{% endnote %}

在 AppMetrica SDK 中有两种属性：

- System attributes:  SDK 自动检测的属性，例如设备、应用、位置或其他数据的信息AppMetrica。

- 自定义属性：定义用户特征的属性，例如性别、年龄、订阅类型、完成的级别数等。 要收集这些数据，你需要在 AppMetrica SDK 中配置发送属性。 要获取更多信息，请查看[用户资料属性](https://boost.yandex.com/doc/zh/analytics/content/data-collection/profile-attributes.md)。

系统属性和自定义属性会显示在[个人资料卡片](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/profile-list.md)中，并可用于在[个人资料报告](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/profile-report.md)中对数据进行分组。

## 设置发送属性配置 {#profile-settings}

您可以配置 AppMetrica SDK，以发送预定义和自定义的个人属性。 预定义属性已在 SDK 中定义，具有特殊的发送格式。 要发送自定义属性，必须在账户中添加属性。

{% note alert "" %}

不要在个人属性中传递个人或机密用户信息。

{% endnote %}

此部分解释了设置Analytics module发送属性的步骤。

### 步骤 1. 在橱设置中添加属性 {#ui-settings}

1. 在Analytics module界面中，转到**设置** → **个人属性**。
1. 在**自定义属性**部分，在相应的字段中输入新属性的名称。
1. 从下拉列表中选择变量类型。
1. 点击**添加**。

在**配置属性**设置部分，有一个包含应用所有属性及其状态的列表。 要停止收集属性并从报告中移除它，请点击**归档**。

### 步骤 2. 设置 SDK 中属性值的发送 AppMetrica {#sdk-settings}

{% note alert "" %}

- Analytics module不会在网页界面显示`预定义属性`，如果[ProfieId](https://boost.yandex.com/doc/zh/analytics/content/data-collection/profile-attributes.md#pre-defined)发送未配置。

- 在发送自定义属性之前，请确保在Analytics module的界面中添加它（参见[步骤 1](#ui-settings)）。 
    您可以在新属性创建后约30分钟，将数据从应用程序代码转移到新属性。

{% endnote %}

各平台发送个人属性的示例：

- [Android](https://boost.yandex.com/doc/zh/analytics/content/sdk/android/analytics/android-operations.md#send-attribute-profile)
- [iOS](https://boost.yandex.com/doc/zh/analytics/content/sdk/ios/analytics/ios-operations.md#send-attribute-profile)
- [Flutter](https://boost.yandex.com/doc/zh/analytics/content/sdk/flutter/analytics/flutter-operations.md#send-attribute-profile)
- [React Native](https://boost.yandex.com/doc/zh/analytics/content/sdk/react-native/analytics/react-native-operations.md#send-attribute-profile)
- [Unity](https://boost.yandex.com/doc/zh/analytics/content/sdk/unity/analytics/unity-operations.md#send-attribute-profile)

## 了解更多 {#learn-more}

- [用户资料](https://boost.yandex.com/doc/zh/analytics/content/data-collection/about-profiles.md)
- [用户资料属性](https://boost.yandex.com/doc/zh/analytics/content/data-collection/profile-attributes.md)
- [用户画像报告](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/profile-report.md)
- [用户列表](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/profile-list.md)

<!-- source: zh/analytics/content/_includes/feedback-button.md -->
如果您没有找到所需答案，可以通过反馈表单提交您的问题。 请尽可能详细地描述问题。 如果可能，请附上截图。

<a href="../troubleshooting/feedback-new">
  <span class="button">联系支持</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">为文档提出改进建议</span>
</a>
<!-- endsource: zh/analytics/content/_includes/feedback-button.md -->
