30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using AdjustSdk;
|
|
using ThinkingData.Analytics;
|
|
using UnityEngine;
|
|
namespace WZ
|
|
{
|
|
public class ShuShuMangage : D_MonoSingleton<ShuShuMangage>
|
|
{
|
|
public void Init()
|
|
{
|
|
LoggerUtils.Debug("ShuShuMangage Init" + StaticValue.TDAppID + " serverURL" + StaticValue.TDServerURL);
|
|
// 初始化SDK
|
|
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
|
|
//开启自动采集事件
|
|
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>
|
|
{
|
|
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() + (8 * 3600)},
|
|
{ "register_timestamp_utc", DateTimeOffset.UtcNow.ToUnixTimeSeconds()},
|
|
},true);
|
|
}
|
|
}
|
|
} |