This content has been marked as final. Show 4 replies
The best way to find this information is to look in Google Analytics under browser type.
The "Mozilla/4.0" reference is just there for historical purposes. After the word compatible it says MSIE 8.0, which indicates Internet Explorer 8 (your browser).
You can find out more about user agent strings for different browser versions here: http://www.useragentstring.com/pages/useragentstring.php
However, if you are just generally trying to understand the types of browser people use when they visit your site, then as Adam says, use Google Analytics - it will be a lot less painful than sifting through user-agent strings by hand.
The browser is detected by two properties of the navigator object:navigator.appNamenavigator.appVersionA quick example for a test landing page:<script>document.write("Name: " + navigator.appName);</script>You can capture the value to a hidden field and, if that is relevant for your company, query the substring to find the browser ID.In PHP (server-side) you can use$_SERVER['HTTP_USER_AGENT'],
Bryan highlights an excellent point regading ths historical nature of "Mozilla".
Most browsers will show "Mozilla/4.0" or "Mozilla/5.0" indeed.Opera is one of the very few exceptions.The detection test http://faisalman.github.com/ua-parser-js/ shows:Opera/9.80 (Macintosh; Intel Mac OS X 10.7.5) Presto/2.12.388 Version/12.12
You can freely download the script for your own use from
It contains example code.
Thanks everyone for the quick replies. We do use Google Anayltics to determine which browsers are hitting our website in general but we were trying to troubleshoot when a form stopped working in IE8. I thought Marketo would have the information I needed to help determine the form failure timeframe. Now thanks to you guys I can now determine that informaiton.