Use Real-Time Split Testing for Google Adsense Optimization

[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:


echo ‘



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.]