Question

I am trying to track hits to classic asp pages which are used as include files within other asp pages. I am using LogLog as my web analytic tool since I wanted something simple and which runs behind the firewall. What I observed was that LogLog does not track the included files. It will only track the main asp page where I have all the included files. (Note: I have added script to all my .asp files) We want this info so that we can get rid of all unused asp pages in our website which have been lying around for years without anyone using them.

Was it helpful?

Solution

If you want to get rid of unused pages you could try this solution:

add to every asp the following code:

application.lock
aspname = "ASPTRACKER-" + "a.asp" '  Or "b.asp" etc...
if (clng(application(aspname)) = 0) then
    application(aspname) = 1
else
    application(aspname) = application(aspname) + 1
endif
application.unlock

in your global.asa make sure that the application on end event writes all these application values (starting with ASPTRACKER-) to file.... voila the usage counter of each file

code not tested so there may be a typo...

OTHER TIPS

Using Google Analytics, you track exactly what you want, including specific events or ajax loadings.

You decide when you want to add a hit to the category of your choice, so you can easily add a hit when you load an included page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top