Hi,
You need to go about tracking the link in a different way, it needs to be on the page of your site it's being clicked on instead, as the php redirect will not trigger the code as it executes pretty much instantaneously.
Take a look at the google article on how to work with analytics to track the outbound links
https://support.google.com/analytics...36920?hl=en-GB
Hope this helps
Rob