Split Testing Tools?

Status
Not open for further replies.

trigatch4

BuildAndEarn
Aug 23, 2006
2,557
79
0
East Coast
www.eurekadiary.com
So I've got ad inventory on my site and I'll soon be doing CPM with a network and need to give them "default" ads for when the inventory isn't sold. Right now my default is adsense which, as we all know, is bottom of the barrel in terms of monetizing.

I'd rather split test the default inventory and I'm assuming the best thing to do is simply have a php include be my default ad code and rotate various ads/offers evenly including adsense to see how it compares.

That being said, does anyone have scripts, resources, etc... they consider "go to" resources for split testing monetization? Cause that would sure as hell come in handy at the moment.

Thanks in advance.
 


I've tried OpenX couple times and it seems to have a feature to track adsense clicks, ctr and impressions as well. Ofcourse it won't be that accurate but at least it lets you split test, compare with other options and even able to track conversions if you decide to run aff offers instead. Give it a try and i'm sure you'll like it.
 
So what did you do instead, omgyams?

I'm guessing a php include that just randomly rotates between ads designated in the php file would work fine. And then name each included file accordingly... ex: sitename-header.php, sitename-120skyscraper-sidebar.php, etc...
 
I'm currently trying Google Ad Manager but I'm not really happy with it either. Still more than I want/need.

Will be watching this thread for some good software as well
 
If you are looking for a simple hack, you can give this a try. It will rotate ads and should track impressions and clicks via Google Analytics _trackEvent.

Page you want the banners on. Four edits.
Code:
<?php
// random banners, views and clicks tracked by google analytics event tracking

define('IN_PAGE', true);

function random_ad() {
    srand((float) microtime() * 10000000);
    $ads = array (  // 1. EDIT this array with filenames of all your ads
        'ad1.php',
        'ad2.php',
        'ad3.php');
    $rn = array_rand($ads);
    return ($ads[$rn]); 
}

$ad_location = 'ads/';  // 2. EDIT this to the url where all your ads are stored

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>include random banners</title>

<style type="text/css">
#wrap { text-align:center; }
#banner { width: 900px; text-align:center; margin: 0 auto;}
#content { width: 900px; margin: 0 auto;}
</style>

</head>
<body>

<!-- 3. EDIT var PageTracker line with your real UA number -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-#######");
pageTracker._trackPageview();
} catch(err) {}</script>
<!-- /ga -->

<div id="wrap">

<div id="banner">
    <?php 
        $myad = random_ad(); 
        include( $ad_location . $myad );   // 4. EDIT url to be location of all your separate ads
    ?>
    <script type="text/javascript">
          pageTracker._trackEvent('Ads', 'Impression', '<?php echo $myad; ?>');
    </script>
</div>

<div id="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>

</div>

</body>
</html>

Code for individual ad pages, ie: ad1.php,ad2.php, etc. Two edits each.
Code:
<?php 
// ad1

defined('IN_PAGE') || die("No direct access.");

$destination_url = "ad1.com/offer"; // 1. EDIT destination url - leave out http://www.
?>
    <a href="<?php echo 'http://www.' . $destination_url; ?>" onClick="javascript: pageTracker._trackEvent('Ads', 'Click', '<?php echo $destination_url; ?>');">
        <!-- 2. EDIT your anchor text or embed banner image or whatever here -->
        your ad link or image here
        <!-- /ad -->
    </a>


Sean
 
Status
Not open for further replies.