public class InstallReferrerReceiver extends android.content.BroadcastReceiver
You can use InstallReferrerReceiver to capture and store referrer information, and use that information to track how users from different sources are using your app. To enable InstallReferrerReceiver, add a clause like the following to the <application> tag of your AndroidManifest.xml.
<receiver android:name="com.mixpanel.android.mpmetrics.InstallReferrerReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver>
Once you've added the <receiver> tag to your manifest,
all calls to
will include the user's Google Play Referrer as metadata. In addition, if
you include utm parameters in your link to Google Play, they will be parsed and
provided as individual properties in your track calls.
InstallReferrerReceiver looks for any of the following parameters. All are optional.
Whether or not the utm parameters are present, the InstallReferrerReceiver will also create a "referrer" super property with the complete referrer string.
|Constructor and Description|
|Modifier and Type||Method and Description|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras