コード例 #1
0
ファイル: Mixpanel.cs プロジェクト: fistbump/framework
        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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: Analytics.cs プロジェクト: solsab/sql-scripts
 internal Analytics()
 {
     m_Tracker = new MixpanelTracker(TheProduct.MixPanelToken);
 }