This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
You could have the links posted back to a servlet on your site, where you record the date, time, and link hit, and then you use a RequestDispatcher to forward to the other site. So when you reference google- your href is back to a servlet on your site that records the info, then forwards them to the new site.