Wordpress Hack Series : Increasing Adsense CTR by Limiting Adsense Displayed TV Show
|
Wordpress Hack Series : Increasing Adsense CTR by Limiting Adsense Displayed Online |
Name: Wordpress Hack Series : Increasing Adsense CTR by Limiting Adsense Displayed Type: Run Time: Seasons:
|
Wordpress Hack Series : Increasing Adsense CTR by Limiting Adsense Displayed Summary :
Problem Background. Since Google applied smart pricing system to protect to protect advertiser ROI by automatically adjusting the cost of a contextually-targeted content network click based on its effectiveness compared to a search click, many Google adsense publisher loose their high income. For example usually they can get $1 per click, now its just only $0,10 per click ( read more at Google Adwords Blog ).
In this [bst] blog I quote Problogger. Problogger explained about what is smart pricing, here some summary about smart pricing is :
Smart Pricing is an attempt by Google to give Advertisers value for money and to guard against click fraud. One of the dangers of Adsense is that publishers set up temporary, trashy and/or un-authoritative pages of content on topics that they know attract high paying ads. Clicks on such pages (whether fraudulent or not) are not really good value for advertisers.
Smart Solution : Limiting adsense by displaying the ads for Search Engine Visitor only. It’s a fact: People who click on your ads are people comming from search engines, not regular readers. In order to avoid being “Smart Priced” by Google Adsense, you should definitely display ads to search engines visitors only.
How we can do that? we can create some script to detect if visitor came from SE, the ads will show but when its a regular people (direct traffic), the ads will hiding or you can another ads like CPM Ads, that can give you another revenue.
This script is originaly created by Scratch99, thank you for post this nice script, so here we go :
- Open your functions.php, usually located on your wp theme (wp-content/themes/yourtheme folder). If you dont have, you can create one and after you can put the code like this :
- Put this code below, wherever you want to put in ( sidebar, index, etc )
- Now its time to add your new function to your theme or using sidebar widget by calling the function name, here we go :
<?
function scratch99_fromasearchengine(){
$ref = $_SERVER['HTTP_REFERER'];
$SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.', 'imfreakz.com');
foreach ($SE as $source) {
if (strpos($ref,$source)!==false) return true;
}
return false;
}?>
Note: This function is based on the ‘only show search engine’ functionality from the Who Sees Ads plugin.
Replace the imfreakz.com word to your domain, to solve the litle problem since if you not put your own domain there, function only works on the first page the visitor lands on. If the visitor subsequently navigates to another page on your site, the ads disappear. This is because the http_referer is no longer the search engine, it’s now the page where they landed on your site.
Of course, that means they no longer have the option to click an ad before leaving the site. I wasn’t worried about this, because I figured not many search engine visitors would go to another page on my site. I was wrong! After that upload your edited file and overwrite the original file.Place anywhere you’ve put the ads
<? if(scratch99_fromasearchengine()) { //if the function return true ?>
PUT YOUR ADSENSE CODE HERE<? } else { PUT YOUR ANOTHER ADS HERE } ?>
The good thing are you can add your other ads like CPM ads so that can give you another income
Using Sidebar Widget
<?php if (function_exists('scratch99_fromasearchengine')) {} else { PUT YOUR ANOTHER ADS HERE }
if (scratch99_fromasearchengine()) { ?>
INSERT YOUR ADSENSE CODE HERE
<?php} ?>
Testing The Changes
This applies to both hacks above. You should no longer be able to see Adsense on your site when you visit it as you normally do. Now you need to visit your site via a search engine to see if the ads appear.
You could do this by searching for your site name or url, or you could search for a relatively obscure phrase from one of your posts, contained in quote marks (eg “I’ve concluded that I wasn’t already smart priced”).
Once you find one of your posts in the search results, click it, go to your site and see if ads appear. If they do, you’ve hacked the plugin successfully.

