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