Add the USER ID to an outgoing link?

Please stay with me as I am a beginner. Is there a way to add a USER ID alias User ID connected to any external link. For example, a logged in user clicks on a link, the link then adds that user's ID. I tried the current WP user, but I had problems getting this USER ID to get my report.