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