diff --git a/iphone/Maps/Common/Statistics/StatisticsStrings.h b/iphone/Maps/Common/Statistics/StatisticsStrings.h index 6f932ddc21..501f0f4cd5 100644 --- a/iphone/Maps/Common/Statistics/StatisticsStrings.h +++ b/iphone/Maps/Common/Statistics/StatisticsStrings.h @@ -78,7 +78,6 @@ static NSString * const kStatDestination = @"Destination"; static NSString * const kStatDeviceInfo = @"Device info"; static NSString * const kStatDeviceType = @"Device type"; static NSString * const kStatDiscovery = @"discovery"; -static NSString * const kStatDiscoveryButtonItemClick = @"DiscoveryButton_Item_Click"; static NSString * const kStatDiscoveryButtonItemShow = @"DiscoveryButton_Item_Show"; static NSString * const kStatDiscoveryButtonOpen = @"DiscoveryButton_Open"; static NSString * const kStatDownload = @"download"; diff --git a/iphone/Maps/UI/Discovery/MWMDiscoveryController.mm b/iphone/Maps/UI/Discovery/MWMDiscoveryController.mm index 9fe094ec63..d43b634608 100644 --- a/iphone/Maps/UI/Discovery/MWMDiscoveryController.mm +++ b/iphone/Maps/UI/Discovery/MWMDiscoveryController.mm @@ -166,7 +166,7 @@ struct Callback } NSAssert(dest.length > 0, @""); - [Statistics logEvent:kStatDiscoveryButtonItemClick + [Statistics logEvent:kStatPlacepageSponsoredItemSelected withParameters:@{ kStatProvider: StatProvider(type), kStatPlacement: kStatDiscovery, @@ -190,7 +190,7 @@ struct Callback [MWMRouter buildToPoint:pt bestRouter:NO]; [self.navigationController popViewControllerAnimated:YES]; - [Statistics logEvent:kStatDiscoveryButtonItemClick + [Statistics logEvent:kStatPlacepageSponsoredItemSelected withParameters:@{ kStatProvider: StatProvider(type), kStatPlacement: kStatDiscovery, diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm index e0f1783922..fb9bc09eed 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm @@ -608,7 +608,8 @@ map const kMetaInfoCells = { case taxi::Provider::Uber: provider = kStatUber; break; case taxi::Provider::Yandex: provider = kStatYandex; break; } - [Statistics logEvent:kStatPlacepageTaxiShow withParameters:@{kStatProvider : provider}]; + [Statistics logEvent:kStatPlacepageTaxiShow + withParameters:@{kStatProvider: provider, kStatPlacement: kStatPlacePage}]; }); checkCell(self.viatorCell, ^{ @@ -620,7 +621,8 @@ map const kMetaInfoCells = { NSAssert(NO, @"Viator is shown but items are empty."); return; } - [Statistics logEvent:kStatPlacepageSponsoredShow withParameters:@{kStatProvider : kStatViator}]; + [Statistics logEvent:kStatPlacepageSponsoredShow + withParameters:@{kStatProvider: kStatViator, kStatPlacement: kStatPlacePage}]; }); checkCell(self.cianCell, ^{