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

20 lines
660 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 ThinkingData.Analytics;
using UnityEngine;
namespace WZ
{
public class ShuShuMangage : D_MonoSingleton<ShuShuMangage>
{
public void Init()
{
// 初始化SDK
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
//开启自动采集事件
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
//如果用户已登录可以设置用户的账号ID作为身份唯一标识
// TDAnalytics.Login("TA");
}
}
}