This seems like the simplest of tasks, but I think there must be an easier way.
I've completed the majority of my site -- it's fully functional but aesthetically lacking. Before I get into dressing it up I decided it would be helpful to track what users are doing. In its simplest form, I'm tracking users who query, create or update/modify accounts. I want to expand on this tracking to include which pages they are visiting. This is only to validate the usefulness of the pages they can choose from.
I've passed this var to each page so I know who they are.
$logname = $_SESSION['logname'];
but how can I get the page captured?
Also, my page names are cryptic, not by design, just helpful for me to keep it straight. I figured I could make a single include file, drop the script in there and then apply the include to the pages I want tracked.
Any ideas???