> While we're on the subject of dynamic pages and
> stats, I'm in the process of writing a press
> release database which is shared by hundreds
> of clients. I haven't given too much though
> to how to handle the stats, but as I finish the
> back end design, I'm becoming more concerned that
> traditional stats methods (eg. using Analog to
> generate a reprot from access_log). The reason
> being is that while I've modularized the
> design to manys scripts each script handles
> everything. For example, 1 script will list the
> available press releases for a category (Airlines
> for example). ANother script will actually display
> the release for a given company (id).
>
> Since each script is handeling all the clients,
> scanning the access_log will just result in
> multiple calls to the same scripts but with
> different ids. So it would be impossible to
> breakdown who looked at release A and who looked
> at release B. I've gievn thought to writing my
> own logging into teh database but it seems like
> I'd be re-inventing the wheel.
>
> How do those of you who run dynamic Web sites
> deal with stats. I'm particularily interested
> in those of you who use 1 or 2 scripts to
> generate the whole site and how to differentiate
> between what sections were viewed since a single
> script generated them all.
I think the easiest approach here is to just set an Apache Note from your
module and configure mod_log_config to write the log entry in whatever way
you need using the note you set.
-Rasmus