SDK_UnityMoney/Assets/Script/SDKManager/ShuShuMangage/ShuShuMangage.cs

23 lines
735 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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");
}
}