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

Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void ReportLoginStep(uint step, string stepName, bool result, int errorCode = 0, string extraJson = "{}");
static void ReportLoginStep(
unsigned int step,
const std::string &step_name,
bool result,
int error_code,
const std::map<std::string, std::string> &extra_params);
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description |
|---|---|---|
| step | uint | Step ID Counting from 0 |
| stepName | string | Step name |
| result | bool | Step result true: success false:fail |
| errorCode | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
| extraJson | string | The extended field JSON string |
| Parameter | Type | Description |
|---|---|---|
| step | int | Step ID Counting from 0 |
| step_name | std::string | Step name |
| result | bool | Step result true: success false:fail |
| error_code | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
| extra_params | std::map<std::string, std::string> | The extended field JSON string |
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportLoginStep(0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportLoginStep(0, "StepName", true);