For example, my URLs should look something as follows:
<a href="[url removed, login to view]" onclick="some function to record the click">click me</a>
As you can see, the URL is for the external site. There is some javacript which records the click.
The click (date of click, full URL) needs to be written to a MySQL database.
The solution you implement needs to work in all browsers.
Any questions, just ask.
Thanks for reading.