The user itself does not have much to get, since the browser does not store user information. Who guada information is the sites in cookies , but this we already know that we can not read from other sites (domains).
So we have some information about the user's navigation, which exists in DOM
, in objects window
and navigator
, for example:
navigator.appName : browser name (using application to navigate);
navigator.appVersion : details of user environment versions (operating system and browser), example:
AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 68.0.3440.75 Safari / 537.36 5.0 (Windows NT 6.3; Win64; x64)
navigator.platform : returns the geolocation of the user (if allowed) through the browser you have already discovered.
navigator.platform : browser platform ( navigator.language : language used in the browser, example: pt-BR
; window.screen : screen size
Among others. More specific information about the user (name, email, etc), only what he has informed on some site or service and that can be shared. There are apis for this and, with the proper consent of the user you can get this data. Here are some examples of more common services:
Facebook API and Facebook SDK API
Google API
Twitter API