ASP Hit Counter
-
I am looking to add a hit counter to an Intranet Site and was curious of the best way to do this. The only requirement is that each user should only be counted 1 time per day. The only page that we need to track is the home page. However, if we could EASILY add a counter to all pages on our site such as adding some code to the footer on our site (which is automatically pulled into all pages through SSI) then we would be willing to do things that way. Does anyone have any code that might be useful to me? Chris LaQuerre Internet Technologies Consultant
-
I am looking to add a hit counter to an Intranet Site and was curious of the best way to do this. The only requirement is that each user should only be counted 1 time per day. The only page that we need to track is the home page. However, if we could EASILY add a counter to all pages on our site such as adding some code to the footer on our site (which is automatically pulled into all pages through SSI) then we would be willing to do things that way. Does anyone have any code that might be useful to me? Chris LaQuerre Internet Technologies Consultant
write a function called GetPageCount which simply gets the page count from a database or a file, increment it, and then saves it again. Then return the incremented value. Adding things like IP blocking will simply need some extra work. Then, you can add this to the SSI and it will start counting. <%=GetPageCount()%>