you want to use the tracking feature of Google Analytics to track all clicks on outbound links from your site, however, you also want those outbound links to open a new window...
If you simply follow the instructions to track outbound links you will discover that your links will no longer open in a new window (regardless of whether you are using Javascript or target="_BLANK" to open the window.
And here's the solution:
Apply the javascript to you hyperlink as usual...
your link text
...but modify the tracking code as follows...
function recordOutboundLink(link, category, action) {
try {
var pageTracker=_gat._getTracker("XX-XXXXXXX-XX");
pageTracker._trackEvent(category, action);
setTimeout('document.location = "' + link.href + '"', 100;window.open(this.href))
}catch(err){}
}
(Don't forget to replace XX-XXXXXXX-XX with your tracking code)
...and that's all — Outbound links with Google Analytics tracking and opening in a new window


Create, save, and edit custom reports that present the information you want to see. A drag and drop crossing point lets you select the metrics you want and define multiple levels of sub-reports.
Upload the Google Analytics tracking code into each of your website pages and tracking begins immediately.
You can track and measure up to all your ads, email newsletters, affiliate campaigns, referrals, paid links, and keywords on Google and other search engines.
With the help of Google Analytics to learn which keywords are most profitable to your business.
You can locate how your visitors search your site, what they look for, and where they end up.
Find out whether your website performance metrics underperform or outperform. Opt-in benchmarking compares your key metrics against aggregate performance metrics.
Compare time periods and select date ranges without losing sight of long term trends.
Trace transactions to campaigns and keywords, get loyalty and latency metrics, and identify your revenue sources.
Find out which pages result in lost conversions and where your would-be customers go.
See traffic and conversion information for every link as you browse your site.
Schedule personalized report emails that contain exactly the information you want to share.
Find out where your visitors come from and identify your most lucrative geographic markets.