Tagged:

Many businesses and people have been developing their own mobile application for variety of purposes and making those available to general public by launching it on Apple store, Google play store, Windows Phone store and other marketplaces. On all these app stores there are millions of applications available to people. But real world fact is that how many applications are effectively used by people.

This is important for every mobile app owner to know that how many users are effectively using their app and which features are popular among users. So now the question is how we can gather such information about our application & its features usage?

There are two different ways to collect usage data of any mobile app data.

1) Custom Software Development for Tracking mobile app usage

2) Using Third party services like Google Analytics, Localytics and many others.

I would suggest, cost effective option is to utilize third-party services of Google Analyitcs, Localytics, Flurry Analytics or other such service providers.

So in this article we will see how to integrate Google Analytics in iOS application. Click here for the tutorial on how to integrate Localytics in iOS app.

Assumptions : My assumption is that readers of this article are aware about iOS development and have relevant knowledge about how to write necessary iOS code and test it.

Here are the steps to integrate Google Analytics in iOS app.

Step – 1 : First of all download latest Google Analytics SDK using below url,

https://developers.google.com/analytics/devguides/collection/ios/resources  

Note : Google keeps on updating their API for new updates so keep looking for such SDK related updates.

Step – 2 : Integration of Library

Once library is downloaded then important step is to integrate that library within the iOS application. Please extract library zip file and copy its relevant folder within your application source. If you have separate folder for “Third Party Libraries OR Frameworks” then place this folder in that location.

Your library folder will contains following files:

  • GAI.h
  • GAIDictionaryBuilder.h
  • GAIFields.h
  • GAILogger.h
  • GAITrackedViewController.h
  • GAITracker.h
  • libGoogleAnalyticsServices.a

Downloaded library contains required API files as well as sample code for review purpose.

  • SasaTech

    This is very different from other blog that I’ve read this day. I now finally found out the updates and advantages.