Automatic keyword inserting affiliate plugin for Wordpress
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.
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
Visitor searches on Google & clicks on your site

Keywords are turned into an affiliate link

Visitor clicks on the affiliate link
















This is fantastic, Patrick! Cheers
Christian
Christian February 7, 2008 11:34 pm | Reply
ditto! What a brilliant idea. There’s loads of potential here!
Domainholics February 8, 2008 1:01 am |
Replymagical!
Brilliances February 8, 2008 1:03 am | Reply
I might build some new blogs to take advantage of this!
Sucker February 8, 2008 1:50 am | Reply
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.
Matthew February 8, 2008 2:06 am | Reply
Good idea about geotargeting, I added a link above to another of my scripts that does this.
Patrick Altoft February 8, 2008 2:19 am |
ReplyNice 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!
James February 26, 2008 3:24 am |
Reply[…] Automatic keyword inserting affiliate plugin for Wordpress 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. (tags: affiliate marketing blogging wordpress plugin) […]
links for 2008-02-08 February 8, 2008 12:28 pm | Reply
I think I will implement it on my gadgets blog, too.
It should perform nicely.
Alex
Alex Ion February 9, 2008 8:22 am | Reply
Brilliant work Patrick! It’ll definitely come in handy.
Tibi Puiu February 9, 2008 8:52 am | Reply
[…] Automatic keyword inserting affiliate plugin for Wordpress - by Patrick Altoft, saying, “A new plugin for Wordpress that allows you to monetize your […]
13 Great Articles - February 10, 2008 | My lucky number 13 February 10, 2008 9:23 pm | Reply
[…] just released a wonderful new Wordpress plugin, that’s sure to do wonders among affiliate marketers. Basically what the plugin does is it […]
Sunday Quickies: 10 February - Lost Art Of Blogging February 11, 2008 5:06 am | Reply
Thanks for this, it will be very useful!
Flavio Copes February 12, 2008 9:21 am | Reply
Patrick, I wish blogspot could have this one. Most of my blogs are powered by blogger.
weird online February 16, 2008 2:41 pm | Reply
Thanks Patrick, this is what I desperately need at the moment.
Good thinking.
Osita February 21, 2008 11:21 pm | Reply
[…] Automatic Keyword Insertion - This plugin is pure gold for affiliate marketers (especially for niche sites!). 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. […]
6 Wordpress Plugins That Enhance Your Blog's SMO February 27, 2008 6:00 am | Reply
Does this work with the new WP and more importantly with the new Ebay Network?
Sagem April 9, 2008 5:24 pm | Reply
It is untested with either so far but it is pretty easy to customise for networks other than ebay so it should be fine.
Patrick Altoft April 9, 2008 5:26 pm |
ReplyVery 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
fields marshall May 15, 2008 2:49 am | Reply