The mobile app market became really competitive in the last year, as a recent TechCrunch article stated. The costs for visibility in a market with hundred of thousands of competitors is increasing steadily. The marketing costs for one successful install (cost-per-install, or short CPI) of your app is on the rise. According to recent numbers by W3i the marketing cost for an installed Android app in June 2012 has risen from $0.30 to $0.51. On iOS the CPI has increased from $0.59 to $0.92.
As a matter of fact, it is of crucial importance for app developers and publishers to track and analyze their successfully installed apps. Since most platform SDKs do not support rich app tracking and analysis, several vendors offer additional technologies and services, such as Google Analytics SDK for Android apps or Localytics. These technologies allow the real-time collection and analysis of user engagement data, such as active installs, location information, feature usage or in-app purchases. As an additional benefit, Google Analytics SDK for Android allows the seamless integration of native app tracking into your familiar Google Analytics dashboard. This integration also gives publishers the tools to monitor the success of their mobile marketing campaigns in combination with their Web engagements. For app publishers this technologies provide a powerful platform to measure and optimize all application marketing efforts.
Within this tutorial we will describe the stepwise process of integrating Google Analytics tracking into a native Android application.
Step 1: Download Google Analytics Android SDK
In a first step download the Google Analytics Android SDK. This SDK contains a libGoogleAnalytics.jar that you have to copy into your /libs/ folder of your Android project. In order to track the user activities within your Analytics dashboard it is necessary to add following permissions to your already existing AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Step 2: Create Analytics Tracking ID
Before you can track the activity of your users within the Analytics dashboard you have to set up a new Web tracking property ID (of course this is not a Web site, but will refer to the stats for your mobile application).
A Web property ID is also known as the UA number of your tracking code and looks like
UA-xxxxx-yy
, where the x’s and y’s indicate the unique numbers for your profile. You must indicate the web property ID you’d like to use when instantiating the tracking object. See Web Property for more information.
Step 3: Integrate Analytics Tracker into Android App
Integrate Google Analytics Tracker SDK into your Android app by accessing the tracker singleton as follows (Don’t forget to change my Analytics Tracking ID by your own ID):
package at.smartlab.androidbook.testandroidtracking; import com.google.android.apps.analytics.GoogleAnalyticsTracker; import android.app.Activity; import android.os.Bundle; public class TestAndroidTrackingActivity extends Activity { GoogleAnalyticsTracker tracker; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tracker = GoogleAnalyticsTracker.getInstance(); tracker.setDebug(true); // Start the tracker (REPLACE my Analytics id with your own ID!! tracker.startNewSession("UA-8874494-2", this); tracker.trackEvent( "Clicks", // Category "Button", // Action "clicked", // Label 77); // Value tracker.trackPageView("/testApplicationHomeScreen"); tracker.dispatch(); } @Override protected void onStop() { super.onStop(); // Stop the tracker when it is no longer needed. tracker.stopSession(); } }
Step 4: Track Application Installs
Track your application installs in detail by adding following receiver in your AndroidManifest.xml file:
<!-- Used for install referrer tracking --> <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver>
Alternative: Localytics

Localytics is built for mobile & tablet apps. Integration is easy, takes just 10 minutes and requires only a few lines of code. A quick integration allows you to track all standard metrics such as platform, device type, sessions and unique users. Event and screen tracking are used to analyze conversion funnels, screen flows, feature usage, content access, advertising performance, etc. Full support for iOS, Android, BlackBerry, Windows Phone and HTML5 apps.
Localytics is designed to measure apps, providing the greatest possible accuracy and lightest footprint. Applications are different than websites, offering richer experiences and a deeper integration with the device. Apps function offline, survive intermittent network connectivity, support multitasking and access location services, storage, accelerometers, network details and more. Localytics collects and combines rich data to help you build more successful applications.
Hi to all, for the reason that I am genuinely eager of
reading this website’s post to be updated on a regular basis.
It contains fastidious information.
I do not even know how I ended up here, but I thought this post was good.
I do not know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!
I don’t even know how I ended up here, but I thought
this post was great. I don’t know who you are but certainly you are going to a famous blogger
if you are not already 😉 Cheers!
My spouse and I absolutely love your blog and find a lot of your post’s to be precisely what I’m looking for.
Does one offer guest writers to write content to suit your needs?
I wouldn’t mind producing a post or elaborating on most
of the subjects you write concerning here. Again, awesome weblog!
I really like it when people get together and share thoughts.
Great site, keep it up!
I will right away grasp your rss feed as I can’t find your e-mail subscription hyperlink or newsletter service.
Do you’ve any? Please let me realize in order that I could subscribe.
Thanks.
Hurrah, that’s what I was seeking for, what a information! present here at this blog, thanks admin of this
web page.
Very energetic blog, I loved that bit. Will
there be a part 2?
Your means of telling everything in this post is really nice, all be capable of without difficulty understand it, Thanks a lot.
I was very happy to discover this web site. I need to
to thank you for your time for this particularly wonderful read!!
I definitely enjoyed every bit of it and I have you book marked to check out new things in your website.
Hi it’s me, I am also visiting this web site regularly, this site is genuinely pleasant and the people are genuinely sharing
pleasant thoughts.
Hey I know this is off topic but I was wondering if you knew of any widgets I could add
to my blog that automatically tweet my newest twitter updates.
I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have
some experience with something like this. Please let me know if you run into anything.
I truly enjoy reading your blog and I look forward to your new updates.
I every time spent my half an hour to read this web site’s posts all the time
along with a mug of coffee.
Great post. I was checking constantly this blog and I’m inspired!
Extremely helpful info specially the closing section 🙂 I care for such info a lot.
I was seeking this particular info for a long time.
Thanks and good luck.
Hello there! This is my first visit to your blog!
We are a team of volunteers and starting a new project in a community in the same niche.
Your blog provided us useful information to work on. You have
done a wonderful job!
Very good article. I will be facing many of these issues
as well..
It is not my first time to pay a visit this site, i am browsing this
web page dailly and get nice facts from here
every day.
I like the valuable info you provide in your articles.
I’ll bookmark your weblog and check again here frequently.
I am quite certain I will learn many new stuff right here!
Good luck for the next!
Hello, just wanted to mention, I liked this post. It was inspiring.
Keep on posting!
Fine way of explaining, and pleasant article to obtain facts about my presentation topic, which i am going to deliver in academy.
I have to thank you for the efforts you have put in writing this site.
I really hope to view the same high-grade blog posts from you later
on as well. In truth, your creative writing abilities has motivated
me to get my own, personal website now 😉
I always emailed this webpage post page to all my friends, as if like to read it after that
my links will too.
Good post. I certainly appreciate this site. Keep writing!
Exceptional post but I was wanting to know if you could write
a litte more on this subject? I’d be very grateful if you could elaborate
a little bit further. Many thanks!
I like the valuable info you provide on your articles. I’ll bookmark your blog and check again here frequently.
I am relatively certain I’ll be told many new stuff right right here!
Best of luck for the next!
It’s impressive that you are getting ideas from
this article as well as from our discussion made at this time.
Keep on working, great job!
This is my first time pay a quick visit at here and i am in fact
pleassant to read everthing at single place.
It’s a pity you don’t have a donate button! I’d most certainly donate
to this outstanding blog! I guess for now i’ll
settle for bookmarking and adding your RSS feed to my Google account.
I look forward to brand new updates and will talk about this website with my Facebook group.
Talk soon!
Sweet blog! I found it while surfing around on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there!
Cheers
Hello there! This blog post could not be written much better!
Going through this post reminds me of my previous roommate!
He constantly kept preaching about this. I’ll forward this post to him.
Pretty sure he’s going to have a very good read.
Thank you for sharing!
Howdy! Would you mind if I share your blog with my myspace group?
There’s a lot of people that I think would really appreciate your content.
Please let me know. Cheers
My brother recommended I would possibly like this web site.
He was entirely right. This submit truly made my day.
You cann’t imagine just how a lot time I had spent for this information! Thank you!
all the time i used to read smaller articles that also clear their motive,
and that is also happening with this piece of writing which I am reading at
this place.
I am truly glad to read this web site posts which contains
tons of useful information, thanks for providing these information.
Hiya very nice website!! Man .. Beautiful ..
Wonderful .. I’ll bookmark your website and take
the feeds additionally? I’m glad to seek out so many helpful information right here within the post, we want work out extra techniques in this
regard, thanks for sharing. . . . . .
At this moment I am ready to do my breakfast, once having my breakfast coming yet again to read additional news.
Thanks for any other magnificent article. The place else could anybody get that
kind of information in such a perfect method of writing?
I’ve a presentation next week, and I am at the search for
such info.
What’s Taking place i’m new to this, I stumbled upon this I’ve found It absolutely helpful and
it has helped me out loads. I’m hoping to give a contribution & assist other customers like its helped me.
Good job.
Hi there to every one, since I am truly eager of reading this blog’s
post to be updated daily. It consists of fastidious stuff.
This design is wicked! You obviously know how to keep a reader amused.
Between your wit and your videos, I was almost moved to start my own blog (well,
almost…HaHa!) Great job. I really loved what you had to say, and more than that, how you presented it.
Too cool!
Superb post however , I was wanting to know if you could write a litte
more on this subject? I’d be very grateful if you could elaborate a
little bit more. Cheers!
At this time I am going away to do my breakfast, afterward having my
breakfast coming yet again to read additional news.
Hmm is anyone else encountering problems with the images
on this blog loading? I’m trying to determine if its a problem on my end or
if it’s the blog. Any feedback would be greatly appreciated.
Hello! I just wanted to ask if you ever have any problems
with hackers? My last blog (wordpress) was hacked and
I ended up losing several weeks of hard work due to no back
up. Do you have any solutions to protect against hackers?
I recently tried CBD gummies after the prime time and was pleasantly surprised past the results. Initially skeptical, I create that it significantly helped with my dread and slumber issues without any notable side effects. The fuel was effortless to speak, with nitid dosage instructions. It had a indulgent, earthy grain that was not unpleasant. Within a week, I noticed a signal convalescence in my all-inclusive well-being, feeling more relaxed and rested. I cognizant the natural technique to wellness CBD offers and aim to continue using it.
Hello there, I found your blog by the use of Google
at the same time as searching for a similar matter,
your web site came up, it seems to be great.
I have bookmarked it in my google bookmarks.
Hello there, simply become aware of your blog through Google, and located that it is truly informative.
I am going to watch out for brussels. I’ll be grateful if you
proceed this in future. Many folks shall be benefited
out of your writing. Cheers!
When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox
and from now on each time a comment is added I
get 4 emails with the same comment. There has to be a way you can remove me from that service?
Kudos!
It’s perfect time to make some plans for the future and
it is time to be happy. I have read this post and if I
could I want to suggest you few interesting things or suggestions.
Perhaps you could write next articles referring to this
article. I want to read even more things about it!
I am really enjoying the theme/design of your web site.
Do you ever run into any browser compatibility issues?
A handful of my blog audience have complained about my site not working correctly in Explorer but looks
great in Chrome. Do you have any tips to help fix this problem?