Social Media Metrics: Google Analytics SDK Android App

Tracking an application's metrics (an app) has simplified, but apps are inherently isolated still. You can track each app, but solutions are still being created to track all apps.

To get going with Google's Analytics SDK for your Android app, simply follow these steps:

  1. Download the Google Analytics SDK for Android.

  2. Add the library libGoogleanalytics.jar to your app project.

    If this step leaves you scratching your head, don't worry. Your app developer will know what this means.

  3. Add these permissions to the Android manifest of your app:

    image0.jpg
  4. Create a distinctive website profile inside your Google Analytics account.

    Most app developers simply create a false/fake website profile for this purpose.

     

    You'll need the Web Property ID from this profile to track users anonymously. You'll also need to disclose that you're doing this to the users who sign up for and download your app.

     

  5. Track your referring installs by making your links look like this:

    image1.jpg

    You want to do this kind of tracking, especially if you have more than one way to download your app — for example, the market, an advertisement, or a website.

  6. Go back into your app manifest and add this code as part of tracking referring installs:

    image2.jpg

These steps should bring metrics into your Android app. You can also get more detailed and track user activities within your app, but that requires quite a few more lines of code and some advanced knowledge of the SDK — something your app developer will likely already know how to do.

Grab the downloads you need to work with the Android SDK and to see some advanced tutorials.

blog comments powered by Disqus
Advertisement

Inside Dummies.com