Track Banner Clicks

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>
 
P

Patrick Rouse

Perhaps I didn't explain clearly. I'm not looking for a banner management
system, but just a way to execute a click of a hyperlink that launches some
trackable ASP code, i.e. if if each click executed code on a specific ASP
page I could track how many times that page way hit. Then by looking at the
traffic to those pages I'd know how many times each banner was clicked.


My website stats tracking software already tracks everything else, just not
which links people click on to spawn other websites. Ideally I'd like to be
able to alter all of my hyperlinks to other sites so I could track which
sites others are going to from my site.

--
Patrick Rouse
Microsoft MVP - Terminal Server
http://www.sessioncomputing.com


Kyle Peterson said:
thats a lof of javascript and I am not a javascript guy myself
www.aspbanner.com and www.banmanpro.com are worth checking out
 
L

Larry Randolf

search aspin.com plenty of articles and code snippets on tracking there


Patrick Rouse said:
Perhaps I didn't explain clearly. I'm not looking for a banner management
system, but just a way to execute a click of a hyperlink that launches
some
trackable ASP code, i.e. if if each click executed code on a specific ASP
page I could track how many times that page way hit. Then by looking at
the
traffic to those pages I'd know how many times each banner was clicked.


My website stats tracking software already tracks everything else, just
not
which links people click on to spawn other websites. Ideally I'd like to
be
able to alter all of my hyperlinks to other sites so I could track which
sites others are going to from my site.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top