Forget about parsing out those horrible log files... insert a row into a
table on every page, and use that for stats.

That is, forget about if you can. ;)

I'm no big FuseBox person, so there might be a more... standard way to do
it, but this certainly works.

OnRequestEnd.cfm:
        <cfquery datasource="mydsn">
                insert into hits (
                        page_name, script_name, fuseaction,
                        hit_date, from_ip, referer,
                        whatever, other, info, you, might, need
                ) values (
                        '#Page_Name_Variable?#', '#CGI.SCRIPT_NAME#', 
'#Attributes.fuseaction#',
                        #Now()#, #CGI.REMOTE_HOST#', '#CGI.HTTP_REFERER#',
                        #however#, #you#, #want#, #to#, #track#, #people#
                )
        </cfquery>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to