Using ShortStats to track failed referrers
In my earlier post I mentioned that ShortStats is unable to track failed referrers due to the way it works. ShortStats relies on a single line of PHP being inserted into each page you want to track, which then triggers a PHP script which logs the request in the database. I realised shortly after I posted that an obvious way to track failed referrers would be to put a slightly different PHP fragment into the custom 404 page. This would then log the original request (rather than the request for the 404 page itself) into a new DB table and you’d have yourself a failed referrer. Perhaps I’ve found a little project for myself this weekend…
This entry was posted on Wednesday, March 30th, 2005 at 9:12 am and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
Have your say
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.