23 lines
735 B
C#
23 lines
735 B
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using SDK.Utils;
|
||
using ThinkingData.Analytics;
|
||
using UnityEngine;
|
||
|
||
public class ShuShuMangage : NormalSingleton<ShuShuMangage>
|
||
{
|
||
private const string appid = "80f6819a81c743cbad667ecf242f3133";
|
||
private const string server = "https://global-receiver-ta.thinkingdata.cn";
|
||
|
||
public void Init()
|
||
{
|
||
// 初始化SDK
|
||
TDAnalytics.Init(appid, server);
|
||
//开启自动采集事件
|
||
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
||
//如果用户已登录,可以设置用户的账号ID作为身份唯一标识
|
||
TDAnalytics.Login("TA");
|
||
}
|
||
|
||
}
|