diff --git a/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m b/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m index 85626247..9a1eea41 100755 --- a/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m +++ b/SensorsAnalyticsSDK/Core/SensorsAnalyticsSDK.m @@ -725,7 +725,8 @@ - (void)trackTimerEnd:(NSString *)event withProperties:(NSDictionary *)propertyD } - (void)trackTimerPause:(NSString *)event { - if (![self checkEventName:event]) { + NSString *eventName = [self.trackTimer eventNameFromEventId:event]; + if (![self checkEventName:eventName]) { return; } UInt64 currentSysUpTime = [self.class getSystemUpTime]; @@ -735,7 +736,8 @@ - (void)trackTimerPause:(NSString *)event { } - (void)trackTimerResume:(NSString *)event { - if (![self checkEventName:event]) { + NSString *eventName = [self.trackTimer eventNameFromEventId:event]; + if (![self checkEventName:eventName]) { return; } UInt64 currentSysUpTime = [self.class getSystemUpTime]; @@ -745,7 +747,8 @@ - (void)trackTimerResume:(NSString *)event { } - (void)removeTimer:(NSString *)event { - if (![self checkEventName:event]) { + NSString *eventName = [self.trackTimer eventNameFromEventId:event]; + if (![self checkEventName:eventName]) { return; } dispatch_async(self.serialQueue, ^{