subscribe: Posts | Comments | Email

How To Mask Your Affiliate Links With PHP

View Comments

Top of the morning,

I’ve got a really cool treat for you today. This is by far one of the coolest tricks I’ve learned in a while and I want to share it with you so that you can enjoy it’s benefits just like I have.

We are going to be learning how to mask your affiliate links using a very simple PHP script. The process is going to turn a ugly, scary lookin’ link this:

http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=2642

Into something sexy lookin’ like this:

http://matthewneer.com/elegantthemes

Now you won’t scare off potential buyers from clicking on your affiliate link and making a purchase because they can’t even tell it’s an affiliate link in the first place. This technique has been proven to dramatically increase your click through rate (CTR) and also makes you appear much more professional.

Below is the PHP script you need to copy and paste into your own PHP file.

<?php header(“Location: http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=2642“) ; ?>

What you need to replace with your affiliate link I made red. Make sure you don’t alter anything in green. And make sure you leave a space between the : after location and the beginning http of your affiliate link.

I’ve also included this video tutorial that will walk you through the entire process. Watch it now, then comment and share this post.

YouTube Preview Image

I hope you enjoyed this little PHP trick, this will help you get more clicks, more commissions and look more like a pro marketer.

If you liked this post, please share it with everyone and comment.

If you enjoyed this post, you might also like my eBook Article Cannon

If you haven't got it yet, you may want to download this private interview with Frank Kern. Thanks for visiting!

Related Posts

468 ad
  • Does this only work on text links? I notice on your example in the video there was a banner ad .. can you do the same for the banner? Also, I'm a little unclear as to where the folder with the php goes in wordpress. Sorry for questions..on a massive learning curve ;)
  • chipwils0n
    Matthew - Great Information!! I have a few folks that will get this in their email today!

    Question - I have heard that some types of masking, via Go Daddy, etc interfere with affiliate commission tracking. I assume that this creates no such issues??

    Thanks Again.

    Chip
blog comments powered by Disqus