Cloak urls in rotator and track urls


I have a url rotator but have no idea how to make the urls cloaked and i also want it to be able to track the urls and see where they being clicked from and how many visitors each url is getting.

This is my url rotator code :-

Sponsor our Newsletter | Privacy Policy | Terms of Service