Is there a way to record views to a pdf document
I have a simple application.cfc file that I placed in the folder with the pdf documents. I need to record the useage to these documents for management. It will record the views when a user goes to a html page or cfm page but not the pdf. Is there a way to count these?
I'm including my hit counter code from the application.cfc file although it does work for web pages.
<cffunction name="OnRequestStart" returntype="boolean" output="true">
<cfquery name="addhit" datasource"#ds#">
insert into hits
(remote_address, page, date)
Values
('#remote_addr#','#script_name#',''#today#')
</cfquery>
<cfreturn true>
</cffunction>
I've also tried moving this in the folder above thinking that may affect it but still the same results - no counts for the pdf documents. Any suggestions?
