Teo Choong Ping
Teo Choong Ping

Reputation: 12808

How to track referral install from Android Market?

I have this in my manifest file:

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

but I don't see the install data in my GA. I am wondering if I missed out something.

Upvotes: 5

Views: 3259

Answers (2)

pjv
pjv

Reputation: 10708

Do you have another BroadcastReceiver in your manifest?

The docs say:

Note: Only one BroadcastReceiver class can be specified per application. Should you need to incorporate two or more BroadcastReceivers from different SDKs, you will need to create your own BroadcastReceiver class that will receive all broadcasts and call the appropriate BroadcastReceivers for each type of Broadcast.

Upvotes: 1

alexey
alexey

Reputation: 31

This is code snippet correct. But it need for track information about installations by using referral link. You can generate this link here. So if user found your application by this link and then he installed your application, in this case will be recorded referral parameters. (Please see more about referral parameters by link above).

If you want simply track installations of your application, you will can track some pageview (e.g /app/install) only once, at first run of your application.

Upvotes: 3

Related Questions