Perennial Weblog Tools Collection community favorite Who Sees Ads can be used to show ads only to certain visitors – such as people who have arrived on your site from a search engine. It’s a useful way to improve your click-through-ratio, and please your regular readers by hiding ads from them.
This is a quick introduction to using the plugin. Showing ads only to search engine visitors is extremely simple – Who Sees Ads can do much, much more. Check out the links at the end of this article for more information.
NOTE: Although the plugin says it’s for WordPress 2.5, it works fine with WordPress 2.92. I haven’t been able to test it with 3.0 yet because I don’t have any 3.0 test sites indexed in any search engines yet. Anyone else know if it works with 3.0?
If you don’t want to do this with a plugin, you can do it with some simple PHP, see here.
1. Install and activate Who Sees Ads.
NOTE: If you use WordPress Firewall (and I recommend you do), you’ll need to deactivate it while you install, activate, and configure this plugin.
2. Click “Who Sees Ads” under “Settings” on the dashboard.
3. Under “Edit Contexts” type a name for your context, preferably something descriptive like “Search Engines Only.”
4. Drag the “if Visitor comes from a search engine then Display” box from the “Possible Rules” box to the “Active Rules” box.
5. Paste the code for your ad (from Adsense or wherever) into the “Ad Code” box.
6. Under “Edit Context” select the context your just created. Code for your new context should appear. You can now copy and paste this into posts or into your theme templates.
That’s all you need to do to get this very simple configuration to work – but wouldn’t it be nice if you could drop that PHP code into a widget? You can, but you’ll need another plugin for that.
7. Install and activate Samsarin PHP Widget – this plugin allows you to add widgets to your sidebar that can execute PHP code.
8. Go to “Widgets” under “Appearance” on the dashboard.
9. Drag an instance of Samsarin PHP Widget to your sidebar and position it where you want the ads to appear.
10. Paste the code from step 6 in the widget.
Don’t forget to turn WordPress Firewall back on if you turned it off.
For a look at some other things you can do with this plugin:
And of course visit the plugin homepage for even more documentation and ideas!