swift - Google analytics not working on iOS 10 -
i'm had implemented google analysis , run app on 1 of ios devices. however, real time reporting still showing everything 0 . had setup google analysis below. appreciated if suggestion given. appdelegate.swift didfinishlaunchingwithoptions method : - guard let gai = gai.sharedinstance() else { assert(false, "google analytics not confiugured correctly.") } gai.tracker(withtrackingid: "ua-10317xxxx-1") // optional: automatically report uncaught exceptions. gai.trackuncaughtexceptions = true loginvc.swift viewwillappear method : - override func viewwillappear(_ animated: bool) { super.viewwillappear(animated) setuptracker() } loginvc.swift setuptracker() method : - private func setuptracker() { let name = "login vc" guard let tracker = gai.sharedinstance().defaulttracker else { return } tracker.set(kgaiscreenname, value: name) guard let builder = gaidictionarybuilder.createscreenview(