# 登录用户

## 登录用户定义

登录用户是 GrowingIO 提供给您用户将当前用户绑定到您业务系统账号的一个机制。

登录用户 ID 是当前用户在您业务系统中唯一的身份ID。

GrowingIO 在各个平台的 SDK 中都提供了上传登录用户ID的 API 接口，具体接口定义请参考：[SDK文档](https://growingio.gitbook.io/v3/developer-manual/sdkintegrated)

## 登录用户的常见使用场景举例

### 跨平台用户行为分析

* 统计一天同时访问了产品网页端和移动端的登录用户数。（基于创建用户分群实现）
* 统计在网页端注册，并在移动端打开 App 的登录用户数。（基于漏斗实现）

### 结合业务数据分析（需上传登录用户属性）

* 分析不同性别、级别、年龄段用户的行为差异。
* 对 SaaS 客户来说，可以按用户归属的账号、用户对应的销售人员、服务人员等统计用户行为。

## 常见问题

1. 我系统里面的用户ID是手机号，我是不是一定要把真实的用户ID 传给GrowingIO

   不需要，您可以将手机号进行加密再传递给GrowingIO，只要保证登录用户ID的唯一性即可，

   当然，建议您可以使用可逆的加密方式，以方便您后续下载数据后还原为真实的用户ID。
2. 如何上传登录用户ID与登录用户属性

   您需要在集成SDK时传输您的登录ID，具体接口定义请参考：[SDK接入](https://growingio.gitbook.io/v3/developer-manual/sdkintegrated)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://growingio.gitbook.io/v3/introduction/datamodel/usermodel/loginuser.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
