Visitor ID refers to the user's unique identifier (_visitor_id) after installing and before logging in.
We provide an interface for developers to customize the visitor ID settings. If you have your own visitor management system and need to replace SolarEngine's visitor IDs, you should call it before initializing the SDK.
During data reporting, only the latest visitor ID passed in will be used. Multiple calls should be avoided to prevent abnormal situations where multiple visitor IDs are reported consecutively.
Function
public void setVisitorID(String visitorID);
Parameter | Description | Type | Required |
---|---|---|---|
visitorID | Visitor ID to be set | String | Yes |
Sample Code
import com.reyun.solar.engine.SolarEngineManager;
SolarEngineManager.getInstance().setVisitorID("xxxVisitorIDxxx");
Note:
Function
public String getVisitorID();
The current visitor ID shall be returned. (Default "")
Sample Code
import com.reyun.solar.engine.SolarEngineManager;
String visitorID = SolarEngineManager.getInstance().getVisitorID();