Skip to main content

ReportLoginStep(obsolete, not recommended for use)

AndroidiOSWindows
If you were looking for the method for use with Unity, see ReportLoginStep for Unity SDK.

Reports the data of the Login event to calculate the conversion rate for funnel analysis.

The Login funnel contains the following steps:
0: start game > 1: initialize > 2: check for updates > 3: download updates > 4: unzip files > 5: login channel > 6: click to enter game > 7: enter game lobby

Image: Analytics Login Event

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ReportLoginStep(int32 step, const FString StepName, bool Result,
int32 ErrorCode, const TMap<FString, FString> ParamsMap);

Input parameters

ParameterTypeDescription
Stepint32Step ID
Counting from 0
StepNameFStringStep Name
ResultboolStep result
true: success
false:fail
ErrorCodeintError code
result=true, errorCode=0
result=false, errorCode is custom error code
ParamsMapTMap<FString, FString>The extended field
JSON string

Code sample

TMap<FString, FString> map;
UINTLSDKAPI::ReportLoginStep(0, "start game", true, 0, map); //0: start game
UINTLSDKAPI::ReportLoginStep(1, "initialize", true, 0, map); //1: initialize
UINTLSDKAPI::ReportLoginStep(2, "check for updates", true, 0, map); //2: check for updates
UINTLSDKAPI::ReportLoginStep(3, "download updates", true, 0, map); //3: download updates
UINTLSDKAPI::ReportLoginStep(4, "unzip files", true, 0, map); //4: unzip files
UINTLSDKAPI::ReportLoginStep(5, "login channel", true, 0, map); //5: login channel
UINTLSDKAPI::ReportLoginStep(6, "click into game", true, 0, map); //6: click to enter game
UINTLSDKAPI::ReportLoginStep(7, "enter game hall", true, 0, map); //7: enter game lobby