Tracking internal links to redirects with goals?

Hi folks, i would like to use the plugin “goals” for tracking klicks on links which are redirect to different internal sites. on these internal sites are 301 redirect to various target sites. How can i bring “goals” to track the klicks?!

yea, this is what i want to know. no ideas?!

Use trackGoal(). See Piwik’s JavaScript tracking API. Note: this is subject to the one goal per visit limitation.