25 lines
878 B
C#
25 lines
878 B
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);
|
|
|
|
ShuShuEvent.Instance.UserSet(new Dictionary<string, object>
|
|
{
|
|
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() }
|
|
},true);
|
|
}
|
|
}
|
|
} |