Book Image

Getting Started with Flurry Analytics

By : Bhanu Birani
Book Image

Getting Started with Flurry Analytics

By: Bhanu Birani

Overview of this book

Analytics help you to understand the way your users are interacting with your mobile application. Flurry provides you with a strong analytics tool to keep track of your application and to analyze your application data without much hassle. It provides an SDK for almost all platforms to gather data from all platforms of mobile and web applications. The enormous amount of data Flurry handles directly translates into unique, powerful insights into your applications.Getting Started with Flurry Analytics is a practical, hands-on guide to instantly getting started with Flurry analytics using step-by-step exercises. You will take advantage of the real power of Flurry analytics and provides you with an example-based learning approach to help you master it quickly and efficiently.This book starts by discussing how to set up and integrate Flurry analytics and ends by making you aware of how to track your application using Parse. You will also learn about tracking your application data using Flurry analytics to strengthen your strategies and to improve the application monetization process. You will also learn about configuration and implementation of Flurry analytics and how to make the application track all the necessary details to empower management decisions.
Table of Contents (12 chapters)

Location tracking


You can fetch the user's location by using the CCLocationManager class. The following code will start to get the current location of the user. However, to track a user's location, you need to add CoreLocation.framework in your project to track the location of a user in Flurry as shown:

  CLLocationManager *locationManager = [[CLLocationManager alloc] init];
  [locationManager startUpdatingLocation];

After getting the location, you can set the location in Flurry. You can set CCLocationManagerDelegate to get the callback when the updated location is received. Once the updated location is received from the locationManager class, you can use the following method to set the same on Flurry:

  CLLocation *location = locationManager.location;
  [Flurry setLatitude:location.coordinate.latitudelongitude:location.coordinate.longitudehorizontalAccuracy:location.horizontalAccuracyverticalAccuracy:location.verticalAccuracy];

The preceding method will update the user's current GPS location...