User Association Introduction
When identifying users with simple user association, there are two types of user ID values: device ID (anonymous ID) and login ID. It cannot meet the needs of complex multi-touchpoint user association. For detailed information, please refer to theUser Identification Introduction.
User Login
sensors_analytics::Sdk::Login("login key", "登录 ID");
Multi-User ID Association
sensors_analytics::Sdk::Bind(" 关联的 key", "关联的用户 ID");
Initialization of User Association
std::map<string, string> identities; sensors_analytics::Sdk::Init("data_file_path", "server_url", distinct_id, max_staging_record_size, identities);
Note: The user association relationship identities must be passed in during initialization. If the distinct_id is not passed, the SDK will extract the value of distinct_id from the identities passed in, in the order of $identity_login_id/$identity_anonymous_id/$identity_distinct_id. If the value cannot be found, the first element in the map will be taken.