How Android app install tracking works?

user3548321 picture user3548321 · Jun 15, 2014 · Viewed 9.4k times · Source

can anybody here explain how android app referral tracking works? a friend gave me an android app's google play referral url. And i installed the app and opened it. How does the app developer know that it's my friend who referred me to their app? I know that the link that my friend gave me contains his referral details but if i close google play after completing the app install, how can google play detect that i opened the app? So some unique data is injected into the app while i install it from playstore. am i right? Please explain.

Answer

matiash picture matiash · Jun 15, 2014

It's quite simple actually. You click on the link with a referral (Google calls them Campaing Attribution) and this link is passed to the Google Play Store app. Then, when you install the app, the Play Store also forwards this data (campaign name, source, &c) to the app itself.

The app just needs to have a particular BroadcastReceiver (with an intent-filter for the com.android.vending.INSTALL_REFERRER action) declared in its Manifest for this to work.

It's well explained in the Google Play Campaign Attribution section of the Google Analytics documentation.