diff --git a/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate b/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate index 39c6345..68fc9a7 100644 Binary files a/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate and b/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Clocker/CLParentPanelController.m b/Clocker/CLParentPanelController.m index 66d35f3..35bfb1a 100644 --- a/Clocker/CLParentPanelController.m +++ b/Clocker/CLParentPanelController.m @@ -285,8 +285,10 @@ typedef NS_ENUM(NSUInteger, CLClockerMode) { } else { + NSString *countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; [self updateReviewView]; [[iRate sharedInstance] remindLater]; + [Answers logCustomEventWithName:@"Remind Later for Feedback" customAttributes:@{@"Current Country" : countryCode}]; } } @@ -309,8 +311,10 @@ typedef NS_ENUM(NSUInteger, CLClockerMode) { } else { + NSString *countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; [[iRate sharedInstance] rate]; [self updateReviewView]; + [Answers logCustomEventWithName:@"Reached App Store for leaving Review" customAttributes:@{@"Current Country" : countryCode}]; } } diff --git a/Clocker/Custom Table Cell Views/CLTimezoneCellView.m b/Clocker/Custom Table Cell Views/CLTimezoneCellView.m index 395bcdc..184b011 100644 --- a/Clocker/Custom Table Cell Views/CLTimezoneCellView.m +++ b/Clocker/Custom Table Cell Views/CLTimezoneCellView.m @@ -11,6 +11,7 @@ #import "CommonStrings.h" #import "CLTimezoneData.h" #import "CLFloatingWindowController.h" +#import #define MIN_FONT_SIZE 13 @@ -47,6 +48,7 @@ NSString *customLabelValue = [originalValue stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]; + if ([sender.superview isKindOfClass:[self class]]) { CLTimezoneCellView *cellView = (CLTimezoneCellView *)sender.superview; @@ -67,6 +69,8 @@ NSData *dataObject = displayMode.integerValue == 0 ? panelController.defaultPreferences[cellView.rowNumber] : floatingWindow.defaultPreferences[cellView.rowNumber]; CLTimezoneData *timezoneObject = [CLTimezoneData getCustomObject:dataObject]; + [Answers logCustomEventWithName:@"Custom Label Changed" customAttributes:@{@"Old Label" : timezoneObject.customLabel , @"New Label" : customLabelValue}]; + if (displayMode.integerValue == 0) {