Tracking the clicked anchor text

Hello,

Is it possible to tracking the clicked anchor text by without i have page with ID?

Like:


<a href="link.php?ID=1">Anchor Text</a>

to something like


<a href="http://www.domain.com/">Anchor Text</a>

for SEO purposes?

Thank You