引导打点 新手引导打点接口

main
Yuntao Hu 2024-09-18 13:03:35 +08:00
parent 933a46e232
commit 05faadb788
3 changed files with 17 additions and 1 deletions

View File

@ -9,4 +9,9 @@ public partial class BIManager : Singlenton<BIManager>, IInitable
/// 游戏初始化加载打点
/// </summary>
public const string BI_GameStart = "Dev_GameStart";
/// <summary>
/// 新手引导打点
/// </summary>
public const string BI_Guide = "Dev_Guide";
}

View File

@ -22,7 +22,6 @@ public partial class BIManager : Singlenton<BIManager>, IInitable
_isInit = true;
//初次启动游戏打点
DebugUtil.Log("打点GameStart");
TrackEventOnce(BI_GameStart, param: new Dictionary<string, object>() { { "event", "first_open" } });
}

View File

@ -1951,6 +1951,18 @@ namespace Gameplay
return lvTypeStr;
}
/// <summary>
/// 新手引导阶段打点事件
/// </summary>
/// <param name="stepName"></param>
public static void GuideStepBiEvent(string stepName)
{
BIManager.Instance.TrackEvent(BIManager.BI_Guide, new Dictionary<string, object>
{
{"event",stepName }
});
}
}
}