Automatic keyword inserting affiliate plugin for Wordpress

by Patrick Altoft on February 7, 2008

Today we are releasing a new plugin for Wordpress that allows you to monetize your long tail traffic better than ever before. The plugin works by taking the keyword that a visitor used to find your site in any major search engine and turns it into an affiliate link.

This plugin works great on product sites and is especially useful if you send visitors to sites like Amazon & Ebay as the visitor will be given a cookie and you get credit for future purchases.

You can customise the link to go anywhere including your site search page if you don’t want to sell products. Screenshots of how it works are below. Please note that I don’t use it on Blogstorm so don’t try to make it work.

Download the plugin here

To install:

  • Upload affiliateplugin.php to your plugins folder
  • Edit buy.php to include your Ebay publisher id or change the link to somewhere else as you wish
  • Upload buy.php to your main directory
  • Activate the plugin
  • Go into your Wordpress > Options > Affiliate link options menu and change the link suffix & prefix
  • Add the code below to your Single Post page wherever you want the ad to appear

<?php $referer = $_SERVER['HTTP_REFERER'];
ebay_ads($referer); ?>

Update: You might also like to integrate these scripts-

Redirect outbound affiliate links

Geotargeting with php 

Visitor searches on Google & clicks on your site

Screenshot1

Keywords are turned into an affiliate link

Screenshot2

Visitor clicks on the affiliate link

Screenshot3

Patrick Altoft is Director of Search at Leeds based digital & SEO agency Branded3. Patrick also runs Blogstorm.

You can get our blog posts delivered for free by email every day - simply add your email address to the box below or alternatively grab the RSS feed.

Read some similar posts

{ 19 comments… read them below or add one }

Christian 07 Feb 2008 at 11:34 pm

This is fantastic, Patrick! Cheers

Christian

Domainholics 08 Feb 2008 at 1:01 am

ditto! What a brilliant idea. There’s loads of potential here!

Brilliances 08 Feb 2008 at 1:03 am

magical!

Sucker 08 Feb 2008 at 1:50 am

I might build some new blogs to take advantage of this!

Matthew 08 Feb 2008 at 2:06 am

This looks great. I used a similar method to create links automatically to go to Amazon based on location of the user (.co.uk or .com), but it didn’t use the search string as the text. Instead I used keywords from the title of the post to determine which ad to show. That worked ok’ish (nothing too spectacular).

This however should be way more targeted and I expect to see some nice results. If I see some good performance over the next few days I am going to look in to ways to geo target and send users to their correct ebay/amazon site.

Also I am going to test with a BUY button next week too to see what effect a buy it now type button has over the text.

Patrick Altoft 08 Feb 2008 at 2:19 am
Find me on Twitter

Good idea about geotargeting, I added a link above to another of my scripts that does this.

More comments from Patrick Altoft
Alex Ion 09 Feb 2008 at 8:22 am

I think I will implement it on my gadgets blog, too.
It should perform nicely.

Alex

Tibi Puiu 09 Feb 2008 at 8:52 am

Brilliant work Patrick! It’ll definitely come in handy.

Flavio Copes 12 Feb 2008 at 9:21 am

Thanks for this, it will be very useful!

weird online 16 Feb 2008 at 2:41 pm

Patrick, I wish blogspot could have this one. Most of my blogs are powered by blogger.

Osita 21 Feb 2008 at 11:21 pm

Thanks Patrick, this is what I desperately need at the moment.
Good thinking.

James 26 Feb 2008 at 3:24 am

Nice plugin Patrick!

In response to Matthew, if you’re looking to geotarget your affiliate links for specific products, there’s a great site called LinkSprinkler where you just set different URLs for different countries, and then copy and paste their link URL onto your page. Whenever someone clicks the link, it sends them to the page you specified for their country, or to the default URL if they’re from a country with no URL specified.

I use it myself to send people to Amazon USA, CA and UK and it works really well, and gives your affiliate income a nice boost!

Sagem 09 Apr 2008 at 5:24 pm

Does this work with the new WP and more importantly with the new Ebay Network?

Patrick Altoft 09 Apr 2008 at 5:26 pm
Find me on Twitter

It is untested with either so far but it is pretty easy to customise for networks other than ebay so it should be fine.

More comments from Patrick Altoft
fields marshall 15 May 2008 at 2:49 am

Very Cool Plugin.

I going to tweak it abit to make it work like that landing sites plugin – which never worked for me

I am just going to try and keep people on a webpage a bit longer by saying you searched for xxx on google

anyways nice job thanks

Anders 06 Jun 2008 at 4:12 pm

I must say this is a very nice plugin. I was having nightmares with integrating SE keywords into my pages… then I stumbled on your great plugin and decided to whack up a blog to side-support my main site.

Great work and Thanks!

patrickd 02 Sep 2008 at 8:57 am

this is a great plugin. thank you!

derek 21 Apr 2009 at 1:16 am

how to use this plugin with amazon?

Blogging Posts 17 May 2009 at 3:26 am

It used great, i have add it to my blog site, the keywords have afflilie links and visitor click it, buy sometings, I will get money. hehe

{ 5 trackbacks }

links for 2008-02-08
02.08.08 at 12:28 pm
13 Great Articles - February 10, 2008 | My lucky number 13
02.10.08 at 9:23 pm
Sunday Quickies: 10 February - Lost Art Of Blogging
02.11.08 at 5:06 am
6 Wordpress Plugins That Enhance Your Blog's SMO
02.27.08 at 6:00 am
» Affiliate Plugin for WordPress MarsVenus: A blog about blogging and the current state of the blogosphere.
11.27.08 at 12:19 pm

Leave a Comment (registration is optional)

Registration is free, takes about 5 seconds and is worth doing.

You can use these HTML tags and attributes:
<a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>