using System.Collections; using System.Collections.Generic; using AdjustSdk; using ThinkingData.Analytics; using UnityEngine; namespace WZ { public class ShuShuMangage : D_MonoSingleton { public void Init() { LoggerUtils.Debug("ShuShuMangage Init" + StaticValue.TDAppID + " serverURL" + StaticValue.TDServerURL); // 初始化SDK TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL); //开启自动采集事件 TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd); //如果用户已登录,可以设置用户的账号ID作为身份唯一标识 // TDAnalytics.Login("TA"); var properties = new Dictionary(); properties.Add("ad_network", AdjustManager.GetAdNetwork()); properties.Add("campaign", AdjustManager.GetCampaign()); properties.Add("adgroup", AdjustManager.GetAdgroup()); properties.Add("creative", AdjustManager.GetCreative()); ShuShuEvent.Instance.UserSet(properties); AppSDKManager.Instance.SetSuperProperties(properties); } } }