Skip to main content

ReportLoginStep for reporting login event steps [Player Network SDK only]

[Player Network SDK only] Reports login event data to calculate funnel analysis conversion rates.

The login funnel model includes the following steps:
0: Launch game > 1: Initialize > 2: Check for updates > 3: Download updates > 4: Unzip files > 5: Channel login > 6: Click to enter game > 7: Enter lobby

Image: login event

Supported platforms

Supports Android, iOS, Windows platform.

Function definition

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

Input Parameters

ParametersTypeDescription
stepuintStep ID
Counting starts from 0
stepNamestringStep name
resultboolStep Result
true: success
false: failure
errorCodeintError Code
When result=true, errorCode=0
When result=false, errorCode is a custom error code
extraJsonstringAdditional Parameters
JSON format

Code Example

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