On Thu, 13 Apr 2006, Jon Russell wrote:

Hi, I know this has been discussed before, but I wonder if anyone has any good ideas this time round ... I have a site with lots of "buttons" that point to the same sections. To log the effectiveness of each button the links are sent via a redirector of the form ... /redirector/HomepageSmallGalleryButton.html?/gallery/ /redirector/NewspageLargeGalleryButton.html?/gallery/ the script on /redirector/ ignores the rest of the URL and just redirects to whatever is on the querystring. i.e. /gallery/ I get log files with entries .. GET /redirector/HomepageSmallGalleryButton.html?/gallery/ HTTP/1.1" 302 GET /redirector/NewspageLargeGalleryButton.html?/gallery/ HTTP/1.1" 302 Which I then want to process with analog ... Any good ideas ? So far I've come up with pre-processing the log file and rewriting 302s as 200s, or configuring analog to pull the log files through a program (like the way it handles zip) and the program changing 302s to 200s on the fly. Both of which I'd like to avoid as the log files contain over 100 million lines per month. Can I request a feature for the addition of "302ISSUCCESS ON" as well for the next analog release!? :-)


No, sorry. If 302s counted as successes, each request would count for two analog requests. You really don't want that.

The easiest thing to do is to look in analog's Redirection Report.

Alternatively, if you don't mind redesigning your site, the "standard" way to accomplish this is to put an extra parameter on the end of the target URL, like this:
  <a href="/gallery/?from=HomepageSmallButton">
  <a href="/gallery/?from=HomepageLargeButton">
The webserver automatically ignores the extra parameter, but includes it in the logfile. That avoids having the client having to do two round-trips, and everything is together in the Request Report.

--
Stephen Turner, Cambridge, UK  http://homepage.ntlworld.com/adelie/stephen/
  "Low Priced Cambridge Clare College. Big selection at eBay UK!"
  (Ad after Google search for Clare College Cambridge)
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to