针对iOS的谷歌分析:为什么没有发生?

时间:2015-05-26 09:58:42

标签: ios objective-c swift google-analytics

我在Android和iOS应用中实施了Google Analytics。当我测试Android应用时,我可以在分析仪表板上看到它,但似乎我的iOS应用没有链接到Google Analytics。

我的AppDelegate.swift:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    GAI.sharedInstance().trackUncaughtExceptions = true
    GAI.sharedInstance().dispatchInterval = 20
    GAI.sharedInstance().logger.logLevel = GAILogLevel.Verbose
    GAI.sharedInstance().trackerWithTrackingId("UA-XXXXXXXX-1")
    return true
}

MyViewController.swift:

class MyViewController: GAITrackedViewController {
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(true)
        self.screenName = "myView"
    }
}

调试我的应用时的Google分析日志:

VERBOSE: GoogleAnalytics 3.12 +[GAITrackerModel initialize] (GAITrackerModel.m:88): idfa class missing, won't collect idfa

INFO: GoogleAnalytics 3.12 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002

INFO: GoogleAnalytics 3.12 -[GAIBatchingDispatcher hitsForDispatch] (GAIBatchingDispatcher.m:368): No pending hits.

我做错了什么?

0 个答案:

没有答案