Forum Moderators: coopster

Message Too Old, No Replies

split run test problem

Anyone else use SplitRunTest?

         

moose606

5:51 pm on Jul 22, 2006 (gmt 0)

10+ Year Member



Using split run test from phpzen, and having problem with the conversions not reporting in admin section. Everything else works fine. Any ideas?
Thanks.
Jon

coopster

7:57 pm on Jul 25, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I'm not familiar with the software nor test you are describing but are you getting any error messages? What isn't working?

moose606

12:56 am on Jul 27, 2006 (gmt 0)

10+ Year Member



Script works to redirect visitors to different landing pages, but the conversion info is not working. An image tag is placed on the conversion page, and then when that page is loaded, one conversion is counted and is supposed to show on stats from database. Code is as follows:
<IMG width=1 height=1
src='/split/inc_counter.php?cid=4&amt=1&img=1'>

code for inc_counter.php is as follows:
<?
// Input: $_GET['cid'], $_GET['amt'], $_GET['img']
@include("config.php");
@include("connect.php");

$_c = (int)@$_GET['cid'];
$_n = (int)@$_COOKIE[$cookie_name.$_c];
@mysql_query("UPDATE flip_pages SET counter=counter+".(double)@$_GET['amt']." WHERE c_id={$_c} AND page={$_n}");

if (@$_GET['img'])
{
@header("Content-Type: image/gif");
@readfile("1x1.gif");
}
?>

Thanks for the help.

Jon

dreamcatcher

7:24 am on Jul 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi moose606,

Try removing all those error suppression symbols. ie: @

Also, change your query line to:


mysql_query("UPDATE flip_pages SET counter=counter+".(double)@$_GET['amt']." WHERE c_id={$_c} AND page={$_n}") or die(mysql_error());

And finally at the top of your page, set your error reporting to E_ALL:

error_reporting(E_ALL);

See if that combo throws out any errors.

d