Based on the results of spike T102290, it's possible for the app to receive a payload from the Play Store after installation, which can consist of parameters that were passed through a URL from a download link on the mobile website. To receive this data, the app needs to implement a handler for the INSTALL_REFERRER intent:
https://developers.google.com/android/reference/com/google/android/gms/tagmanager/InstallReferrerReceiver
The structure for the "referrer" parameter shall be as follows:
referrer_url=foo&campaign_id=bar&install_id=baz
- referrer_url -- the original url from which the link was clicked.
- campaign_id -- unique ID that represents the campaign that led to the install of the app. Used for sorting installs based on campaign.
- install_id -- unique ID that is generated on the Mobile Web page for every click of the link to the Play Store. This unique ID can be sent to eventlogging by the Mobile Web page, and then sent by the app upon receipt of these install referrer parameters, so that we can correlate the two.
The above parameters should be urlencoded and passed as the "referrer" query parameter in the web link that points to the Play Store page for installing the app.
A corresponding event logging schema to accommodate this data has been created:
https://meta.wikimedia.org/wiki/Schema:MobileWikiAppInstallReferrer
The app will send an event whenever it receives this intent, which should be once per install.