Adsense Split Testing Guide For WordPress and Blogger Blogs

Testing the attributes of Google Adsense units may have a significant impact on your overall Adsense earnings. Not just proper placement, but the colors, backgrounds, palettes and ad- size plays an important role on the performance of your ad units.

The older way of testing and optimizing your Adsense ads is testing them one after another. There is nothing wrong, but it may not produce accurate conclusion. Let’s say you experiment with two ad units by running them for 1 week each. You can judge the performance of each ad unit after two weeks, but you are just experimenting with them. This is not a complete comparison as the traffic and reactions may vary during the course of time.

What is Split Testing?

Split testing is a way to directly compare the performance of different ad setups and see which one of them performs better under similar circumstances. Also known as A/B testing, this method allows you to test the performance of two ad units parallely.

Adsense Split testing in WordPress Blogs

Example: You want to test which Adsense format works best for you under the main content section – the 333 X 280 large rectangle or the 300 X 250 medium rectangle. You create two ad units from your Adsense account and wrap them in a php code in such a way that the advertisements are rotated automatically. So if one of the pages of your site gets 500 impressions a day, each ad unit gets an impression of 250 (approximately).

Advantage: The Split testing method is useful because you can compare the performance of two ad setups parallely. It also helps to see which attribute is the cause of increased or decreased Adsense income.

Implement Adsense Split Testing in WordPress

All you need to do is create two separate ad units and assign them unique channels from your Google Adsense account. Next, copy the following code and paste it in your themes’s file, wherever you want the ads to appear.

<?php $testcase = rand(0,1);?>
<?php if ($testcase == 0) {?>
//Enter 1st ad unit code here
<?php };?>
<?php if ($testcase == 1) {?>
//Enter 2nd ad unit code here
<?php };?>

The above code is using a simple PHP variable to switch the ad units for every new page impression. In short, the code shows the first ad unit to one visitor and the 2nd one to another and so on.

Implement Adsense Split Testing in Blogger Blogs

If your blog is on the Blogger platform, the PHP code mentioned above won’t work. Use the following code to rotate the ads:

<script type=’text/javascript’>
var google_ads = Math.random();
if (google_ads < .5){
google_ad_client = “pub-AAA”;
google_ad_slot = “XXX”;
google_ad_width = 300;
google_ad_height = 250;
}
else {
google_ad_client = “pub-AAA”;
google_ad_slot = “YYY”;
google_ad_width = 336;
google_ad_height = 280;
}
</script>
<script src=’http://pagead2.googlesyndication.com/pagead/show_ads.js’ type=’text/javascript’>
</script>

Before you add the code in your Blogger template, the following things needs to be taken care of:

1. Replace pub – AAA with the publisher ID of your Google Adsense account.

2. Compare the original code of your Adsense units and replace the ad slots, ad width and ad height values. This step should not be ignored as according to Adsense terms of Service, modifying the Adsense code is strictly prohibited.

3. After implementing the code, check the page source of your blogger blog. Check the generated code of the ads and compare them with the original ad codes. The code generated at the page source must match exactly with the original code of your Google Adsense units.

Change the Look and Feel of Advertisements

Once you have implemented the codes, you will see reports of the ad performance in your Google Adsense account. To change any of the attributes of one ad unit, go to Adsense Setup > Manage Ads and click on “Edit Ad settings”.

change ad colors, fonts and type in Google Adsense

During the course of the experiment, run each ad set up for 2 days and record the logs in an excel spreadsheet. After the end of the experiment, you will be able to judge which ad set up converts the most and brings maximum revenue. (also read: Implement Adsense Revenue sharing in Multi author blogs)

How to Track the Results

Log in to your Google Adsense account and go to “Manage reports” panel. Select a date range and the channel whose performance you want to track.

Adsense Channel data

Hit the display report and you will see the complete data about page impressions, earnings, CTR and eCPM. In this way, you can compare which ad unit converted the most in a particular time period.

How To Complete your test and come to a Conclusion

There are 5 attributes in an Ad which you can change and optimize. They are:

  • Font type – Adsense default font family, Arial, Verdana and Times.
  • Font Size –  Adsense default font size, large, medium and small.
  • Ad unit type – Text ads, image ads and a combination of  Text/Image ads.
  • Ad unit size – Lot of formats to choose from but we will stick to 336 X 280 and 300 X 250 rectangle units.
  • Color Palets – depends on your site’s design template.

You must test each and every possible combination of all the attributes listed above. The best way to do this is rotating the attribute you want to test while keeping others constant.

Optimizing adsense colors, fonts ,type

I think you have got the idea. Fix all other attributes and rotate the font family after every two days. At the end of the week compare the results to see what works for your site. Then rotate another attribute and this process continues until you know the best combination of ad format, font family, font type and the color palette of the Adsense ads. (Tip: Show Adsense ads only to search engine visitors)

Split Testing Report – Sample SpreadSheet

And here is an MS-Excel report sheet that Adsense publishers may use to record and track the split test data.

Adsense Spit test report sheet in Excel

Have you performed an Adsense Split test experiment on your blog? How do you test the ad units for maximum performance? Please let us know your ideas in the comments section.

ADVERTISEMENTS

You may also like to read:

  • http://discoveryourpc.net Angel

    First say for me this is the best post I have ever read about adsense, but I have a question, are not you changing adsense code in the Blogger part of the article ?

  • http://www.ampercent.com Amit Banerjee

    @Angel: Yes, the code looks modified but it’s javascript. When you place that code, the IF else loop code block comes into action and only your actual adsense code is returned to the HTML source of the page. Thanks for the comment and appreciation

  • http://discoveryourpc.net Angel

    I know that what I am trying to say is that I am not 100% sure that you can make this sort of things.

    For example, can I use javascript to make adsense ads loads later so the CTR increase.

    For me using WordPress you do it server side so you don’ really change anything from the point of view of a user but doesn’t happen on blogger.

    I don’t know if I am explained it correctly.

  • http://www.ampercent.com Amit Banerjee

    @Angel: Yes, regarding WordPress it’s true. And regarding blogger, it’s the HTML language…whatever code you use if the end result is fine, then it would not violate the TOS.

  • http://newtelecomjob.blogspot.com/ Telecom Job

    I never do this exactly. it’s better not to change any code in adsense to avoid violate TOS

  • http://www.ampercent.com Amit Banerjee

    You are not changing any adsense code. When the page loads the code is exexutedand the real adsense code is placed dynamically, try it once. Thanks for the comment.

  • Renee Benzaim

    Hi Amit,

    I like the idea of doing this. I created two channels to split test and put them into your php code for my WP blog. However, when I went to my blog,both versions of the AdSense ad unit showed up on my page.

    I’m obviously doing something wrong, but don’t know what it is. Any advice would be greatly appreciated.

    Renee Benzaim

  • http://www.ampercent.com Amit Banerjee

    @Renzee: What is your blogging platform? Are you using it on a PHP enabled server ?

  • http://www.linedanceinstructions.net/ Renee Benzaim

    @Amit,

    All of my blogs are wordpress.org blogs hosted on Host Gator.

  • http://www.ampercent.com Amit Banerjee

    @renee: I have tested the above code and it works. Double check your site’s theme or the code you are using, I think there must be something wrong on your side.

    You can also check this on a simple php page outside wordpress and see whether the same function returns different outputs. Let me know and I will send you a demo page written in PHP and you can then check whether this works.

    Thanks for the comment, keep the ideas coming !

  • http://www.linedanceinstructions.net/ Renee Benzaim

    @Amit,

    Thank you for your reply. I think you are right, the problem was on my side and it’s working fine now. I’ve used your code on several of my blogs and am looking forward to doing the comparisons. Thank you for the great information.
    Renee

  • http://www.clevertester.com software testing

    Thanks for your post . keep adding more stuff on it.

  • http://www.oibo.org Robert

    An excellent post on how to split test AdSense. Using the simple code you can actually split test many items on a blog and all types of advertising. Well done.

  • http://www.ampercent.com Amit Banerjee

    Thanks Robert.

  • Ken

    sorry I tried it out on my blogger site but it didnt work. how do you actually use html in blogger? what im doing now is just using the adsense gadget.

  • http://www.123kogebog.dk Steffen

    Hey

    Really great post !!Awesome work.

    But I have the same problem as Renee :-(
    Both the Ads show up in my site.
    I’m using the PHP code on my WordPress.org site.

    What can I do wrong?

  • http://www.blogfeuer.de Alexander

    great article. perhaps you should write ebooks and sell them!

  • Pingback: plumer jacksonville florida, plumbers jacksonville florida, plumbing jacksonville florida, water heater jacksonville florida, water heaters jacksonville florida

  • Pingback: stryker-hip-recall-info.com

  • Pingback: HESI A2 study guide

  • Pingback: LSAT Study Guide

  • Pingback: COMPASS Study Guide

  • Pingback: ประเทศไทย

  • Pingback: Levittown

  • Pingback: electrician melbourne

  • Pingback: Квартиры Турция

  • Pingback: navigare

  • Pingback: httpwwwgetmorevacationscomwp

  • Pingback: Duncanville

  • Pingback: justcloud pricing

  • Pingback: spells love