Wondering how to detect Google Chrome OS in your server logs? Here’s how the Google Chrome OS user agent.
1 | 79.8.208.125 - - [20/Nov/2009:23:21:31 +0000] "GET / HTTP/1.1" 200 2900 "-" "Mozilla/5.0 (X11; U; CrOS i686 9.10.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.253.0 Safari/532.5" |
I logged the user agent browsing my website with a Google Chrome developer preview. And here’s the Google Chrome Browser user agent on my Mac OS X.
1 | 79.8.208.125 - - [20/Nov/2009:23:24:45 +0000] "GET / HTTP/1.1" 200 2900 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5" |
As you can see, the browser token is the same because both Google Chrome OS and my Mac are running the same browser version. Google Chrome OS identifies itself with the CrOS i686 9.10.0 token, as you can see in the first user agent.
I’m wondering how long it takes before analytics software will start tracking Google OS users.
Nice catch –
I was playing around in CodeIgniter’s built-in user-agent functions. Chrome on OSX comes back as you’ve stated. Wondering if there’s a way to append their reference array with a value that would allow Chrome to be properly identified.