how to send a log entry every time a page is printed
Posted on 2008-06-23
Our users will select a page to print, from a menu of pages in an IE6+ browser.
We can embed a code in each page giving details of that page.
When the user prints the page we want it to somehow pick up a unique identifier for that user, and add it [along with a date\time stamp] to the unique page code. Probably the easiest way to do this would be to install a cookie on each computer. (As we know each specific user\computer we are in the position to put unique cookies or similar on each computer.)
Then, if the person prints the page, we want the above log entry to go to us at our remote location.
The result would be like a customised version of typical web access statistics. We're not averse to using a commercial product if someone can suggest one. We'd prefer not to have masses of emails automatically sent to us unless there is some way of automatically collating them.
The collated log entries are only wanted monthly, so perhaps could be stored on each computer and sent once a month. A problem with this is that there is money involved. We wouldn't want users wiping the log files. And if the log entries were stored in a cookie there is a risk of it being deleted by a user's anti-spyware software.
Is there an easy way to do this? Or is it a monster?