as i started to do my first steps into the affiliate marketing game, i am coming towards my first need for a better tracking of my campaigns.
i use greenham's redirect script so far, for redirecting different adgroups to different azoogle subids, like e.g.:
adwords target-url
http://www.mydomain.com/linker.php?id=myadgroup1
where the linker.php script would then redirect to 404 Error
now, as my first campaigns are running, i realize how much more information i would love to get about the clicks i am receiving. those add-on's i would like to get for this script are:
- to write the called id, date and time into a text-file, once linker.php has been called
- to be able to rotate various affiliate-links, so that i can test, which offer of the same type gets the best ctr. e.g.
click #1 on adgroup1 triggers http://x.azjmp.com1/XYZ?sub=myadgroup1
click #2 on adgroup1 triggers http://x.azjmp.com2/XYZ?sub=myadgroup1
click #3 on adgroup1 triggers http://x.azjmp.com3/XYZ?sub=myadgroup1
and click #4 on adgroup1 triggers http://x.azjmp.com1/XYZ?sub=myadgroup1 again
can anyone extend the script below (copyright by greenham's) to add the functionality as described above? if you want to get paid to do the job, that is fine with me. however be aware that the result of your work should be made available to everyone here.
if you see usefull stuff that should be added as well, please just say so. thanks!
i use greenham's redirect script so far, for redirecting different adgroups to different azoogle subids, like e.g.:
adwords target-url
http://www.mydomain.com/linker.php?id=myadgroup1
where the linker.php script would then redirect to 404 Error
now, as my first campaigns are running, i realize how much more information i would love to get about the clicks i am receiving. those add-on's i would like to get for this script are:
- to write the called id, date and time into a text-file, once linker.php has been called
- to be able to rotate various affiliate-links, so that i can test, which offer of the same type gets the best ctr. e.g.
click #1 on adgroup1 triggers http://x.azjmp.com1/XYZ?sub=myadgroup1
click #2 on adgroup1 triggers http://x.azjmp.com2/XYZ?sub=myadgroup1
click #3 on adgroup1 triggers http://x.azjmp.com3/XYZ?sub=myadgroup1
and click #4 on adgroup1 triggers http://x.azjmp.com1/XYZ?sub=myadgroup1 again
can anyone extend the script below (copyright by greenham's) to add the functionality as described above? if you want to get paid to do the job, that is fine with me. however be aware that the result of your work should be made available to everyone here.
PHP:
<?php
$path = array(
'adgroup1' => 'http://x.azjmp.com/XYZ?sub=azoogleadgroup1',
'adgroup2' => 'http://x.azjmp.com/XYZ?sub=azoogleadgroup2'
);
if (array_key_exists($_GET['id'], $path))
header('Location: ' . $path[$_GET['id']]);
?>