Skip to main content

Report login event steps (ReportLoginStep) (Deprecated, not recommended)

AndroidiOSWindows
If you are using the Unity engine, see Unity SDK's ReportLoginStep.

The data of the login event is reported for calculating funnel analysis conversion rates.

The login funnel model includes the steps:
0: Start Game > 1: Initialize > 2: Check for Updates > 3: Download Updates > 4: Unzip Files > 5: Login Channel > 6: Click Enter Game > 7: Enter Lobby

Image: 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);

Parameter Details

ParametersTypeExplanation
Stepint32Step ID
starts counting from 0
StepNameFStringStep Name
ResultboolStep Result
true: Success
false: Failure
ErrorCodeintError Code
When result=true, errorCode=0
When result=false, errorCode is a custom error code
ParamsMapTMap<FString, FString>Additional Parameters
JSON Format

Sample Code

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 Into Game
UINTLSDKAPI::ReportLoginStep(7, "enter game hall", true, 0, map); //7, Enter Game Hall