
tomh at motorsport
Jul 20, 2009, 8:14 AM
Post #3 of 8
(1158 views)
Permalink
|
The changes to detect Chrome are not difficult indeed ... this is what I have done on our server: stratos1 7 # diff analog-6.0/src/tree.c analog-6.0-th/src/tree.c 771a772 > ((*name = strstr(whole, "Googlebot")) != NULL && (len = 9)) || 777a779 > ((*name = strstr(whole, "Chrome")) != NULL && (len = 5)) || 796c798 < else if (headmatch(whole, "Mozilla")) { --- > else if (headmatch(whole, "****Mozilla")) { 826a829,842 > > if ( strstr(whole, "Google") || > strstr(whole, "Yahoo") || > strstr(whole, "Powerset.com") || > strstr(whole, "VoilaBot") || > strstr(whole, "Jeeves") || > strstr(whole, "indexer") || > strstr(whole, "searchme") || > strstr(whole, "msnbot")) { > *name = "Robots"; > *nameend = strchr(*name, '\0'); > return; > } > 874,875c890,893 < else if (*c >= '6' && *c <= '9') < *name = "Windows:Unknown Windows"; --- > else if (*c == '6' ) > *name = "Windows:Windows Vista"; > else if (*c > '6' && *c <= '9') > *name = "Windows:Unknown Windows NT"; 902a921,922 > else if ((c = strstr(whole, "Mac OS X")) != NULL) > *name = "Mac OS:Mac OS X"; 904c924 < *name = "Macintosh"; --- > *name = "Mac OS:Unknown Mac OS"; Tom -----Original Message----- From: analog-help-bounces [at] lists [mailto:analog-help-bounces [at] lists] On Behalf Of Aengus Sent: 20 July 2009 10:59 To: Support for analog web log analyzer Subject: Re: [analog-help] Chrome browser detection On 7/20/2009 4:51 AM, Dave Sergeant wrote: > I am gradually getting my analog output files configured the way I like > them - slow progress, unfortunately the analog help is a bit vague in > some areas... > > I don't seem to be seeing the Google Chrome browser in my browser > summary, every other browser and loads of strange spiders are listed > but no Chrome. Either nobody using Chrome is visiting my pages or > Analog is not identifying it seperate from Mozilla etc. > > Is there anything I can add to my config file to correct this? According to Google's own documentation, the Useragent for Chrome looks like: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.X.Y.Z Safari/525.13. http://www.google.com/chrome/intl/en/webmasters-faq.html#useragent Analog recognizes this as Safari/525. You'd have to modify the Analog source and recompile it to identify Chrome as a seperate browser, I think, but I don't have a copy of the source to hand to see what would be involved. Aengus +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------ +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------
|