Created
February 22, 2014 01:51
-
-
Save kaylarose/9147448 to your computer and use it in GitHub Desktop.
Google Analytics Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pre-(psuedo) "Symbolicated" Crash Reports | |
id tracker = [[GAI sharedInstance] defaultTracker]; | |
NSString * model = [[UIDevice currentDevice] model]; | |
NSString * version = [[UIDevice currentDevice] systemVersion]; | |
NSArray * backtrace = [exception callStackSymbols]; | |
NSString * description = [NSString stringWithFormat:@"%@.%@.%@.Backtrace:%@", | |
model, | |
version, | |
exception.description, | |
backtrace]; | |
[tracker send:[[GAIDictionaryBuilder | |
createExceptionWithDescription:description // Exception description. May be truncated to 100 chars. | |
withFatal:NO] build]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment