版本号上报 数数,adjust,firebase
This commit is contained in:
parent
0c72295af0
commit
f1606efad9
|
@ -24,6 +24,10 @@ public class AdjustManager : D_MonoSingleton<AdjustManager>
|
||||||
//开始计时
|
//开始计时
|
||||||
startTime = TimeUtils.GetLocalTimestamp();
|
startTime = TimeUtils.GetLocalTimestamp();
|
||||||
Adjust.AddGlobalCallbackParameter("ta_distinct_id", TDAnalytics.GetDistinctId());
|
Adjust.AddGlobalCallbackParameter("ta_distinct_id", TDAnalytics.GetDistinctId());
|
||||||
|
|
||||||
|
Adjust.AddGlobalCallbackParameter("rush_version", RushSDKManager.GetSDKVersion());
|
||||||
|
Adjust.AddGlobalPartnerParameter("rush_version", RushSDKManager.GetSDKVersion());
|
||||||
|
|
||||||
AdjustConfig config = new AdjustConfig(StaticValue.AdjustToken, environment);
|
AdjustConfig config = new AdjustConfig(StaticValue.AdjustToken, environment);
|
||||||
|
|
||||||
// 设置归因变更回调函数
|
// 设置归因变更回调函数
|
||||||
|
|
|
@ -143,6 +143,7 @@ namespace WZ
|
||||||
private List<Parameter> GetSuperProperties()
|
private List<Parameter> GetSuperProperties()
|
||||||
{
|
{
|
||||||
List<Parameter> parameterList = new List<Parameter>();
|
List<Parameter> parameterList = new List<Parameter>();
|
||||||
|
parameterList.Add(new Parameter("rush_version", RushSDKManager.GetSDKVersion()));
|
||||||
if (superProperties != null)
|
if (superProperties != null)
|
||||||
{
|
{
|
||||||
foreach (var superProperty in superProperties)
|
foreach (var superProperty in superProperties)
|
||||||
|
|
|
@ -14,6 +14,11 @@ using WZ;
|
||||||
|
|
||||||
public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public static string GetSDKVersion()
|
||||||
|
{
|
||||||
|
return "1.0.3.0";
|
||||||
|
}
|
||||||
protected override void Initialized()
|
protected override void Initialized()
|
||||||
{
|
{
|
||||||
base.Initialized();
|
base.Initialized();
|
||||||
|
|
|
@ -15,7 +15,11 @@ namespace WZ
|
||||||
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
|
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
|
||||||
//开启自动采集事件
|
//开启自动采集事件
|
||||||
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
||||||
|
|
||||||
|
TDAnalytics.SetSuperProperties(new Dictionary<string, object>
|
||||||
|
{
|
||||||
|
["rush_version"] = RushSDKManager.GetSDKVersion()
|
||||||
|
});
|
||||||
ShuShuEvent.Instance.UserSet(new Dictionary<string, object>
|
ShuShuEvent.Instance.UserSet(new Dictionary<string, object>
|
||||||
{
|
{
|
||||||
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() + (8 * 3600)},
|
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() + (8 * 3600)},
|
||||||
|
|
Loading…
Reference in New Issue