谷歌崩溃前的谷歌分析最后一个屏幕

Luk*_*kas 6 iphone google-analytics objective-c ios nsrangeexception

我的应用程序因信息很差而崩溃.当应用程序崩溃时,有没有办法在谷歌分析中找到最后一个屏幕名称?我正在跟踪我的应用程序中的每个屏幕.这样我就可以知道bug存在于哪个控制器中.谢谢你的帮助!

编辑 崩溃报告:

NSRangeException Trace: <redacted> <redacted> <redacted> <redacted> <redacted> <redacted> <redacted> <redacted> <redacted> CFRunLoopRunSpec
Run Code Online (Sandbox Code Playgroud)

小智 25

我在我的应用中使用Google Analytics遇到了类似的情况.通过单击Secondary Dimension - > Engagement - > Screen Name,我可以从Crashes and Exceptions页面获取更多信息,显示所有错误.这显示发生崩溃/错误的屏幕.


Avi*_*Avi 1

您尝试过 GA 中的崩溃和异常分析吗?

您可以在此处找到有关分析的更多详细信息:https://developers.google.com/analytics/devguides/collection/ios/v2/exceptions

页面中的跟踪代码示例:

@try {
  NSArray *highScores = [self getHighScores];
}
@catch (NSException *exception) {
    [tracker sendException:NO // Boolean indicates non-fatal exception.
            withDescription:@"Connection timout %d: %@", connectionError, errorDescription];
}
Run Code Online (Sandbox Code Playgroud)

并自动跟踪未捕获的异常:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GAI sharedInstance].sendUncaughtExceptions = YES; // Enable 

  // ... the rest of your code, include other GAI properties you want to set.
}
Run Code Online (Sandbox Code Playgroud)