When directing users to the Google Play™ Store, you can use the Google Install Referrer for 100% attribution accuracy. Google Analytics uses the install referrer to measure campaign performance as well. For information about the Google Install Referrer, please visit Google Analytics uses install referrer.
MobileAppTracking™ (MAT) also uses the install referrer by appending its tracking ID to the install referrer parameter when redirecting users to Google Play.
The following code shows an example of a Google Play link where we append our tracking ID (tracking_id) into the referrer parameter:
When users install the Android mobile app, setup your app to allow the MAT SDK to collect the install referrer value (com.android.vending.INSTALL_REFERRER). For information about Android SDK implementation, please visit MAT Android SDK integration guide.
The install referrer is the value of the "referrer" parameter appended to the Google Play link. Since we append our tracking ID in the referrer parameter, Google allows us to collect this value upon install (via a receiver for the install referrer) and therefore, we can perform attribution with 100% accuracy.
Our Android SDK requires setting up a MAT receiver in your Android manifest. Put this receiver inside your application tags as shown in the following example.