Use Real-Time Split Testing for Google Adsense Optimization

October 28, 2011 — 4 Comments

[This is part of the Blogger's Guide to Earning More with Google Adsense.]

One of the challenges that you might encounter for A/B Testing is that of bias. In other words, you might discover (or feel) like there were too many other factors that were introduced to get a complete understanding of the original test.

For instance, you may have redone the design of the blog in addition to changing the locations in your split test which could have contributed greatly to the increase or decrease CTR.

The answer? Real-time testing. The Google Tool introduced in the last post does a good job of this but it may take a bit of time to get installed and up and running. Another way, especially with WordPress, is to use a little code to simulate the A/B test.

You can do this quite easily with the following PHP code:

1
2
3
4
5
6
7
<?php
$rand = rand(0, 1);
if($rand){
echo '<div> <<<ADSENSE CODE A HERE>>> </div>';
}else{
echo '<div> <<<ADSENSE CODE B HERE>>> </div>';
}?>

Essentially what this is doing is choosing to load Adsense Code A or B whenever the page is loaded. So you can, in real-time, see how each one performs.

Obviously you can set up this code to do a number of different things and to show a number of different styles, sizes, and even locations. This is just the most basic form so the sky is the limit here!

Real-time testing is a good choice if you’re engaging with many different aspects in your test that might change the results to a point of not being usable.

It’s up to you!

[This is part of the Blogger's Guide to Earning More with Google Adsense.]

John

Posts Twitter Facebook

I'm passionate about startups, blogging, and human capital. I love what I do and who I get to work with. I am incredibly blessed.


4 responses to Use Real-Time Split Testing for Google Adsense Optimization

  1. Sweet! I have been looking for something this practical to experiment with. I will definitely try out this code and see what happens.

  2. Northwest Territory Tents November 2, 2011 at 5:55 AM

    Man I’m very new to your blog and you helped me so much, thanks!

Leave a Reply