Record when a user clicks on a link