Cloak urls in rotator and track urls

Hi,

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 :-

https://pastebin.com/XPQmEZhA

Sponsor our Newsletter | Privacy Policy | Terms of Service