[ios] Added migration & download all logging to statistics.

This commit is contained in:
Ilya Grechuhin 2016-01-28 16:53:31 +03:00 committed by Sergey Yershov
parent a5cb15e654
commit 0bff83ddc4
3 changed files with 6 additions and 1 deletions

View file

@ -625,8 +625,10 @@ NSString * const kAuthorizationSegue = @"Map2AuthorizationSegue";
{
if (platform::migrate::NeedMigrate())
{
[[Statistics instance] logEvent:kStatShowBig2SmallMWM];
[self.alertController presentNeedMigrationAlertWithOkBlock:^
{
[[Statistics instance] logEvent:kStatMigrationBig2SmallMWM];
[self.controlsManager routingHidden];
GetFramework().Migrate();
block();

View file

@ -79,6 +79,7 @@ extern NSString * const MapsStatusChangedNotification;
- (void)onDownloadAll
{
[[Statistics instance] logEvent:kStatDownloadAll];
self.tree.DownloadAll();
}

View file

@ -41,7 +41,7 @@ static NSString * const kStatCountry = @"Country";
static NSString * const kStatDestination = @"Destination";
static NSString * const kStatDeviceInfo = @"Device info";
static NSString * const kStatDeviceType = @"Device type";
static NSString * const kStatDownloadAll = @"Download all";
static NSString * const kStatDownloadAll = @"Download all country clicks counter";
static NSString * const kStatDownloadMap = @"Download map";
static NSString * const kStatDownloadMaps = @"Download maps";
static NSString * const kStatDownloadRequest = @"Download request";
@ -70,6 +70,7 @@ static NSString * const kStatMap = @"Map search";
static NSString * const kStatMapViewStyle = @"Map view style";
static NSString * const kStatMapViewStyleSettings = @"Map view style settings";
static NSString * const kStatMenu = @"Menu";
static NSString * const kStatMigrationBig2SmallMWM = @"Big mwms to small mwms migration counter";
static NSString * const kStatMiles = @"Miles";
static NSString * const kStatMoreApps = @"More apps";
static NSString * const kStatMyPosition = @"My position";
@ -109,6 +110,7 @@ static NSString * const kStatSendEmail = @"Send email";
static NSString * const kStatSettings = @"Settings";
static NSString * const kStatSettingsOpenSection = @"Settings open section";
static NSString * const kStatShare = @"Share";
static NSString * const kStatShowBig2SmallMWM = @"Big mwms to small mwms dialog appearing counter";
static NSString * const kStatShowOnMap = @"Show on map";
static NSString * const kStatSocial = @"Social";
static NSString * const kStatSource = @"Source";