update: 上报Firebase用户属性 adjust_id
--story=1020972 --user=yufei.hu 【中台】【SDK】新增 Firebase 用户属性打点: adjust_id https://www.tapd.cn/33527076/s/1157507 Signed-off-by: huyufei <yufei.hu@castbox.fm>main
parent
72bf076537
commit
76fc4f5c26
|
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Firebase;
|
||||
using Firebase.Analytics;
|
||||
using Firebase.Extensions;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Guru
|
||||
{
|
||||
|
|
@ -118,9 +118,22 @@ namespace Guru
|
|||
string appToken = GuruSettings.Instance.AdjustSetting?.GetAppToken() ?? "";
|
||||
string fbAppId = GuruSettings.Instance.IPMSetting.FacebookAppId;
|
||||
AdjustService.StartService(appToken, fbAppId);
|
||||
|
||||
// 上报 AdjustID
|
||||
CoroutineHelper.Instance.StartDelayed(new WaitForSeconds(1f), DelayReportAdjustId);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private static void DelayReportAdjustId()
|
||||
{
|
||||
string adjustId = AdjustService.AdjustId;
|
||||
if (string.IsNullOrEmpty(adjustId))
|
||||
{
|
||||
adjustId = "not_set";
|
||||
}
|
||||
FirebaseAnalytics.SetUserProperty("adjust_id", adjustId); // 仅上报 Firebase 用户属性
|
||||
Debug.Log($"[SDK] --- Firebase + Adjust ID: {adjustId}");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue