I use this script on a daily basis, to let me know what pages and what searches are leading people into my TWiki instance. I'm not going to bother documenting this... it requires Perl skill to adjust, so you either have it or you don't. It can be configured to report links in from forums, as well as a number of different translation methods to parse the referrers from the various search engines.

In order to do anything useful with this script, you must use Apache's combined log format. You could perhaps use some custom formats which include the same information, but you'd have to either change the script a little or ensure that the first few fields all match up with the combined log format.

I'm sure this can be generalized, particularly if I set up some kind of fancy distributed server for parsing search engine referrals.

Useful Cronjob:
/bin/grep `/bin/date +%d/%b/%Y` /home/gunwiki/access_log | /home/gunwiki/bin/ | /bin/mail -s "Gunwiki searches for `/bin/date +%D`"

Usage: <access_log


-- SeanNewton - 15 Feb 2008

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt r1 manage 7.9 K 2008-02-15 - 08:00 SeanNewton stat script
Topic revision: r1 - 2008-02-15 - SeanNewton
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback