1. Introduction to User Association across the Domain

Refer to the Identify Users-User Association across the Domain (Inner Test) section of the SDK product features.

2. API Introduction

This section only introduces the API function of User Association across the Domain, other tracking interfaces can refer to the Basic API Function Introduction section.

Minimum Supported Version of ID-Mapping 3.0

Flutter Plugin v2.2.2

2.1. User Login

Called when the user logs in. The first parameter is obtained from the detailed list of predefined id keys, and the second parameter is the corresponding user ID.

After calling the interface, the corresponding key and value will be cached locally, and the collected events will include the cached ID information.

 SensorsDataAPI.sharedInstance().loginWithKey(String loginIDKey, String loginId);
JAVA

2.2. Multiple User ID Association

Called when multiple user IDs are associated. The first parameter is obtained from the detailed list of predefined id keys, and the second parameter is the corresponding associated user ID.

After calling the interface, the corresponding key and value will be cached locally, and the collected events will include the cached ID information.

SensorsAnalyticsFlutterPlugin.bind("$identity_mobile","187****8991")
JAVA

2.3. Multiple User ID Disassociation

Called when multiple user IDs are disassociated. The first parameter is the key for disassociation, and the second parameter is the corresponding user ID to be disassociated.

After calling the interface, relevant unbinding events will be sent, and the corresponding key-value in the local cache of ID information will be cleared (if it exists).

SensorsAnalyticsFlutterPlugin.unbind("$identity_mobile","187****8991")
JAVA