Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 internal Analytics()
 {
     m_Tracker = new MixpanelTracker(TheProduct.MixPanelToken);
 }