From d26408b289af4b335acc1d6169a209b4dff979fe Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Wed, 25 Mar 2015 21:03:15 +0300 Subject: [PATCH] [ios] Added tracking for cancel search button --- iphone/Maps/Classes/SearchBar.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iphone/Maps/Classes/SearchBar.mm b/iphone/Maps/Classes/SearchBar.mm index 9acca98bcd..b4d2fc0177 100644 --- a/iphone/Maps/Classes/SearchBar.mm +++ b/iphone/Maps/Classes/SearchBar.mm @@ -1,6 +1,7 @@ #import "SearchBar.h" #import "Framework.h" +#import "../../../3party/Alohalytics/src/alohalytics_objc.h" @interface SearchBar () @@ -13,6 +14,8 @@ @end +extern NSString * const kAlohalyticsTapEventKey; + @implementation SearchBar - (id)initWithFrame:(CGRect)frame @@ -62,6 +65,7 @@ - (void)cancelButtonPressed:(id)sender { + [Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"searchCancel"]; [self.delegate searchBarDidPressCancelButton:self]; }