One of the most important methods of making money online is through affiliate relationships. With these, you typically get a cut when you recommend a product or service to someone and they end up taking the plunge and buying it.
I’d say the biggest hassle of affiliate programs is managing the links. These are ugly critters and if you recommend a wide variety of things on your blog, you’ve got a lot to keep track of.
Show me the ugly!
There is really no good reason to link to something like this:
(sheesh I had to use a line break on that one!)
.. when you can do it like this:
There are lots of good reasons to use redirects when linking to your affiliates:
- Sometimes affiliate links change. Rather than have to go back through thousands of posts and hunt the little buggers down, you’ve got the ability to mange them in a central location.
- Your link looks like an internal link within your site. This puts many people more at ease subconsciously.
- By using something like “go/affiliateprogram” or “recommends/affiliateprogram” you show your readers exactly what is going on.
- Affiliate links are usually long, messy looking and impossible to remember. This forces you to keep copying and pasting from your notes each time you want to build a link using. Precious moments of your life that are better spent elsewhere.
- These long and messy affiliate links tend to scare people away from clicking them. Boo!
- Some people, for deep seated psychological reasons that are still being studied, love to take the extra time to avoid clicking on a naked affiliate link and to retype the web address into their browser.
- Search engines are beginning to get snippy and throw penalties at people if they don’t happen to like the ways in which you make money online. Anything you can do to obfuscate things is probably in your best interest.
- You end up spending less time and making more money – Tim Ferris would be proud!
OK, how do we skin this cat (and get our 10% of all the cat skin sold!)
The way we accomplish this is by redirecting a simply and clear web address on your website to the complicated and confusing affiliate link.
There are a variety of ways of doing this. If you are not using WordPress you can make a basic webpage in PHP and include code that looks like this:
Ah, but as with most things, it all gets easier with WordPress
One of the great things about using WordPress as a content management system for you blog or your website is that it has a plugin architecture which makes most anything possible if your pour enough programmers into it. It also has an ubertalented and enormous development community happily whittling away at the Web’s problems. This case is no exception.
Mihai Secasiu of Patchlog has written a plugin for WordPress called Hidden Affiliate Links that handles all of this easily. You can download the plugin here (version 0.2), but make sure you read about it on the original post.
There are a few installation difficulties
The plugin is pretty easy to use. The only problem is that in installation there is at least one minor glitch to solve. You need to go into the Plugin Editor or use your favorite text editor to change line 16 of the file hidden-affiliate-links.php to reflect the proper version by changing:
(if yours already reads 0.2 then Mihai’s already fixed it)
Also, if you are like me and have WordPress installed in a subdirectory to keep thing clean you’ll need to fix another glitch on lines 279-281 by changing:
to read (includes the ABSPATH):
I have a doctored version of this file ready for download to make this easier.
Once you get this all solved, you install it and activate it in typical WordPress fashion. This will create a new menu under Manage in your control panel titled Hidden Affiliate Links which looks like this:
There are a few advanced features as well, such as the ability to type in a keyword in your post and have it replaced by your affiliate link. I’ll talk about these in a future post.
When you’re all done you’ll have nice looking affiliate links like this one.