Tracking the source of app download and showing it in app

We have a scenario, where we would like to show the link/source from which our app was downloaded by a user in the app. Is there any way to do this? We are not looking for aggregate attribution, we are looking for user level attribution and downstream dependent changes in the app.
Tracking the source of app download and showing it in app
 
 
Q