1. The first way is to mask you affiliate url. It seems on the first look simple - there are many well-known good and free url shortening services, like bit.ly, goo.gl etc. The problem here is: if you know about them, Google, Facebook, Bing and Co know about them too. And block them from using. What could we do? - Exact, we create our own url shortening service and use it for affiliate url cloacking. Requirement: own hosting with PHP/MySQL and registered domain. Then go to http://yourls.org/, follow instructions and you get your own url shortening service, which will shorten/mask/cloack and monitor all of your affiliate urls. I personally use a combination of my own hosted instance of yourls.org and goo.gl.
2. The second way is to use iframe to hide the affiliate offer "behind" your own hosted page. I use following short and simple code to iframe affiliate offers:
<!doctype html> <html prefix="og: http://ogp.me/ns#" lang="en" > <head> <meta charset="utf-8" /> <title>Title</title> <link rel="author" href="http://google.com/+Evgeniy-Orlov?rel=author"/> <meta property="og:title" content=""/> <meta property="og:description" content="" /> <base target="_blank" /> </head> <body> <iframe style="width: 100%; height: 100%;" src="http://your-tracking-url.com" scrolling="no" frameborder="0"></iframe> </body> </html>
3. The third way is to use a redirect. We provide as the target url for the ad campaign our own hosted page, but this page contains a redirect to the affiliate offer / tracking url. There are some types of redirect, which could be utilized for our purpose: i recommend, as i said befor, to use more then one type. Here you find a code of some redirect types you can use: