Mailing List Archive

Chrome browser detection
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?

Many thanks
Dave


http://www.davesergeant.com

+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
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
+------------------------------------------------------------------------
RE: Chrome browser detection [ In reply to ]
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@lists.meer.net
[mailto:analog-help-bounces@lists.meer.net] 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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
On 20 Jul 2009 at 10:59, Aengus wrote:

> 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.

Thanks. My latest LOGFILE has:
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5
(KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5"
which I see Analog shows as Safari/530. I have also some Safari/5.28
and Safari 5.23 which appear to be plain Safari. Presumably because of
Chrome's auto update most users will now be on /530.

Dave

http://www.davesergeant.com

+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
On Jul 20, 2009, at 4:51 AM, Dave Sergeant wrote:
> 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?

This is in the source code. On first look at the code (tree.c), it
looks like since the Chrome browser is identified as (from Win2003)
"Chrome/2.0.172.37 Safari/530.5" then it would get labled as Safari,
not Chrome.

From my sources, which are mainly linux based, but I try to keep up
with the windows changes. You can get the new source (6.0.4) from http://iddl.vt.edu/~jackie/analog/
with RHEL3,RHEL5, Fedora 9 and Fedora 11 packages (what I've got
machines running).

I don't build this for windows, but have been trying to keep up with
the window source changes.

For those who are using other sources, the diff should be:

diff -r -U0 analog-6.0.3/src/build/windows/src/tree.c analog-6.0.4/src/
build/win
dows/src/tree.c
--- analog-6.0.3/src/build/windows/src/tree.c 2007-10-06
20:28:02.000000000 -0
400
+++ analog-6.0.4/src/build/windows/src/tree.c 2009-07-20
10:41:49.000000000 -0
400
@@ -777,0 +778 @@
+ ((*name = strstr(whole, "Chrome")) != NULL && (len = 6)) ||
diff -r -U0 analog-6.0.3/src/tree.c analog-6.0.4/src/tree.c
--- analog-6.0.3/src/tree.c 2007-10-09 22:36:03.000000000 -0400
+++ analog-6.0.4/src/tree.c 2009-07-20 10:36:46.000000000 -0400
@@ -777,0 +778 @@
+ ((*name = strstr(whole, "Chrome")) != NULL && (len = 6)) ||
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
Dave Sergeant <dave@davesergeant.com> wrote:
> On 20 Jul 2009 at 10:59, Aengus wrote:
>
>> 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.
>
> Thanks. My latest LOGFILE has:
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5
> (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5"
> which I see Analog shows as Safari/530. I have also some Safari/5.28
> and Safari 5.23 which appear to be plain Safari. Presumably because of
> Chrome's auto update most users will now be on /530.

If "real" Safari browsers are identified as 5.something, and Chrome browsers as 530, then

BROWSUMALIAS Safari/530 Chrome/530

Will still list the Chrome Browsers as sub-types of Safari, but will list them as Chrome/530.

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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
On 20 Jul 2009 at 12:58, Aengus wrote:

> If "real" Safari browsers are identified as 5.something, and Chrome
> browsers as 530, then
>
> BROWSUMALIAS Safari/530 Chrome/530
>
> Will still list the Chrome Browsers as sub-types of Safari, but will
> list them as Chrome/530.
>
> Aengus

Yep, that works fine. It will be a bit of a nightmare keeping up with
Chrome updates though...

Dave

http://www.davesergeant.com

+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Chrome browser detection [ In reply to ]
Dave Sergeant <dave@davesergeant.com> wrote:
> On 20 Jul 2009 at 12:58, Aengus wrote:
>
>> If "real" Safari browsers are identified as 5.something, and Chrome
>> browsers as 530, then
>>
>> BROWSUMALIAS Safari/530 Chrome/530
>>
>> Will still list the Chrome Browsers as sub-types of Safari, but will
>> list them as Chrome/530.
>>
>> Aengus
>
> Yep, that works fine. It will be a bit of a nightmare keeping up with
> Chrome updates though...

The Analog source has a list of browsers that claim to be subtypes of Mozilla. If you don't currently see any hits for Phoenix, Chimera or Camino, then you could Alias the Chrome brosers into one of these.

BROWALIAS *Chrome* $1Chimera$2

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
+------------------------------------------------------------------------