user3548321 user3548321 - 5 months ago 8
Android Question

How Android app install tracking works?

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.


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 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.