Skip to main content
Inspiring
October 7, 2009
Answered

Page Access Stats

  • October 7, 2009
  • 2 replies
  • 1114 views

I have been looking for a way to keep track of what pages are accessed on a could fusion server.  I have seen most of the free or paid programs and I haven't found one that really does what I need it to do.

I know this might be more of a IIS question.

What I am doing requires me to know the information needed about every page individually not in any groups.

Stats needed for each page:

Last Accessed

Times access since X date

I am not looking for something that can go back and look at my history, I am looking for something that will keep track of it going into the future.  Thus I will implement this stat tracker and say in 6 months can look at and see if pages are no longer accessed.  Thus will allow me to see if the page needs to be linked to from else where or be deleted.

If there is a simple way to do this using cold fusion that would be great.  I am running cold fusion 8.  If I have to use IIS that would be ok but I could use some direction with that too.

    This topic has been closed for replies.
    Correct answer ilssac

    Well IIS does it's logging thing.  If you look at the configuration settings of a web site in the IIS manager there are setting on how much you want logged how often to what location.

    But that is what most of those tools you say do not work for you use.  They are just parsing the logs from the web server (IIS) for the data.

    If you want other data it is not hard to create a few lines of CFML that create other data either in your own log files or in a database.  I have done both on occasion.

    2 replies

    Inspiring
    October 7, 2009

    Daniel,

    Is there any reason not to use Google Analytics (GA) for these stats (not that self-logging is a bad approach or anything like that!)?

    I just checked my GA data on a couple of sites and it does show me each page accessed and, from each page's charts/data, I can see how frequently that page has been accessed over the previous 'x' period (defaults to previous month but can be customized). GA is pretty beefy in what it covers but you can certainly tailor it to your needs below.

    Inspiring
    October 8, 2009

    Actually yes, it is an internal website thus Google isn't able to monitor it.

    tclaremont
    Inspiring
    October 8, 2009

    I don't use Google Analytics due to the well known privacy issues, but I think you can still use it from an internal site. If I recall correctly, the code that you put on the page allows the reporting to go BACK to the Google site, rather than the Google site invasively monitoring YOUR site.

    Someone please correct me if I am wrong, as I may very well be.

    ilssac
    Inspiring
    October 7, 2009

    Well IIS logs will contain a great deal of information and that can be mined by both homegrown, comunity grown and comercial products.

    But if this does not serve your exact needs.  You can log exactly what you want fairly easily as well.

    With the modern ColdFusion server, a few lines of code in the OnRequestEnd() function can write anything you care to record to files and|or databases for later reporting.

    Inspiring
    October 7, 2009

    When you say I can log it fairly easily are you saying having IIS log it for me?  If so do you have any sites I might be able to look at to get an idea, I am not to familiar with IIS.

    ilssac
    ilssacCorrect answer
    Inspiring
    October 7, 2009

    Well IIS does it's logging thing.  If you look at the configuration settings of a web site in the IIS manager there are setting on how much you want logged how often to what location.

    But that is what most of those tools you say do not work for you use.  They are just parsing the logs from the web server (IIS) for the data.

    If you want other data it is not hard to create a few lines of CFML that create other data either in your own log files or in a database.  I have done both on occasion.