Hi there, When browsing some websites it appears that Commission Junction affiliate links are masked - and when you scroll over the link, the scroll bar displays the address as http://www.xyz.com - without the messy affiliate link showing at all. I was just wondering, how is this done? I'm sure that they aren't simply linking directly to the website because they would miss out on a lot of affiliate revenue... Thanks for any help.
Say you are linking them to a new book (harry potter for example) You can open your htaccess folder and on a new line put Redirect 301 /harry-potter-book http://www.your cj affiliate code here. so if your site was www.xyz.com and you posted a link www.xyz.com/harry-potter-book it would forward them to the affiliate page.
Yes - instead of the CJ affiliate link (http://www.cjaffiliatelink.com/ref=1234567etc) I would prefer if it showed the link of the main site (http://www.xyz.com). How do you mask the link within CJ? Thanks for the help so far.
Using javascript. Here is an example anchor tag... <a href="http://rover.ebay.com/yadda/yadda" onmouseover="window.status='http://www.ebay.com'; return true;">Your link text or image</a> Code (markup): hanji
Thanks a lot hanji, this is great. I think this is what the other sites must have been doing, stupidly I forgot to have a look at their code. Can I still add the rel="nofollow" command after the <a href="http://xyz.com" ? Thanks
Can I just ask quickly - does this only work when the page is online? When I preview in offline mode the URL isn't actually masked...
I find this working in IE browser only, not in Firefox (in Firefox it doesn't show anything). But I think it's fine, as most potential customers are using IE.
New to forum and to this subbject. We have an affiliate program and would like to provide our affiliates the ability to mask their affiliate referral id that link to us. Example: Source (affiliate's site): http://www.MyDomain.com/ProductID.html Target (our site) http://www.MyDomain.com/ProductID.html/?&AFFIL=123456 Basically add "/?&AFFIL=" to the end of any link that links our site. Thanks, Jerry
Just mod_rewrite this stuff. It's much more convenient if you have many affiliate programs you promote.