A mobile app tracks events using the Google Analytics iOS SDK.
func recordEvent(_ category: String, action: String, label: String?, value: Int?) {
guard let builder = GAIDictionaryBuilder.createEvent(
withCategory: category,
action: action,
label: label,
value: value as NSNumber?)
else { return }
GAI.sharedInstance().defaultTracker.send(builder.build() as [NSObject: AnyObject])
}
It also tracks system events that occur when the app is launched in background without user interaction. However it seems as if every event that is tracked is considered an Active User
in the Google Analytics Realtime dashboard. So it corrupts the number of users that are currently using the app.
What can I do so that tracked system events are not influencing the number of active users?