How to track where the users come from and press the download button?

Greeting,

I have a tracking and analysis question:
"How to track where the users come from and press the download button to download the app?"

Here is a situation,
A user found the app download URL from FB, he enters the app store via the URL and he download the app.
Can I track and record down he came from FB and he downloaded the app??
You can generate a campaign link. More info at App Store Connect Help – Measure campaign performance.
How to track where the users come from and press the download button?
 
 
Q