Flurry: Analytics for your iPhone app

In this post, I will share my experience with one of the easy-to-use analytics library Flurry for your iPhone app. They claim in the documentation that the integration can be done in 5 min and I found it to be true to the certain extent. Flurry Analytics provides an incredible amount of actionable intelligence into how and where people are using your app. You can quickly identify your most engaged and valuable users by grouping them on key characteristics such as demographics, location, language preference, and usage of select features in your app. The Flurry iOS Analytics Agent allows you to track the usage and behavior of your iOS application on users’ phones for viewing in the Flurry Analytics system.

Here is how to set up flurry.
First you need to go to www.flurry.com and sign-up for the account like the following:
Flurry sign up

You will get a confirmation email from flurry and after verification, you can login to flurry dashboard which looks like following:
flurry dashboard

My dashboard already has an application added into it. You can add a new application for enabling analytics by going into the application tab of your dashboard and click on “Add new application” link in the top right corner.

Application dashboard

Now you will be presented with the “select application type” screen like the following. Select iOS type from this. As you can see you can use flurry for adding analytics for so many platforms.

Select application type

Once you select the platform, you will be asked to fill out details of your iPhone application like following:

Application detail

Now hit “Create App” button and you are done. If you have followed all the steps, you will see a page like following. This shows the unique application key that will be used in your iPhone application code to enable sending data. This unique key is used by flurry to collate data for one application.
Application Created

Now download, flurry sdk from this page. You will get the following three files along with others:

  • Analytics-README.pdf : This file containing instructions on how to use Flurry Analytics.
  • Flurry/Flurry.h : The required header file header file containing methods for Flurry Analytics.
  • Flurry/libFlurry.a : The required library containing Flurry’s collection and reporting code.

The best part is, this readme file is just 5 pages long so you can easily read it.

There are additional folders for use with Flurry Ads. These optional libraries provide alternate streams of revenue for your apps. If you would like to use Flurry Ads please refer to FlurryAds-iOS-README.pdf. Flurry Agent does not require CoreLocation framework and will not collect GPS location by default. Developers who use their own CLLocationManager can set GPS location information in the Flurry Agent.

Now follow the integration steps mentioned in the README file like:

  1. Copy Flurry directory into project’s file folder in finder.
  2. Now add Flurry lib to your project:
    -Select project and do right-click to add files to your project.Add files to majikal- Destination: select Copy items into destination group’s folder (if needed)
    – Folders: Choose ‘Create groups for any added folders’
    – Add to targets: select all targets that the lib will be used for
    Add lib to majikal
  3. Add SystemConfiguration.framework to your app. This is required for Reachability to manage network
    operations efficiently.
  4. In your Application Delegate:
    – Import Flurry and inside “applicationDidFinishLaunching:” add: [Flurry
    startSession:@”YOUR_API_KEY”];
    #import "Flurry.h"
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    [Flurry startSession:@"YOUR_API_KEY"];
    //your code
    }
    

You’re done! That’s all you need to do to begin receiving basic metric data.

Now you can come back to the flurry dashboard of your application on flurry.com and see the user data:
analytics dashboard

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>