You can add the utm parameters to the deeplink which will be available after a user selects the invitation and opens the app after an install, upgrade or open if already installed. Your app should call
getInvitation() to access the deep link which you can parse to get the attached utm parameters and call analytics with the parameters. You can also use
Google Play Campaign Attribution to track app installs. On android, add the parameters (utm_source, utm_campaign, etc), using
.setAdditionalReferralParameters() when you are creating the invitation using the builder. Those parameters will then be appended to the play store referrer= parameter that is passed to the Play Store when the user selects the invitation and proceeds to install the app. The utm parameters are then processed normally if you've implemented
Google Play Campaign Measurement callback to the BroadcastReceiver.