From 86742abe465364b34f66d8518e2adbf68970751c Mon Sep 17 00:00:00 2001 From: huyufei Date: Tue, 18 Jun 2024 10:24:43 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=20SDK=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=9A=84=E4=BC=98=E5=85=88=E7=BA=A7=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Code/SDK/GuruSDK.Analytics.cs | 14 ++++++++++++++ Runtime/Code/SDK/GuruSDK.Const.cs | 1 + Runtime/Code/SDK/GuruSDK.cs | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 8449cff..439912b 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -1288,6 +1288,20 @@ namespace Guru return (int)GetEventPriority(eventName); } + /// + /// set all events as 'Emergence' event, which will be triggered immediately + /// + internal void SetSDKEventPriority() + { + SetEventPriority(EventPriority.Emergence, new [] + { + Consts.EventTchAdRev001Impression, + Consts.EventTchAdRev02Impression, + Consts.EventLevelStart, + Consts.EventLevelEnd, + }); + } + #endregion } } \ No newline at end of file diff --git a/Runtime/Code/SDK/GuruSDK.Const.cs b/Runtime/Code/SDK/GuruSDK.Const.cs index 54e34a7..7889ce5 100644 --- a/Runtime/Code/SDK/GuruSDK.Const.cs +++ b/Runtime/Code/SDK/GuruSDK.Const.cs @@ -33,6 +33,7 @@ namespace Guru public const string EventJoinGroup = "join_group"; public const string EventLevelEnd = "level_end"; public const string EventLevelStart = "level_start"; + public const string EventLevelEndSuccessPrefix = "level_end_success_"; public const string EventLevelUp = "level_up"; public const string EventLogin = "login"; public const string EventPostScore = "post_score"; diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index 1930493..cf4ac08 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -276,8 +276,9 @@ namespace Guru /// private void InitAllServices() { - //-------- SetUserProperties --------- + //-------- Init Analytics --------- InitUserProperties(); + SetSDKEventPriority(); bool useKeywords = false; bool useIAP = _initConfig.IAPEnabled;