<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Agitationist &#187; geekery</title>
	<atom:link href="http://agitationist.com/tag/geekery/feed" rel="self" type="application/rss+xml" />
	<link>http://agitationist.com</link>
	<description>served irregularly for your edification</description>
	<lastBuildDate>Fri, 29 Jan 2010 22:25:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to: Display AdSense Ads to Search Engines Visitors Only</title>
		<link>http://agitationist.com/how-to-display-adsense-ads-to-search-engines-visitors-only</link>
		<comments>http://agitationist.com/how-to-display-adsense-ads-to-search-engines-visitors-only#comments</comments>
		<pubDate>Fri, 27 Nov 2009 18:19:23 +0000</pubDate>
		<dc:creator>Agitationist</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[geekery]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://agitationist.com/?p=630</guid>
		<description><![CDATA[The problem. It’s a known fact that regular visitors don’t click on ads. Those who do click on ads are, 90% of the time, visitors coming from search engines.
Another problem is Google’s “smart pricing.” Being smart priced means that your click-through rate (CTR) is low and the money you earn per click is divided by [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The problem</strong>. It’s a known fact that regular visitors don’t click on ads. Those who do click on ads are, 90% of the time, visitors coming from search engines.</p>
<p>Another problem is Google’s “smart pricing.” Being smart priced means that your click-through rate (CTR) is low and the money you earn per click is divided by between 2 and 10. For example, if a click would normally earn you $1.00, with smart pricing it could earn you as little as $0.10. Painful, isn’t it? Happily, this solution displays your AdSense ads to search engine visitors only, which means more clicks and a higher CTR.</p>
<p><strong>The solution</strong>.</p>
<ol>
<li>Open the <em>functions.php</em> file in your theme.</li>
<li>Paste the following code in it:
<pre class="brush: php;">function scratch99_fromasearchengine(){
  $ref = $_SERVER['HTTP_REFERER'];
  $SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
  foreach ($SE as $source) {
    if (strpos($ref,$source)!==false) return true;
  }
  return false;
}</pre>
</li>
<li> Once done, paste the following code anywhere in your template where you want your AdSense ads to appear. They’ll be displayed only to visitors coming from search engine results:
<pre class="brush: php;">if (function_exists('scratch99_fromasearchengine')) {
  if (scratch99_fromasearchengine()) {
    INSERT YOUR CODE HERE
  }
}</pre>
</li>
</ol>
<p><strong>Code explanation</strong>. This hack starts with the creation of a function called <code>scratch99_fromasearchengine()</code>. This function contains a <code>$SE</code> array variable in which you can specify search engines. You can easily add new search engines by adding new elements to the array.</p>
<p>The <code>scratch99_fromasearchengine()</code> then returns <code>true</code> if the visitor comes from one of the search engines containing the <code>$SE</code> array variable.<br />
<span style="color: #000000;"><br />
</span> <span style="color: #000000;">Sources: <a rel="nofollow" href="http://www.scratch99.com/2008/09/avoid-smart-pricing-show-adsense-only-to-search-engine-visitors" target="_blank">1</a>, <a rel="nofollow" href="http://www.wprecipes.com/how-to-display-adsense-to-search-engines-visitors-only" target="_blank">2</a>, <a rel="nofollow" href="http://www.smashingmagazine.com/2009/01/07/10-killer-wordpress-hacks/" target="_blank">3</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://agitationist.com/how-to-display-adsense-ads-to-search-engines-visitors-only/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
