上报登录事件步骤(ReportLoginStep)[仅限 Player Network SDK]
[仅限 Player Network SDK] 上报登录事件数据计算漏斗分析的换算率。
登录漏斗模型包含步骤:
0:启动游戏 > 1:初始化 > 2:检查更新 > 3:下载更新 > 4:解压文件 > 5:登录渠道 > 6:点击进入游戏 > 7:进入大厅

支持的平台
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.函数定义
- 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);
入参说明
- Unity
- Unreal Engine
| 参数 | 类型 | 说明 |
|---|---|---|
| step | uint | 步骤 ID 从 0 开始计数 |
| stepName | string | 步骤名 |
| result | bool | 步骤结果 true:成功 false:失败 |
| errorCode | int | 错误码 当 result=true 时,errorCode=0 当 result=false 时,errorCode 为自定义的错误码 |
| extraJson | string | 额外的参数 JSON 格式 |
| 参数 | 类型 | 说明 |
|---|---|---|
| step | int | 步骤 ID 从 0 开始计数 |
| step_name | std::string | 步骤名 |
| result | bool | 步骤结果 true:成功 false:失败 |
| error_code | int | 错误码 当 result=true 时,errorCode=0 当 result=false 时,errorCode 为自定义的错误码 |
| extra_params | std::map<std::string, std::string> | 额外的参数 JSON 格式 |
代码示例
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportLoginStep(0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportLoginStep(0, "StepName", true);