Increase Adsense Earnings by Showing Ads Only To Search Engine Visitors

If you monetize your WordPress based site using adsense or any similar advertising programs, then you should consider showing ads only to search engine visitors. This is because of two very related things,

Firstly, people coming through search engines are more likely to click on ads as they are generally looking for a solution to a problem. Secondly, if you get too many clicks from non-search engine visitors, Google will smart-price your site. This means that you will get very less earnings per click. Google do this to make sure that the advertisers get proper return on their investment(ROI).

Considering these factors, you should definitely consider displaying ads only to search engine visitors. Here’s how to do it,

First copy the following code snippet and paste it into your functions.php file. You can find functions.php file in your theme folder.

function adsforSEvisitors(){
$ref = $_SERVER['HTTP_REFERER'];
$SEs = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
foreach ($SEs as $source) {
if (strpos($ref,$source)!==false) return true;
}
return false;
}

$SEs is an array that has all the popular search engines. You can add/remove search engines by editing elements of $SEs array.

After pasting the above code in functions.php file, use the following code in the template files, wherever you want the ad to be displayed.

if (function_exists('adsforSEvisitors')) {
if (adsforSEvisitors()) {
//INSERT YOUR AD CODE HERE
}
}

Just insert the ad code below the comment that says,

 //INSERT YOUR AD CODE HERE

That’s it. Now the ads will be displayed only to search engine visitors.

I am using this trick on a two of my sites that are monetized using adsense, and I saw a clear increase in CTR, CPC and total earning. If you decide to test this hack on your site, then please consider sharing your experience with us using the comments form below.

Best wishes for your adsense sites!

share on twitter

Leave a Reply