 		self.swizzled_viewDidAppear(animated)
 
 		automaticTracker.trackPageView()
-		didAppearBefore = true
-		guard let _ = applicationWillEnterForegroundObserver else {
-			return
+
+		if applicationDidBecomeActiveObserver == nil {
+			applicationDidBecomeActiveObserver = NSNotificationCenter.defaultCenter().addObserverForName(UIApplicationDidBecomeActiveNotification, object: nil, queue: nil) { [weak self] _ in
+				self?.applicationDidBecomeActiveWhileAppeared()
+			}
 		}
 	}
 

	@objc(Webtrekk_viewWillDisappear:)
	private dynamic func swizzled_viewWillDisappear(animated: Bool) {
		self.swizzled_viewWillDisappear(animated)
		guard let observer = applicationWillEnterForegroundObserver else {
			return
		}
		NSNotificationCenter.defaultCenter().removeObserver(observer)
		applicationWillEnterForegroundObserver = nil
		didAppearBefore = false
	}
}


	private struct AssociatedKeys {

		private static var applicationDidBecomeActiveObserver = UInt8()
		private static var automaticTracker = UInt8()
	}


