How to implement Flurry Analytics in iPhone app

If you want to have better insight into how your applications are being used, you can use Flurry Analytics. It is a free service, easily integrable into your iPhone applications. It provides accurate data about how consumers use your application. You will receive anonymous, aggregated usage and performance data, as well as robust reporting and analysis tools. With this data, you can identify issues and opportunities, create a more informed product roadmap, increase retention and grow your user base.

STEP 1.
· create account at http://www.flurry.com
· add your application
· download the Flurry SDK for iPhone
· copy API Key

STEP 2.
· add FlurryLib folder into your app
· import Flurry
· in applicationDidFinishLaunching method past API Key:

#import “FlurryAPI.h”

– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FlurryAPI startSession:@”123456789ABCDEFGH”];

}

With just this one line of code you can get info about your app like:
· Number of sessions (Image 1.)
· Median session Length
· Sessions per day
· Frequency of Use (Image 2.)
· Users Map (Image 3.), etc.

STEP 3.
· track different events:

NSString* myLogEvent = @”Most people clicked here”;
[FlurryAPI logEvent:myLogEvent];

· tracking uncaught exceptions:

– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FlurryAPI startSession:@”126HRJHGN995IDCIR84D”];
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);

}

void uncaughtExceptionHandler(NSException *exception)
{
[FlurryAPI logError:@”Uncaught” message:@”Crash!” exception:exception];
}

Image 1.

Image 2.

Image 3.