« How to get relevant ads from adsense? | Main | For Adsense links - Blue is still the best »

Aug16
An easy way to do A/B adsense testing
I've been very vocal about adsense A/B testing to see which ad type brings the best click through rate.  Apart from well know and standard adsense placements,  it is always a good practice to do A/B testing just to make sure you are getting the most out of your website.

Google's adsense blog  discussed one excellent way to do A/B testing.   Using a simple javascript.

<script type="text/javascript">
    var random_number = Math.random();
    if (random_number < .5){
        //your first ad unit code goes here
    } else {
        //your second ad unit code goes here
    }
</script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


You need to create 2 sets of adsense code with different custom channel.    Just dump the adsense code on the specified location above and you're good to go.

Read about the whole post here.

0 Comments/Trackbacks




submit a trackback

TrackBack URL for this entry:

post a comment

Name, Email Address, and URL are not required fields.





Comment Preview

« How to get relevant ads from adsense? | Main | For Adsense links - Blue is still the best »

Advertise

Related Resources

sponsored ads



subscribe


Prefer Email?
Subscribe below-

Enter your Email:


Powered by FeedBlitz What's this?

Current News

Support This Blog

blogroll


 


Know More Media - Internet / Ecommerce / Online Business

know more media network

View Network Map

Network Feed List (OPML)

Know More Media Network
Feed


we support unitus

PRWeb

Influencer



OnlineAdSwami is a member of the Know More Media network of business related blogs.

Here are some current headlines from some of our business publications:

ProductivityGoal

CallCenterScript

AdHurl

TheBizofKnowledge


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740

HealthCareVox

BrainBasedBusiness


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740