Detecting device where prototype is executed

I am looking for a way (a function?) which could indicate on what kind of device the prototype is being executed : laptop or mobile device…
Do you have any idea ?
I do not find something like a function which returns device characteristics.
THanks a lot!

hi there,

if it is just for tracking, if you connect your prototype to google analytics, it should be able to tell you which device was used for the browsing, including the brand if it is a mobile.
the other way would be of course to add a page and ask users to tell you :wink: