Menu

Account ID

Account ID refers to the unique identifier of the user's login account within the app. Prior to logging in, visitor IDs will be used as the user identifier.

     Once the account ID is set, it will be retained until the logout function is called to clear the account ID. The logout function should only be called when users actually log out, but not called when the app is closed or running in the background.

     During data reporting, only the latest account ID passed in will be used. Multiple calls should be avoided to prevent abnormal situations where multiple non-normal account IDs are reported consecutively.


Set Account ID

      Call login to set the user's account ID:

Function

public static void login(string accountId)

Note:

      The account ID cannot exceed 128 characters, otherwise the setting would fail.

Sample Code

SolarEngine.Analytics.login("xxxAccountIDxxx");


Get Account ID      

Call getAccountId to get the user's account ID.

Function

public static string getAccountId()

Sample Code

string accountId = SolarEngine.Analytics.getAccountId();

Clear Account ID

Call logout to clear the account ID:

Function

public static void logout()

Sample Code

SolarEngine.Analytics.logout();

Note:

     This call only notifies the SDK to clear the account ID and will not report the user logout event.


Previous
Visitor ID
Next
Set GAID
Last modified: 2024-12-04Powered by