Forum Moderators: phranque
I'm looking into setting up mod_usertrack on my server. I've looked at the apache docs but they don't go into enough detail about getting it up and running.
From what I've read so far it appears that it logs user clickstreams to a separate logfile, and tracks return visitors using Cookies. If this is the case it sounds like the solution I am looking for.
If anyone has any experience using it I would appreciate any pointers or links to tutorials.
Cheers
LoadModule usertrack_module libexec/mod_usertrack.so
AddModule mod_usertrack.c
(obviously you need to make sure of the path on your box)
If you want to track the cookie in your log files you'll
need to tweak your LogFormat. This is what mine looks like:
LogFormat "%h %V %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined
Then you will need the following :
CookieTracking on
CookieName whatever
CookieExpires "6 months"
Of course the CookieExpires value is up to you as well as the CookieName.
That's it.