跳到主要内容

上报登录事件步骤(ReportLoginStep)(已过期,不建议使用)

AndroidiOSWindows
如果您使用的是 Unreal Engine,请参见 Unreal Engine SDK 的 ReportLoginStep

报告登录事件的数据以计算漏斗分析的转换率。

登录漏斗模型包含步骤:
0:启动游戏 > 1:初始化 > 2:检查更新 > 3:下载更新 > 4:解压文件 > 5:登录渠道 > 6:点击进入游戏 > 7:进入大厅

��图片:登录事件

函数定义

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

入参说明

参数类型说明
stepuint步骤 ID
从 0 开始计数
stepNamestring步骤名
resultbool步骤结果
true:成功
false:失败
errorCodeint错误码
当 result=true 时,errorCode=0
当 result=false 时,errorCode 为自定义的错误码
extraJsonstring额外的参数
JSON 格式

代码示例

INTLAPI.ReportLoginStep(0, "start game", true, 0, "{}");                //0、启动游戏
INTLAPI.ReportLoginStep(1, "initialize", true, 0, "{}"); //1、初始化
INTLAPI.ReportLoginStep(2, "check for updates", true, 0, "{}"); //2、检查更新
INTLAPI.ReportLoginStep(3, "download updates", true, 0, "{}"); //3、下载更新
INTLAPI.ReportLoginStep(4, "unzip files", true, 0, "{}"); //4、解压文件
INTLAPI.ReportLoginStep(5, "login channel", true, 0, "{}"); //5、登录渠道
INTLAPI.ReportLoginStep(6, "click into game", true, 0, "{}"); //6、点击进入游戏
INTLAPI.ReportLoginStep(7, "enter game hall", true, 0, "{}"); //7、进入大厅