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

Supported platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| step | uint | Step ID Counting starts from 0 |
| stepName | string | Step name |
| result | bool | Step Result true: success false: failure |
| errorCode | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| extraJson | string | Additional Parameters JSON format |
| Parameters | Type | Description |
|---|---|---|
| step | int | Step ID Counting starts from 0 |
| step_name | std::string | Step name |
| result | bool | Step Result true: success false: failure |
| error_code | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| extra_params | std::map<std::string, std::string> | Additional Parameters JSON format |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportLoginStep(0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportLoginStep(0, "StepName", true);