Skip to main content

ReportLoginStep(obsolete, not recommended for use)

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ReportLoginStep for Unreal Engine 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

public static void ReportLoginStep(uint step, string stepName, bool result, int errorCode = 0, string extraJson = "{}");

Input parameters

ParameterTypeDescription
stepuintStep ID
Counting from 0
stepNamestringStep Name
resultboolStep result
true: success
false:fail
errorCodeintError code
result=true, errorCode=0
result=false, errorCode is custom error code
extraJsonstringThe extended field
JSON string

Code sample

INTLAPI.ReportLoginStep(0, "start game", true, 0, "{}");                //0: start game
INTLAPI.ReportLoginStep(1, "initialize", true, 0, "{}"); //1: initialize
INTLAPI.ReportLoginStep(2, "check for updates", true, 0, "{}"); //2: check for updates
INTLAPI.ReportLoginStep(3, "download updates", true, 0, "{}"); //3: download updates
INTLAPI.ReportLoginStep(4, "unzip files", true, 0, "{}"); //4: unzip files
INTLAPI.ReportLoginStep(5, "login channel", true, 0, "{}"); //5: login channel
INTLAPI.ReportLoginStep(6, "click into game", true, 0, "{}"); //6: click to enter game
INTLAPI.ReportLoginStep(7, "enter game hall", true, 0, "{}"); //7: enter game lobby