How can you tell which hyperlink was clicked on?

R

rebaird

I have several pages on one site with several hyperlinks to another company
site. Is there a way to know which links are clicked and is there a way to
keep a running total of these clicks? I'm using these pages for ad
responses and would like to be able to tell when someone comes to these
pages and clicks on one of these links.

thanks
Ron Baird
 
M

MD WebsUnlimited.com

Hi,

Yes but you'll need to use a redirect script that records, either to a flat
file or database, when the link is clicked.

An example link

<a href="myredirector.asp?link=thetruelink.htm" >

Then in myredirector.asp (not a complete example)

<%
'
' Update the database
'

rs.linkcount = rs.linkcount + 1
rs.update

'
' Send to actual page
'
response.redirect request.querystring("link")

%>

All the links will need to be relative to the page or abs.

--
Mike -- FrontPage MVP '97 - '02
http://www.websunlimited.com
Our latest products "At Your Command" and IncludeASP
http://www.websunlimited.com/order/Product/AYC/ayc.htm
http://www.websunlimited.com/order/product/includeASP/includeASP.htm
 

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

Top