I am working on web analytics, I have to find out the os of the visitor specific with following conditions
1.Cross-browser compatibility.
2.For all devices(tablet,iphone,mobile,deskstop,etc).
3.Maximum possible accuracy.
I have referred some questions regarding os detection, Answer is navigator.platform but it does not supported for some devices
Note: we cannot rely on useragent as well.
Any suggestion will be greatful.
navigator.platformandnavigator.userAgentto fallback if.platformreturns null or undefined?