Monday, 12 November 2007

Place Google AdSense below post's title on Blogger

I use Google AdSense to add some income from my site, but if you use the option show ads between posts, default position where ads are placed (below te post), isn't a good place for a good result in terms of revenue.

So I have decided to change the position of AdSense and in my Blogger Template, I have find this "suspect" code in the post's footer:

<b:if cond="'data:post.includeAd'">
<data:adend/>
<data:adcode/>
<data:adstart/>
</b:if>

... that is what I'am searching: the AdSense code, placed on template, from Blogger when I have selected show ads between posts option. After some tentatives I have find a good position where to place AdSense, below the title's post, before this line's code (check expand widget in your blogger template):

<p><data:post.body/></p>

So, I have changed AdSense code position above this line, adding an if statement (on bold) to show sponsored links only into the single post, not when an user visits my home page, or browse categories (over 96% of my actual clicks cames from internal pages):

<b:if cond='data:blog.pageType=="item"'>
<b:if cond="'data:post.includeAd'">
<data:adend/>
<data:adcode/>
<data:adstart/>
</b:if>
</b:if>


In this way, AdSense is more visible and in just two day I have improved the number of clicks and my CTR for the most visited pages. If you use Blogger platform for your blog, I suggest to try it.

No comments:

Post a Comment