You can use the Google Play Store’s Install Referrer API to securely retrieve referral content from Google Play, such as:
- The referrer URL of the installed package.
- The timestamp, in seconds, of when a referrer click happened.
- The timestamp, in seconds, of when an installation began.
- Whether the user has interacted with your app’s instant experience in the past 7 days.