Customer Portal Language
 
Home Knowledge Base ASP Com Objects Site Counter for ASP Pages
Information
Article ID9
Created On5/25/2008
Modified5/25/2008
Site Counter for ASP Pages

Many of our clients have requested a site counter that would aloow them to track visitors to their sites. We developed a counter for this purpose. The counter is access database enabled and can be downloaded from below.

Once you install the counter mdb in your database directory, add the include file to your includes directory. Next, at the top of the page where you want to count add the following.

<!--#Include Virtual = "/includes/counter.inc" -->

Then below that add the following:

<%

Dim NewHits

GetHits NewHits, 1

%>

You can reset your counter by going into the database and placing the counter back to 0 in the table. This counter only updates by Session, so you will only receive one count for each visit.

Download