1. User Association Introduction

When identifying users in Easy User Association, there are two types of user IDs: device ID (anonymous ID) and login ID. They cannot meet the needs of complex multi-touch user association. For more information, please refer to the User Identification Introduction in the SDK product functionality section.

2. API Introduction

This section only introduces the API functions of global user association. For other tracking interface, please refer to the Weex Basic API Introduction.

2.1. User Login

When a user registers or logs in successfully, the SDK's login() method needs to be called.

sensors.login("登录 ID");
CODE

To accurately record the behavioral information of logged-in users, it is recommended to call the user login method at the following times:

· When a user registers successfully · When a user logs in successfully · When a logged-in user starts the app each time

2.2. Custom Anonymous ID

By default, the SDK generates an anonymous ID and ensures its uniqueness. If you need to replace the default anonymous ID assigned by Sensors Data, you can call the identify("User-defined Anonymous ID") method immediately after initializing the SDK to replace it.

//设置自定义匿名 ID,在初始化 SDK 之后立即调用 sensors.identify(“用户自定义匿名 ID ”);
CODE