Web Log Analysis
There are many tools available to analyze web page statistics.
One of the most popular is Analog, but any web search will turn up
hundreds or perhaps even thousands more. There are also options
(link dead, sorry)
statistics gained through code included in your web pages. I use
both of these methods, but I also have my own analysis code because
I want specific information that isn't easy to extract from the
other tools. For example, I have pages linked (Unix hard links)
under multiple names. Most log analyzers wouldn't take that into
account at all.
What I want to know is how popular certain pages are. Any of the logfile analyzers will do that, of course, but I am only interested in certain pages; I don't care about the index pages or any page that just has links to other areas within my site. I also have certain cgi-scripts that are actually identical to other static web pages (the static page includes the script's output by a Server Side Include). I want those counted as one page, not as a page and a script. There are whole sections that I'm not interested in counting, too, such as Book Reviews and the programming sections. Finally, I want the output to be a web page itself, and only want to see a set number of pages listed. Perhaps I could have found a tool somewhere that would come close to this, but it just seemed easier to write it myself. The output can be seen at Most Popular Pages
You'll note a reference to "favicon.ico" here. I think
Microsoft started this nonsense of a little .ico graphics file that
web browsers try to download - it lets web sites associate an icon
with their pages in bookmarks. Thunderbird uses favicon.ico in its
tabs, too. Of course you can use Windows to create such an
icon (and put it or link it in every subdir of your site) but you
can also create your very own favicon.ico with Linux:
(link dead, sorry)
. My favicon.ico is the guy in the boat..
This script runs as a cron job every fifteen minutes to produce the "Most Popular Pages" page. Because it isn't designed to output the entire page in one belch (it could be; I just didn't do it that way), the script that runs it writes to a temporary file and then copies that file to the real location.
Got something to add? Send me email.
(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version
Increase ad revenue 50-250% with Ezoic
Inexpensive and informative Apple related e-books:
Take Control of Preview
Take Control of Upgrading to Sierra
Take Control of the Mac Command Line with Terminal, Second Edition
Photos: A Take Control Crash Course
Take Control of Apple Mail, Third Edition