Reputation: 13507
I'm familiar with Navigator
object, but is there more ways to gather more data about user? OS, extensions, cookie or other in-browser settings - everything i can use to replicate client-side errors.
I know about bunch of analytics services out there, but right now i'm curious, what data could be gathered with vanilla javascript and minimal efforts.
Thank you!
Upvotes: 0
Views: 843
Reputation: 68655
When you will do
console.log(navigator);
You will see.In which there is also the OS version (oscpu
) only for Firefox.
These are the properties in the navigator
object.
platform = Win32
appCodeName = Mozilla
appName = Netscape
appVersion = 5.0 (Windows; en-US)
language = en-US
mimeTypes = [object MimeTypeArray]
oscpu = Windows NT 5.1
vendor = Firefox
vendorSub = 1.0.7
product = Gecko
productSub = 20050915
plugins = [object PluginArray]
securityPolicy =
userAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
cookieEnabled = true
javaEnabled = function javaEnabled() { [native code] }
taintEnabled = function taintEnabled() { [native code] }
preference = function preference() { [native code] }
OSCPU
Upvotes: 1
Reputation: 21638
The main information come from the user agent string for browser version and OS but it is not guaranteed to be truthful and can be easily hacked and some browsers lie about themselves. You can also get information about the screen size and resolution.
Upvotes: 0