P
Patrick Rouse
Please point me to the correct newsgroup if this is the wrong place to post
this question.
My website is written in simple HTML and hosted on a windows server at
secureserver.net (via GoDaddy). I use an ASP Web Stats program called
Power-Stats to track my website traffic, search keywords... The data is
stored in an Access Database hosted on my website.
I'd like to be able to track how many clicks I get on each of my banner ads,
however I currently don't identify them in any specific way, the image just
has a hyperlink to the advertiser's URL.
I was told that to track the clicks on the banners I'd need to use an some
sort of ASP code to identify each Obviously I don't know anything about ASP
Programming, so I was hoping someone could point me in the right direction or
some sample code I could fiddle with.
This is the script I have in an includes file to rotate my banners, so you
know what I'm working with:
<script language="JavaScript">
<!-- Begin
var how_many_ads = 8;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="http://www.thinprint.com/rd_suite/";
alt="";
banner="images/rdsuite64_768x92-2.jpg";
width="768";
height="90";
}
if (ad==2) {
txt="";
url="http://www.thinprint.com/rd_suite/";
alt="";
banner="images/rdsuite64_768x92-2.jpg";
width="768";
height="90";
}
if (ad==3) {
txt="";
url="http://www.remote-scan.com/thinclients";
alt="";
banner="images/remote-scan-thin-client-1.jpg";
width="768";
height="90";
}
if (ad==4) {
txt="";
url="http://www.remote-scan.com/thinclients";
alt="";
banner="images/remote-scan-thin-client-2.jpg";
width="768";
height="90";
}
if (ad==5) {
txt="";
url="http://www.2x.com/thinclientserver";
alt="";
banner="images/thinclient_inchtape728x90.gif";
width="728";
height="90";
}
if (ad==6) {
txt="";
url="http://www.2x.com/thinclientserver";
alt="";
banner="images/thinclient_shorts728x90red.gif";
width="728";
height="90";
}
if (ad==7) {
txt="";
url="http://www.tricerat.com/products.php?sessioncomputing";
alt="";
banner="images/triCerat_468_1.gif";
width="468";
height="80";
}
if (ad==8) {
txt="";
url="http://www.tricerat.com/products.php?sessioncomputing";
alt="";
banner="images/triCerat_468_1.gif";
width="468";
height="80";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</script>
this question.
My website is written in simple HTML and hosted on a windows server at
secureserver.net (via GoDaddy). I use an ASP Web Stats program called
Power-Stats to track my website traffic, search keywords... The data is
stored in an Access Database hosted on my website.
I'd like to be able to track how many clicks I get on each of my banner ads,
however I currently don't identify them in any specific way, the image just
has a hyperlink to the advertiser's URL.
I was told that to track the clicks on the banners I'd need to use an some
sort of ASP code to identify each Obviously I don't know anything about ASP
Programming, so I was hoping someone could point me in the right direction or
some sample code I could fiddle with.
This is the script I have in an includes file to rotate my banners, so you
know what I'm working with:
<script language="JavaScript">
<!-- Begin
var how_many_ads = 8;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="http://www.thinprint.com/rd_suite/";
alt="";
banner="images/rdsuite64_768x92-2.jpg";
width="768";
height="90";
}
if (ad==2) {
txt="";
url="http://www.thinprint.com/rd_suite/";
alt="";
banner="images/rdsuite64_768x92-2.jpg";
width="768";
height="90";
}
if (ad==3) {
txt="";
url="http://www.remote-scan.com/thinclients";
alt="";
banner="images/remote-scan-thin-client-1.jpg";
width="768";
height="90";
}
if (ad==4) {
txt="";
url="http://www.remote-scan.com/thinclients";
alt="";
banner="images/remote-scan-thin-client-2.jpg";
width="768";
height="90";
}
if (ad==5) {
txt="";
url="http://www.2x.com/thinclientserver";
alt="";
banner="images/thinclient_inchtape728x90.gif";
width="728";
height="90";
}
if (ad==6) {
txt="";
url="http://www.2x.com/thinclientserver";
alt="";
banner="images/thinclient_shorts728x90red.gif";
width="728";
height="90";
}
if (ad==7) {
txt="";
url="http://www.tricerat.com/products.php?sessioncomputing";
alt="";
banner="images/triCerat_468_1.gif";
width="468";
height="80";
}
if (ad==8) {
txt="";
url="http://www.tricerat.com/products.php?sessioncomputing";
alt="";
banner="images/triCerat_468_1.gif";
width="468";
height="80";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</script>