Skip to main content

ReportLoginStep [Player Network SDK Only]

[Player Network SDK Only] 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

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

UnionAdapterAPI.GetReportService().ReportLoginStep(0, "stepName", true);