私のウェブページには、他のサイトへのリンクが多数あります。リンクをクリックするたびに、この特定のリンクが私のサイトからクリックされたとカウントする必要があります。
これどうやってするの?TomcatをWebサーバーとして使用し、JSPをビューテクノロジーとして使用しています。
Googleアナリティクスにはイベントトラッキングと呼ばれるものがあります
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
If you are using google analytics it is easy to setup javascript to record the clicks. This would be far easier than setting up your own redirection as you can still use actual url anchors instead of urls that go through your server.