<?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>More Than Scratch The Surface &#187; blogger</title>
	<atom:link href="http://www.scratch99.com/tag/blogger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scratch99.com</link>
	<description>A Journey In Web Development</description>
	<lastBuildDate>Mon, 30 Aug 2010 23:52:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Show Adsense To Search Visitors Only &#8211; On Blogger</title>
		<link>http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/</link>
		<comments>http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 13:14:53 +0000</pubDate>
		<dc:creator>Stephen Cronin</dc:creator>
				<category><![CDATA[Monetization]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[make money online]]></category>
		<category><![CDATA[smart pricing]]></category>

		<guid isPermaLink="false">http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/</guid>
		<description><![CDATA[Copyright © 2010 Stephen Cronin. Visit the original article at http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/.Want to make money online with Google Adsense? If so, you better make sure you don&#8217;t get smart priced! One of my most successful posts covers how to avoid smart pricing by only serving Adsense to search engine visitors. That post was written for the [...]]]></description>
			<content:encoded><![CDATA[Copyright © 2010 <a href="http://www.scratch99.com">Stephen Cronin</a>. Visit the original article at <a href="http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/">http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/</a>.<br /><p>Want to <a href="http://dittorahmat.com" target="_blank">make money online</a> with Google Adsense? If so, you better make sure you don&#8217;t get <a href="http://www.scratch99.com/2008/01/avoid-adsense-smart-pricing-on-blogs/">smart priced</a>! One of my most successful posts covers <a href="http://www.scratch99.com/2008/09/avoid-smart-pricing-show-adsense-only-to-search-engine-visitors/" target="_blank">how to avoid smart pricing</a> by only serving Adsense to search engine visitors. That post was written for the WordPress platform. In this post, I outline how to do the same on Blogger blogs (although there are severe limitations).</p>
<h2>Why Only Show Adsense To Search Visitors?</h2>
<p>First, why are we doing this? The main reason for showing Adsense to search visitors only, is to try to avoid <a href="http://www.scratch99.com/2008/01/avoid-adsense-smart-pricing-on-blogs/">smart pricing</a>. I won&#8217;t go over smart pricing again (go read the above post in detail), but here&#8217;s the brief summary:</p>
<p>Smart Pricing is a penalty Google applies to Adsense accounts that don&#8217;t convert well for the advertiser and results in you earning only about 10% of what you&#8217;d normally earn per click. Search engine visitors provide <strong>targeted traffic</strong> for the advertiser, <strong>which converts well</strong> (no problem). Regular readers and social networks visitors provide untargeted traffic, which doesn&#8217;t covert well, increasing your chances of being smart priced (problem).</p>
<p>After reading Grizzly&#8217;s recent post on <a href="http://makemoneyforbeginners.blogspot.com/2009/01/making-money-online-anonymously.html" target="_blank">making money online anonymously</a>, I learnt that it&#8217;s even more complicated than that. Grizzly, who&#8217;s a master of <strong>making money online</strong>, reveals that when he writes a post his CPC (Cost Per Click) drops for a couple of days:</p>
<blockquote>
<p>Whenever I post I get a surge of traffic &#8211; the surge is un-targeted (my readers) and my CPC drops for several days until readers tail off. As long as my ad impressions stay above the 3000 barrier my CPC doesn&#8217;t drop more than 10 cents a click. If my ad impressions fall below the 3000 barrier I see a 30 cent drop in earnings per click. </p>
</blockquote>
<p>Grizzly also says that his CPC dropped when he received a <strong>surge of traffic</strong> from a forum. It follows that the same would happen when you receive a surge of traffic from the social networks (ie Digg, StumbleUpon, etc).</p>
<p>It may be that this phenomenon is separate to smart pricing, or it may be that it&#8217;s actually a part of smart pricing and that <strong>smart pricing is far more complex than anyone has guessed</strong>.</p>
<p>Either way, showing Adsense to search engine visitors only should ensure that Adsense units are only served to <strong>targeted traffic</strong>, which should protect your CPC and help you <strong>make more money</strong>. </p>
<h2>Serving Adsense Only To Search Visitors on Blogger</h2>
<p>I&#8217;ve already covered how to display Adsense units only to search visitors for WordPress and I actively use the method on this blog. However, I also have a few Blogger blogs (and Grizzley&#8217;s site is on Blogger), so I started wondering how to <strong>show Adsense only to search traffic on Blogger</strong>. </p>
<p>With WordPress it&#8217;s easy. You can use PHP on the server side to detect where the visitor came from, then decide whether to include the Adsense code. If they came from a search engine, the Adsense code is added to the HTML sent to the browser. If they came from somewhere else, then it&#8217;s not.</p>
<p>However, with Blogger, it&#8217;s not possible to detect where the user came from on the server side. The only option is to use JavaScript, on the client side, to a) detect where the user came from and b) show the Adsense code or not.</p>
<h2>Part A &#8211; Detecting Search Engine Visitors</h2>
<p>Detecting search engine visitors is relatively easy. We can use JavaScript&#8217;s document.referrer to work out where the user came from. Converting the code I used for the PHP in JavaScript, we can do something like:</p>
<pre class="brush: jscript;">
&lt;script type='text/javascript'&gt;
//&lt;![CDATA[
var ref = document.referrer;
var se = new Array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
var sevisitor = false;
for (var i = 0; i &lt;= se.length-1; i++) {
	if (ref.indexOf(se[i])!== -1) {
		var expiry = new Date ();
		expiry.setTime(expiry.getTime() + 3600000);
		document.cookie = &quot;sevisitor=1; expires=&quot; + expiry + &quot;; path=/; domain=scratch99.com&quot;;
		sevisitor = true;
	}
}
//]]&gt;
&lt;/script&gt;
</pre>
<p><strong>Note: In the document.cookie line, you must change &#8220;.scratch99.com&#8221; to your own domain!</strong></p>
<p>This code detects whether the user arrived from one of a number of search engines and, if so, sets a variable called &#8216;sevisitor&#8217; to true. It also creates a cookie, so these visitors can be identified if they subsequently navigate to another page (they will no longer appear to have come from a search engine).</p>
<p>We&#8217;ll use the variable or cookie later to decide whether we&#8217;re going to display Adsense.</p>
<p><strong>So where does this code go?</strong> We only need this code once on the page, regardless of how many Adsense units we show, so we&#8217;ll put it at the top. The bad news is that it doesn&#8217;t work if you try to add it via a Blogger gadget, so we&#8217;ll have to add it to the template itself, as follows:</p>
<ul>
<li>In Blogger, go to Layout, then choose Edit HTML </li>
<li>Make a backup of your template by clicking Download Full Template </li>
<li>Click Expand Widget Templates </li>
<li>Search for &lt;title&gt;&lt;data:blog.pageTitle/&gt;&lt;/title&gt; (near the top somewhere) </li>
<li>Place the code above on the line immediately below this. </li>
<li>Save the template </li>
</ul>
<p>Your blog should now be setting the variable and the cookie. </p>
<h2>Part B &#8211; Showing Adsense To Search Visitors</h2>
<p>Next we need to detect whether the variable and cookie are set and, if so, show the Adsense unit. To check whether they&#8217;re set, we&#8217;re going to use the following code:</p>
<pre class="brush: jscript;">
var results = document.cookie.match ( '(^|;) ?sevisitor=([^;]*)(;|$)' );
if (sevisitor == true || results[2] == 1) {
</pre>
<p>Put this together with your Adsense code and it should look something like this:</p>
<pre class="brush: jscript;">
&lt;script type='text/javascript'&gt;
//&lt;![CDATA[
var results = document.cookie.match ( '(^|;) ?sevisitor=([^;]*)(;|$)' );
if (sevisitor == true || results[2] == 1) {
	var adsenseString = &quot;&lt;div style=\&quot;float: left;\&quot;&gt;\n&quot;;
	adsenseString += &quot;&lt;script type=\&quot;text/javascript\&quot;&gt;&lt;!--\n&quot;;
	adsenseString += &quot;google_ad_client = \&quot;pub-xxxxxxxxxxxxxxxx\&quot;;\n&quot;;
	adsenseString += &quot;google_ad_host = \&quot;pub-xxxxxxxxxxxxxxxx\&quot;;\n&quot;;
	adsenseString += &quot;google_ad_slot = \&quot;xxxxxxxxxx\&quot;;\n&quot;;
	adsenseString += &quot;google_ad_width = 336;\n&quot;;
	adsenseString += &quot;google_ad_height = 280;\n&quot;;
	adsenseString += &quot;//--&gt;\n&quot;;
	adsenseString += &quot;&lt;\/script&gt;\n&quot;;
	adsenseString += &quot;&lt;script type=\&quot;text/javascript\&quot;\n&quot;;
	adsenseString += &quot;src=\&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js\&quot;&gt;\n&quot;;
	adsenseString += &quot;&lt;\/script&gt;\n&quot;;
	adsenseString += &quot;&lt;\/div&gt;\n&quot;;
	document.write(adsenseString);
}
//]]&gt;
&lt;/script&gt;
</pre>
<p><strong>You&#8217;ll have to replace the xxxx&#8217;s with the appropriate numbers from your Adsense code</strong> and you&#8217;ll have to change any other details (such as ad width and height if you&#8217;re not using a large rectangle).</p>
<div class="csstextbox1">There&#8217;s no need to replace special characters with HTML entities, as mentioned in my post on <a href="http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/">showing Adsense within the post body</a>. In fact, that won&#8217;t work in this case.</div>
<p>What this script does is first check whether the variable or the cookie is set and if so, builds a string containing the Adsense code, then writes it. We have to build a string then write it, because there&#8217;s an external script called by the Adsense code. If there wasn&#8217;t an external script called, we could just strip the &lt;script&gt; tags and put the code in directly.</p>
<p><strong>Where does this code go?</strong> The answer is wherever you want it, but it has to be in the template, as follows:</p>
<ul>
<li>In Blogger, go to Layout, then choose Edit HTML </li>
<li>Make a backup of your template by clicking Download Full Template </li>
<li>Click Expand Widget Templates </li>
<li>Find where you want to put the ad unit and place your code near this. </li>
<li>Save the template </li>
</ul>
<p><strong>Here are some suggestions</strong> for where you might like to put the Adsense unit:</p>
<ul>
<li>At the top of the post body: Place it on the line after &lt;data:post.body/&gt; (or &lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;). </li>
<li>Before the post title: Place it on the line before &lt;b:includable id=&#8217;post&#8217; var=&#8217;post&#8217;&gt; </li>
<li>At the top of the sidebar: Place it on the line after &lt;b:section class=&#8217;sidebar&#8217; id=&#8217;sidebar&#8217; preferred=&#8217;yes&#8217;&gt; </li>
</ul>
<p>Remember, according to Google&#8217;s Terms Of Service, you can only have 3 Adsense units on a page (plus 3 link units), so make sure you don&#8217;t put this in too many places. You don&#8217;t want to be <strong>banned from Adsense</strong>.</p>
<h2>Why In The Template?</h2>
<p>You might think you could save yourself the trouble of editing the template by using HTML/JavaScript gadgets that can be added via Layout &gt; Page Elements.</p>
<p>Save yourself the time and don&#8217;t bother. These gadgets are extremely fussy. CDATA doesn&#8217;t work, the code you paste in mysteriously changes, using htmlentities doesn&#8217;t help. </p>
<p>And before anyone asks, there is no way this can work with the built in Adsense gadgets. The only way seems to be through the template. </p>
<h2>Is It Worth It?</h2>
<p>This obviously takes a while to set up and only you can decide whether it&#8217;s worth it to you. It really depends on whether you&#8217;re likely to get <strong>smart priced</strong>. I&#8217;m not going to bother, as 99 percent of traffic on my Blogger blogs are search engine visitors to start with, so I&#8217;m unlikely to get smart priced. </p>
<p>If one of my Blogger blogs morphs into something similar to this blog, with regular readers and social traffic, then I&#8217;ll definitely shift all of the Adsense units into the template and show them only to search engine visitors.</p>
<p>I&#8217;d highly recommend you do some testing&#160; (remembering it takes about a week for smart pricing to be removed) and base your decision on that. Remember, this is all about <strong>making money online</strong>.</p>
<h2>The IFrame Solution</h2>
<p>After writing much of this post, I came across an alternative solution from Rhys, which places <a href="http://biznz.org/monetize-your-site/how-to-hide-adsense-from-social-traffic/" target="_blank">Adsense within an IFrame</a>. This gets around the problems mentioned above and should allow you to use the HTML/JavaScript widget. </p>
<p>However, although this is much easier, I&#8217;m slightly hesitant to recommend it. It seems to me that when the Adsense bot goes looking at the page that the Adsense unit is displayed on, it will crawl the IFrame, rather than the real page, meaning the ads may not be relevant. However, it seems to work for Rhys, so I&#8217;ll leave you to make up your own mind.</p>
<h2>Final Thoughts</h2>
<p>Google Adsense is one of the best <a href="http://dayjobnuker.com/" target="_blank">ways to make money online</a>, but you have to make sure that you&#8217;re not <strong>smart priced</strong>. Don&#8217;t just believe what I&#8217;m saying &#8211; go and test it out. It&#8217;s definitely worth looking into, because it can help you <a href="http://www.internetmoneymaster.com/">make extra money</a>.</p>
<script type="text/javascript">Nifty("div.csstextbox1","bgcolor-#FFFFFF");</script>]]></content:encoded>
			<wfw:commentRss>http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Blogger &#8211; How To Add Adsense Inside Single Posts Only</title>
		<link>http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/</link>
		<comments>http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:21:59 +0000</pubDate>
		<dc:creator>Stephen Cronin</dc:creator>
				<category><![CDATA[Monetization]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[make money online]]></category>

		<guid isPermaLink="false">http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/</guid>
		<description><![CDATA[Copyright © 2010 Stephen Cronin. Visit the original article at http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/.I was recently optimizing Adsense on one of my Blogger sites and decided I wanted to place Adsense inside the posts &#8211; but only on single posts, not on the home page or in the archives. Here&#8217;s how. Why Blogger? Although my primary blog platform [...]]]></description>
			<content:encoded><![CDATA[Copyright © 2010 <a href="http://www.scratch99.com">Stephen Cronin</a>. Visit the original article at <a href="http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/">http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/</a>.<br /><p>I was recently optimizing Adsense on one of my Blogger sites and decided I wanted to <strong>place Adsense inside the posts</strong> &#8211; but <strong>only on single posts</strong>, not on the home page or in the archives. Here&#8217;s how.</p>
<h2>Why Blogger?</h2>
<p>Although my primary blog platform is WordPress, I do occasionally use Blogger for some side projects. Why? Go and read everything that Grizzley&#8217;s written on his <a title="How to Make Money Online for Beginners" href="http://makemoneyforbeginners.blogspot.com/" target="_blank">Make Money Online For Beginners</a> site. Blogger can be an excellent option. It&#8217;s free, easy to create a site, can scale to handle massive traffic etc. </p>
<p>The only downside to Blogger is the limited ability to customize the site. With WordPress I can change pretty much anything I want. With Blogger I can only change things within the narrow framework that Blogger allows. In this case, I ran into the limitations with the built-in options to display Adsense ads.</p>
<h2>Blogger&#8217;s Built In Options To Display Adsense</h2>
<p>The easiest way to add Adsense to a Blogger blog is via the built-in gadget. I won&#8217;t go through the whole process, as it&#8217;s <a title="How to add Adsense to Blogger" href="http://alfred.co.in/how-to/how-to-add-adsense-to-blogger/" target="_blank">written about elsewhere</a>, but you can add an Adsense gadget in the same way you can add a Profile gadget, Text gadget, Poll gadget, etc. Just go to Layout, then Page Settings, then click on Add a Gadget, select the Adsense gadget and then configure it.</p>
<p>The first time you use it, Blogger will ask you for your Adsense publisher number and link the blog to your Adsense account. Then you simply decide where you want the gadget to appear, what size and colour the ads should be and you&#8217;re off! You&#8217;re ready to start <a title="Beginners Guide To Making Money On The Internet" href="http://makinginternetmoneyforbeginners.blogspot.com/" target="_blank">making money online</a>.</p>
<p>You can also add <strong>Adsense between posts</strong>. To do this, click Edit on the Body gadget and turn on the Show Adsense Between Posts option. You&#8217;ll then be presented with the same options that the gadget gives you (size, colour etc).</p>
<h2>Limitations With Built-In Options</h2>
<p>There are several limitations to using Blogger&#8217;s built-in Adsense gadget:</p>
<h3>1. Can&#8217;t Put Adsense Ads Within Posts</h3>
<p>The main limitation with using the built-in Adsense gadget is that you <strong>can&#8217;t place ads within a post</strong>. You can add them before posts, after posts, between posts, in the sidebar, but not in the actual post. </p>
<p>It&#8217;s well known that the CTR (click through rate) is higher for ads within a post than for ads in other positions. So putting Adsense within a post will <a title="Find Your Christian Online Business Opportunity" href="http://www.onlinechristianbusinessopps.com" target="_blank">make more money</a> for you. I cover how to do this below.<b></b></p>
<h3>2. Can&#8217;t Use Channels</h3>
<p>Another limitation of the built-in Adsense gadget is that you can&#8217;t use channels to track the performance of ad units. </p>
<p>However, this isn&#8217;t really a limitation &#8211; if you want to use channels, simply create your code on the Adsense site, then copy and paste your Adsense code into a JavaScript gadget, instead of using an Adsense gadget. In all other ways it will work the same as the Adsense gadget. </p>
<h3>3. Blogger Only Shows Three Ad Units</h3>
<p>The last limitation is only an issue for those people who place an <strong>Adsense unit in the sidebar</strong>. Some people choose not to do this, but I find that an Adsense unit in the sidebar performs relatively well (not as good as units at the top of the page, but better than those lower down the page). </p>
<p>The problem is that Google makes sure that <strong>only three ad units are displayed</strong> on a Blogger page, as per their Terms Of Service. Great in general, but it means you have less control over which ad units appear. Unfortunately the sidebar is rendered last in most templates, so it&#8217;s one of the units that disappear if there are too many units on the page. </p>
<p>This won&#8217;t happen on the single post page. However, if you display ads between posts (or within posts) then the <strong>sidebar ad unit will disappear</strong> on pages with multiple posts, such as the home page and archive pages. I explain how to overcome this below.</p>
<h2>Adsense Within Posts</h2>
<p>As I mentioned above, you can&#8217;t place <strong>Adsense ads within the post body</strong> using the built-in gadgets. To do this, we&#8217;re going to have to put our Adsense code directly into the template. </p>
<p>We still can&#8217;t put the ad unit in the middle of the post, but we can put it at the top of the post, below the title, with the text wrapping around it. Great! That&#8217;s proven to be the <strong>most effective placement</strong>, so that&#8217;s exactly what we want.</p>
<p>Now, the technique used to do this isn&#8217;t new. In fact I learned how to do it by reading Bonnie Calhoun&#8217;s <a title="Wrapping Adsense in Blog Post" href="http://howcanidothat.blogspot.com/2008/03/wrapping-adsense-in-blog-post.html" target="_blank">Wrapping Adsense in Blog Post</a>. You can go and read her post for the full instructions, but here are the basic steps:</p>
<ol>
<li>Get your Adsense code from the Adsense website </li>
<li><a title="Parsing AdSense HTML For Posts" href="http://howcanidothat.blogspot.com/2007/04/parsing-adsense-html-for-posts.html" target="_blank"><strong>Parse the code</strong></a> to replace special characters with HTML entities </li>
<li>In Blogger, go to Layout, then choose Edit HTML </li>
<li>Make a backup of your template by clicking Download Full Template </li>
<li>Click Expand Widget Templates </li>
<li>Search for <code>&lt;data:post.body/&gt;</code> or <code>&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;</code> </li>
<li>Place your Adsense code on the line immediately above this </li>
<li>Save the template </li>
</ol>
<p><strong>Note 1</strong>: It&#8217;s very important to parse the code as per Bonnie&#8217;s site (ie replace &lt; with &amp;lt; and &gt; with &amp;gt; etc). If you do not do this, your Adsense units will not display correctly and <strong>you risk being banned by Google</strong>.</p>
<p><strong>Note 2</strong>: You probably want to place your Adsense code within a <strong>floating div</strong>, so that the text wraps around it.</p>
<p>Here&#8217;s what the code will look like (with the publisher specific information removed). The first and last lines should already exist in the template, the rest is what you&#8217;re adding.</p>
<pre class="brush: xml;">
&lt;div class='post-body entry-content'&gt;
&lt;div style='float: left;'&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;!--
google_ad_client = &amp;quot;pub-xxxxxxxxxxxxxxxx&amp;quot;;
google_ad_host = &amp;quot;pub-xxxxxxxxxxxxxxxx&amp;quot;;
google_ad_slot = &amp;quot;xxxxxx&amp;quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;
src=&amp;quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&amp;quot;&amp;gt;
&amp;lt;/script&amp;gt;
&lt;/div&gt;
&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;
</pre>
<p>This solves the problem of getting <strong>Adsense to appear within the post</strong>, driving up CTR. However, the <strong>sidebar unit will still disappear</strong> on the home page, as there will be more than 3 units on the page (one embedded in each post).</p>
<h2>Only Showing Adsense In Posts On A Single Post</h2>
<p>To solve the problem of the sidebar unit disappearing, I decided that I only wanted to show Adsense within the post (ie solution in the previous section) <strong>on single posts</strong>. I didn&#8217;t want this ad unit to appear on the home page or on archive pages.</p>
<p>It would be easy enough to do this in WordPress / PHP, but I had no idea <strong>how to customize a Blogger template</strong>. I consulted Blogger&#8217;s Help facility and found a list of <a title="Layouts Data Tags" href="http://help.blogger.com/bin/answer.py?answer=47270&amp;ctx=sibling" target="_blank">Layouts Data Tags</a>, which let me see what could be done. Despite the options being fairly limited, I found the answer I needed: The <strong>pageType tag</strong>, which can have a value of &#8216;item&#8217;, &#8216;archive&#8217; or &#8216;index&#8217;.</p>
<p>My XML coding skills are a little rusty, but thankfully it wasn&#8217;t hard to work out how to include some HTML based on the type of page:</p>
<pre class="brush: xml;">
&lt;b:if cond='data:blog.pageType == &quot;item&quot;'&gt;
PUT YOUR CODE HERE
&lt;/b:if&gt;
</pre>
<p>This says: If it&#8217;s a single post, include the HTML (obviously you have to put it in). So single posts (pageType of item) will display the HTML, but the home page (pageType of index) and archive pages (pageType of archive) will not.</p>
<p>Applying this to our Adsense problem, here is the full code you need (with the publisher specific information removed). Use this instead of the code in the Adsense Within Posts section above. The first and last lines should already exist in the template, the rest is what you&#8217;re adding. </p>
<pre class="brush: xml;">
&lt;div class='post-body entry-content'&gt;
&lt;b:if cond='data:blog.pageType == &quot;item&quot;'&gt;
&lt;div style='float: left;'&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;!--
google_ad_client = &amp;quot;pub-xxxxxxxxxxxxxxxx&amp;quot;;
google_ad_host = &amp;quot;pub-xxxxxxxxxxxxxxxx&amp;quot;;
google_ad_slot = &amp;quot;xxxxxxxxxx&amp;quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;
src=&amp;quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&amp;quot;&amp;gt;
&amp;lt;/script&amp;gt;
&lt;/div&gt;
&lt;/b:if&gt;
&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;
</pre>
<p>Of course, this means that only two Adsense units will be shown on the home page. If you&#8217;re doing things properly, most of your visitors should arrive on single posts, via the search engines, so this solution&#8217;s good enough for me.</p>
<h2>Final Thoughts</h2>
<p>If you want to <a title="How to Make Money Online" href="http://onemansgoal.com/" target="_blank">make money online</a> and you&#8217;ve decided that using <strong>Adsense on Blogger</strong> is the way to do it, then optimize it! </p>
<p>Hopefully this has helped you a) <strong>increase your CTR</strong> by showing you how to place Adsense units at the <strong>top of your posts</strong> and b) how to <strong>preserve income</strong> from the sidebar unit by stopping it from <strong>disappearing on multiple post pages</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scratch99.com/2009/01/blogger-how-to-add-adsense-inside-single-posts-only/feed/</wfw:commentRss>
		<slash:comments>81</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)
Database Caching 1/7 queries in 0.014 seconds using disk
Object Caching 478/486 objects using disk

Served from: www.scratch99.com @ 2010-09-10 19:44:09 -->