private void cmdAllow_Click(object sender, EventArgs e) { var settings = AppSettings.Instance; var justInstalled = settings.AllowAnalytics == null; settings.AllowAnalytics = true; AnalyticsTracker.Collect(); if (justInstalled) { AnalyticsTracker.Track( "new_instance"); } NavigationService.GoBack(); }