For Mobile Application, it is known as Deep Link Tracking. You can append keys to the deep or universal link as context data and capture the same during Mobile Application Launch. But I am sure that it is not a straight forward implementation as a website. Check out this link.
You may consider using Mobile App Acquisition for tracking links which can be correlated to in-app behavior.