数数和adjustsdk的id
This commit is contained in:
parent
79ad7c8950
commit
638ef146fd
|
@ -7,7 +7,6 @@ using WZ;
|
|||
|
||||
public class AdjustManager : D_MonoSingleton<AdjustManager>
|
||||
{
|
||||
private string appToken = "cap3ypurzegw"; // 替换为你的实际App Token
|
||||
private AdjustEnvironment environment = AdjustEnvironment.Sandbox; // 测试用Sandbox,发布用Production
|
||||
|
||||
private long startTime = 0;
|
||||
|
@ -20,7 +19,7 @@ public class AdjustManager : D_MonoSingleton<AdjustManager>
|
|||
//开始计时
|
||||
startTime = TimeUtils.GetLocalTimestamp();
|
||||
|
||||
AdjustConfig config = new AdjustConfig(appToken, environment);
|
||||
AdjustConfig config = new AdjustConfig(StaticValue.AdjustToken, environment);
|
||||
|
||||
// 设置归因变更回调函数
|
||||
config.AttributionChangedDelegate = AttributionChangedDelegate;
|
||||
|
|
|
@ -6,13 +6,10 @@ namespace WZ
|
|||
{
|
||||
public class ShuShuMangage : D_MonoSingleton<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.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
|
||||
//开启自动采集事件
|
||||
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
||||
//如果用户已登录,可以设置用户的账号ID作为身份唯一标识
|
||||
|
|
Loading…
Reference in New Issue