Exemple #1
0
        public Tracker (Context ctx)
        {
            var ga = GoogleAnalytics.GetInstance (ctx);
            #if DEBUG
            ga.SetDryRun (true);
            #endif

            tracker = ga.NewTracker (Build.GoogleAnalyticsId);
            tracker.SetSessionTimeout ((long)TimeSpan.FromMinutes (5).TotalSeconds);
            tracker.EnableAutoActivityTracking (false);
            tracker.EnableExceptionReporting (false);
        }
Exemple #2
0
        public Tracker(Context ctx)
        {
            var ga = GoogleAnalytics.GetInstance(ctx);

            #if DEBUG
            ga.SetDryRun(true);
            #endif

            tracker = ga.NewTracker(Build.GoogleAnalyticsId);
            tracker.SetSessionTimeout((long)TimeSpan.FromMinutes(5).TotalSeconds);
            tracker.EnableAutoActivityTracking(false);
            tracker.EnableExceptionReporting(false);
        }