forked from organicmaps/organicmaps
[ios] Fixed editor statics.
This commit is contained in:
parent
ece1f685dc
commit
21ed23341c
3 changed files with 5 additions and 6 deletions
|
@ -352,7 +352,7 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell)
|
|||
|
||||
- (void)menuActionAddPlace
|
||||
{
|
||||
[Statistics logEvent:kStatMenu withParameters:@{kStatButton : kStatAddPlace}];
|
||||
[Statistics logEvent:kStatEditorAddClick withParameters:@{kStatValue : kStatMenu}];
|
||||
self.state = self.restoreState;
|
||||
[self.delegate addPlace];
|
||||
}
|
||||
|
|
|
@ -40,26 +40,24 @@
|
|||
|
||||
- (IBAction)buttonTap
|
||||
{
|
||||
NSString * key = nil;
|
||||
switch (self.type)
|
||||
{
|
||||
case MWMPlacePageCellTypeEditButton:
|
||||
key = kStatEdit;
|
||||
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatEdit)];
|
||||
[self.placePage editPlace];
|
||||
break;
|
||||
case MWMPlacePageCellTypeAddBusinessButton:
|
||||
key = kStatAddPlace;
|
||||
[Statistics logEvent:kStatEditorAddClick withParameters:@{kStatValue : kStatPlacePage}];
|
||||
[self.placePage addBusiness];
|
||||
break;
|
||||
case MWMPlacePageCellTypeReportButton:
|
||||
key = kStatReport;
|
||||
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatReport)];
|
||||
[self.placePage reportProblem];
|
||||
break;
|
||||
default:
|
||||
NSAssert(false, @"Incorrect cell type!");
|
||||
break;
|
||||
}
|
||||
[Statistics logEvent:kStatEventName(kStatPlacePage, key)];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -65,6 +65,7 @@ static NSString * const kStatDownloaderMigrationError = @"Downloader_Migration_e
|
|||
static NSString * const kStatDownloaderMigrationProhibitedDialogue = @"Downloader_Migration_Prohibited_dialogue";
|
||||
static NSString * const kStatDownloaderMigrationStarted = @"Downloader_Migration_started";
|
||||
static NSString * const kStatEdit = @"Edit";
|
||||
static NSString * const kStatEditorAddClick = @"Editor_Add_click";
|
||||
static NSString * const kStatEditorAddError = @"Editor_Add_error";
|
||||
static NSString * const kStatEditorAddStart = @"Editor_Add_start";
|
||||
static NSString * const kStatEditorAddSuccess = @"Editor_Add_success";
|
||||
|
|
Loading…
Add table
Reference in a new issue