You can use Google Analytics to track usage of your application.
Android Google Analytics provides re-tracking. This should allow you to create a link for each of the sites that link to your application, and keep track of how many applications are installed, because of which site.
See the Referral Tracking chapter in the Google Analytics documentation for Android.
You must rely on the Google Analytics bank, which must be called in the application and registered in the manifest.xml file
Update
If you do not want to use a separate bank, you can try to get referral information yourself. Google Analytics work by registering this Intent filter:
<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>
It seems that the application on the market will send the specified intention immediately after installing the application from the market. Then the intention will be inferred from the AnalyticsReciever class, and they will save the referrer for later use in analytics.
Google says this is how it works:
Android version 1.6 supports the use of the referrer URL parameter in download links in the Android Market. The Google Analytics SDK for Android uses this option to automatically fill in the information about referral / advertising campaigns in Google Analytics for your application. This allows you to record the installation source of the application and communicate with future pageviews and events.
It also means that sites linking to your application must include a specific parameter in the market URL. How this is done is also explained in the Google Analytics documentation.
Janusz
source share