Re: Chrome browser detection

Jackie Meese <[email protected]> Mon, 20 Jul 2009 12:22:34 -0400
Newsgroups gmane.comp.web.analog.general
Message-ID <[email protected]>
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
+------------------------------------------------------------------------