internal MixpanelAnalyticsTracker(string projectToken) { m_Tracker = new Mixpanel.NET.Events.MixpanelTracker(projectToken, new UnityMixpanelHttp(), new TrackerOptions {Test = true}); m_Engage = new Mixpanel.NET.Engage.MixpanelEngage(projectToken, new UnityMixpanelHttp(), new EngageOptions()); if (PlayerPrefs.HasKey(DISTINCT_ID_KEY)) { m_DistinctID = PlayerPrefs.GetString(DISTINCT_ID_KEY); } else { m_DistinctID = Guid.NewGuid().ToString("n"); PlayerPrefs.SetString(DISTINCT_ID_KEY, m_DistinctID); } }
internal MixpanelAnalyticsTracker(string projectToken) { m_Tracker = new Mixpanel.NET.Events.MixpanelTracker(projectToken, new UnityMixpanelHttp(), new TrackerOptions { Test = true }); m_Engage = new Mixpanel.NET.Engage.MixpanelEngage(projectToken, new UnityMixpanelHttp(), new EngageOptions()); if (PlayerPrefs.HasKey(DISTINCT_ID_KEY)) { m_DistinctID = PlayerPrefs.GetString(DISTINCT_ID_KEY); } else { m_DistinctID = Guid.NewGuid().ToString("n"); PlayerPrefs.SetString(DISTINCT_ID_KEY, m_DistinctID); } }
internal Analytics() { m_Tracker = new MixpanelTracker(TheProduct.MixPanelToken); }