         guard let latestSnapshot = latestSnapshot else {
             return
         }
+        guard let countryCode = UIDevice.countryCode, targetCountries.contains(countryCode) else {
+            return
+        }
         
         let newSnapshot = event()
         

// https://meta.wikimedia.org/wiki/Schema:MobileWikiAppiOSUserHistory

@objc final class UserHistoryFunnel: EventLoggingFunnel, EventLoggingStandardEventProviding {
    @objc public static let shared = UserHistoryFunnel()
    
    private override init() {

            // DDLogDebug("Starting User History snapshot was already recorded; logging new User History snapshot aborted")
            return
        }
        guard let countryCode = UIDevice.countryCode, targetCountries.contains(countryCode) else {
            return
        }
        log(event())
        // DDLogDebug("Attempted to log starting User History snapshot")
    }
}

extension UIDevice {
    static var countryCode: String? {
        return (Locale.current as NSLocale).object(forKey: NSLocale.Key.countryCode) as? String
    }
}
