Originally posted by: Zuni
I just tested a default install here with opera 7 and 6 and the user_agent string contains opera, therefore our stats software will pick it up as opera (I know as I wrote the stats software and specifically hunt for that word). While the string may contain MSIE compatible or Mozilla compatible the default Opera 6 and 7 installs DO have opera in the string, which is how our stats software knows its an opera browser. I agree that people can fudge user_agent strings, but for the most part (as most people have no idea how to do it) it's accurate.
Here are the user agents from the CGI variable scope for both browsers
Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.03 [en]
Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.05 [en]
Note both contain the word opera. If you want to test it output USER_AGENT in your web scripting language of choice, it probably fudges IE in the middle of the user agent string but appends opera onto the end. That is what the windows installs do anywho.