Way to track who clicked a link?

Going out on a limb here, but is there a way to track which user -clicked- on a link provided by nightbot, and then send that data to the page via POST data?

Flow I’m looking for:

User X calls a command.
Nightbot responds with a link.
User Y clicks on the link.
The php page at the link receives the username “Y” in $_POST (so the user can’t edit it).

You can’t really track who clicked links. Perhaps it more useful to use a CustomAPI that replies with a link, the headers used to request can be used to determine who called the command.