This tutorial contains an overview of how to implement Flurry Analytics in iPhone app. Flurry Analytics helps to follow user behavior inside the app, it’s nice to have it when it’s critical to know more about most popular user transitions and steps in the mobile app. So here we are happy to share custom source code on how to add Flurry analytics behind the element (button). When a user enters the iOS app and clicks the button, this info is collected under Flurry backend and available for business owners. Let’s describe how to integrate Flurry analytics into iOS app.
 

Step 1 – you need to create an application in flurry, if you don’t have an account, you have to register, if you have an account, then go to dev.flurry.com.

1. Open Applications tab and click on Add a New Application:

01

2. Select the platform you need – our example is created for iPhone:

2

3. Enter a name for your application and select the category that best fits your application:

4

4. Now application is created, remember your key:

5 (finish)

Step 2 - Download the Flurry iOS SDK here. Or you may download Flurry SDK right after finishing adding Flurry app on the site.

Step 3 – Integrate Flurry SDK and other libs to the project.

Add the following frameworks to your app’s target in Xcode:

· libFlurry

· libFlurryAds

· Security.framework

· SystemConfiguration.framework

01

Step 4 – Add project’s code modification.

AppDelegate.h

AppDelegate.m

Step 5 – Add the code for counting how many times user clicks on the button

ViewController.h

ViewController.m
For counting how many times user clicks on the button
add to your event-handling method code (as an example I use method-handler “BtnClick” in my example app)

Note: Run app on real device, not on iOS Simulator.

Step 6 - Run the app and click the button in UI.

Here is an example how analytics data looks on Flurry account:

onKwsjK

Note that information on Flurry server updates 2-3 times per day, so if the statistic info doesn’t update immediately, it’s ok, just need to wait.

Source code. Source code is available on GitHub.

We hope this manual describing how to integrate Flurry in iOS would be helpful to you.

Read also:

• How to Integrate Payment Gateway in a Mobile App?

• What are the Pros and Cons of AngularJS vs ReactJS?

• How to Make a Mobile App with ReactJS?

Rate:
How to Integrate Flurry Analytics into iOS App?
5 based on 2 user ratings