From 113b3925f67052e707a24d8f5f5ce3f6f36bb772 Mon Sep 17 00:00:00 2001 From: Igor Khmurets Date: Sat, 15 Feb 2014 00:10:04 +0300 Subject: [PATCH] [ios] Added MoreAppsVC statistics --- iphone/Maps/Classes/MoreAppsVC.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/iphone/Maps/Classes/MoreAppsVC.mm b/iphone/Maps/Classes/MoreAppsVC.mm index 4a38ccdd43..3d809abe93 100644 --- a/iphone/Maps/Classes/MoreAppsVC.mm +++ b/iphone/Maps/Classes/MoreAppsVC.mm @@ -6,6 +6,7 @@ #import "UIKitCategories.h" #import #import "AppInfo.h" +#import "Statistics.h" @interface MoreAppsVC () @@ -69,6 +70,8 @@ using namespace::storage; [self updateData]; [self.view addSubview:self.tableView]; + + [[Statistics instance] logEvent:@"MoreApps screen launched"]; } - (void)updateData @@ -144,10 +147,12 @@ using namespace::storage; NSString * title = self.data[indexPath.section]; if ([title isEqualToString:TitleMWM]) { + [[Statistics instance] logEvent:@"MoreApps MWM clicked"]; [[UIApplication sharedApplication] openProVersion]; } else if ([title isEqualToString:TitleGuides]) { + [[Statistics instance] logEvent:@"MoreApps guide clicked" withParameters:@{@"Guide" : self.guideRegions[indexPath.row][@"GuideName"]}]; NSDictionary * guide = self.guideRegions[indexPath.row]; [[UIApplication sharedApplication] openGuideWithName:guide[@"GuideName"] itunesURL:guide[@"URI"]]; } @@ -203,6 +208,11 @@ using namespace::storage; [self.tableView deleteSections:[NSIndexSet indexSetWithIndex:section] withRowAnimation:UITableViewRowAnimationAutomatic]; } +- (void)bannerViewActionDidFinish:(ADBannerView *)banner +{ + [[Statistics instance] logEvent:@"MoreApps banner clicked"]; +} + - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { if ([[AppInfo sharedInfo] featureAvailable:AppFeatureMoreAppsBanner])