At 01:44p +0200 08/06/2005, Klaus Johannes Rusch didst inscribe upon
an electronic papyrus:
Cindy Reeves wrote:
I have a website, www.mysite.com. I have set up a unique URL for a specialty
directory listing, www.mysite.com/special. I edited my .htaccess file to
automatically redirect this unique URL to my generic home page. Now I want
to track how many people clicked through on the unique URL. Is this
possible? If so, how?
We actually have several unique URL's we've given to that site, so I can't
just go by the total number of referrals.
analog does not count hits that resulted in a 301 or 302 response as
successful hits.
You can either preprocess the server logs replacing the 301 or 302
status codes with 200 status codes (in Perl, s!(HTTP/1\..")
30[12]!$1 200!;) but you will be overcounting traffic to your site
because you count the redirected hit twice now.
Alternatively you can append a suffix at the target URL in the
redirect rule, and count the specific page views, like
www.example.com/?special.
Or use a CGI which logs the request itself and then performs its own
redirect via Location header. (make sure the file writing is
multiuser safe)
If you generate that file in CLF, then you could probably feed it to
Analog separately for reporting.
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------