Features
- Display to the visitor coming from search engines a message based upon what they’re searching for
Introduction
I created a Wordpress plugin released under the GNU GPL Licence that can be used to correlate the keywords used to find your page on the search engines to a box where you can put anything you want, for example your affiliate marketing links, a link to something you want your visitor to read, or a “hello” to the visitor.
We all know from our site stats what our visitors are searching for on our site. Sometimes they come looking for something that isn’t there. So, you can leave them a personalized message.
Otherwise, you may be looking for ways to monetize your site: this plugin is fantastic for this, because it gives you the opportunity to display some tematic links (quite in a Adsense way, but you control it). You can send affiliate marketing links to the visitor interested in them.
This is my first Wordpress plugin, so any suggestion is welcome. Please leave a comment this page if you find it useful.
How does it work?
It doesn’t address a single page, but all the pages that are listed in the search engine SERPs for that particular key.
Thanks to the functions written by Thomas Silkjær in his Landing Sites WP plugin, the plugin finds out what keyword the visitor typed in the search engine form to get to the site.
In the administrator panel, you can set the keywords to search for, and the message you want to display, written in XHTML. You can then style it as you want using your CSS file, adding some selectors for the div #copesSearchEngineKeywordPlugin.


How to install
Download the Search Engine Keywords Wordpress Plugin
Download the plugin, then unarchive it and install it by uploading the CopesSearchEngineKeywordPlugin directory to your Wordpress installation, in the wp-content/plugins directory.
Then activate it from the administrator panel Plugins.
In order to get this plugin to work, you have to put these lines in your template, wherever you want your message to appear. To give it a great visibility, I suggest to put it at the end of the header.php file, so that the message will be displayed before the post.
<div id="copesSearchEngineKeywordPlugin">
<?php if (class_exists("CopesSearchEngineKeywordsPlugin")) {
$copesSEK = new CopesSearchEngineKeywordsPlugin();
echo $copesSEK->addContent();
}
?>
</div>
Hope you like it!
Download the Search Engine Keywords Wordpress Plugin
Changelog
2008-08-28 Plugin hosted by WordPress.org
2008-08-23 Version 1.1: Fixed an issue that prevented from inserting links in the text, escaping them.
2008-02-20 Version 1.0: Stable Release
Tags: Affiliate Referral, Keywords, Search Engine, Wordpress, Wordpress Plugin

February 21st, 2008 at 10:36 am
We have to add each keyword. Damn, I’ve so many.
Next time add a funtion to display the same message for all keywords.
With %vars like %google %yahoo %url %blogname, etc.
Rui
February 21st, 2008 at 5:33 pm
This is not what the plugin is meant to be, but thanks for the hint.
If you want to display the same message for all the keywords, use the Landing Sites plugin (you can find the link in the above post). Just put in your template the lines
< ?php if (ls_getinfo(‘isref’)) { ?>
Message
< ?php } ?>
February 29th, 2008 at 5:43 pm
I like your blog theme. I want to use it on my blog.
Can you please tell me from where I can download these theme?
Many thanks
——————————————————————————–
Dan owner of the future gadgets blog future gadgets and inventions
February 29th, 2008 at 6:56 pm
Hi Dan, this is a theme I designed from scratch, i’m sorry but it’s not publicly available.
I’m happy you like it
March 5th, 2008 at 6:14 pm
Will it not ban you from adsense? You use script to change content to adjust ads on your site. I’d rather ask guys from adsense if it’s ok.
March 5th, 2008 at 6:51 pm
Hi, I don’t know the policy of adsense, since I don’t use it. Affiliate marketing is a different thing.
Adsense itself changes the content to adjust ads based on the content of the page, why wouldn’t it be ok to do it?
March 5th, 2008 at 6:59 pm
Because you adjust page dynamically to the viewer. I don’t know the exact policy of adsense but my friend was banned for displaying content based on keywords searched.
I’ve to admit that I didn’t have time to use your plugin (will do tomorrow) and can’t tell more but the idea is very good.
March 5th, 2008 at 7:38 pm
In that case, if you use adsense it’s better not to use this plugin.
Thanks for your appreciation
March 11th, 2008 at 9:58 am
Interesting! I’m really helped. It’s really smart idea. Do you know you can make your blog more popular? maybe I can help you, you may contact me at anytime you want.
Cheers
March 19th, 2008 at 12:40 am
Hi,
i must admit that i’ver never seen it this way.
But to succeed with making money online, i ‘d strongly advice that you get yourself a treasure map - a roadmap to Affiliate success …*-)
Michael
March 21st, 2008 at 3:08 am
I wanna have a try, thanks for ur contribution!
May 30th, 2008 at 4:31 am
[...] Wordpress Plugin: Search Engine Keywords Features. Display to the visitor coming from search engines a message based upon what they re searching for; Introduction. I created a Wordpress plugin released under the GNU GPL [...]
June 14th, 2008 at 6:47 am
The plugin sounded cool until I saw that you had to add keywords manually. What’s the point of that? Why can’t u just use something like to display the keywords that were used to find your site? It would make it alot easier rather than adding keywords manually. So you could use a line something like this:
You found this page by searching for “”.
I think that would make alot more sense..
June 14th, 2008 at 6:48 am
Oops forgot to space php tags in previous comment..
The plugin sounded cool until I saw that you had to add keywords manually. What’s the point of that? Why can’t u just use something like to display the keywords that were used to find your site? It would make it alot easier rather than adding keywords manually. So you could use a line something like this:
You found this page by searching for “”.
I think that would make alot more sense..
June 14th, 2008 at 6:49 am
Bah still didn’t work, the line should be something like:
? php search_keywords(); ?
nice and simple
June 14th, 2008 at 1:10 pm
That’s not what the plugin is meant to be. You’re looking for a feature that is well provided by the Landing Sites plugin I talk about in the post.
This is meant to be a plugin that you can use to display something when a certain keyword (or keywords) is used to find that page.
June 23rd, 2008 at 9:30 pm
Thanks for the info…Ill make sure to look into that more!
July 26th, 2008 at 5:22 pm
What a great plugin! Thank you!
May I only request one bug-fix/feature?
When I enter ” in the XHTML code form it gets translated to \”
So effectively I cannot add any links…
August 28th, 2008 at 8:36 pm
Search Engine Keywords…
Display to the visitor coming from search engines a message based upon what they’re searching for….
September 2nd, 2008 at 3:24 pm
Good plugin. Thank you.
September 3rd, 2008 at 11:32 pm
most of my own feature requests have been addressed above - I couldn’t get Landing Sites to work in WP 2.6 myself - thx
September 20th, 2008 at 10:00 pm
hi,
thanks.
October 18th, 2008 at 12:19 am
[...] Search Engine Keywords: Display to the visitor coming from search engines a message based upon what they’re searching [...]
November 25th, 2008 at 10:49 am
Hey Copes,
I’m not understand how to use this plugin.
I was Actived the plugin and I was place code :
addContent();
}
?>
into my bottom of header.php but I don’t look some keyword display from that’s plugin.. What matter of this???
How about if my visitor come from Google indonesia or Google.co.id and input some keyword in google.co.id search engine and find my website and him click my url link website.
Doesn’t the plugin display the keyword of google.co.id visitor type text in search engine form into my website page…??
Please hope… and Thanks Before…
Ferri
November 25th, 2008 at 10:51 am
oh ya and my wordpress is version 2.6..
and i don’t look landing site in my page like R. Richard Hobbs comments..
November 30th, 2008 at 3:28 pm
Hello,
Excellent idea. Thanks for sharing!
I would like to suggest a couple things to make it, hopefully, better:
1) General improvement for the admin section: More user-friendly.
2) Easier way to add keywords (less clicks, please!)
3) If I put code into a new keyword, and I click on ADD A NEW KEYWORD, it added the new blank space for the new keyword… but the previously updated/created loses its changes (did it makes sense?). I would expect it to FIRST update the code entered and THEN create a new blank space for a new keyword.
4) Adding AJAX would make it far more usable
5) I know it was not intended to be use that way but it would be great if we have a %KEYWORD% variable available to be included in the code.
Thanks all for now!!! Once again… It’s a EXTREMELLY helpful plugin.
Two Thumbs Up!
All Best,
Will