0

I'd like to know what type of device users are using when they submit a form on my website.

EDIT: I'm curious about more information than just mobile. iPhone, iPad, Android? Windows? Mac?

Is it possible with some javascript?

Sam Malayek
  • 2,963
  • 2
  • 24
  • 40
  • 1
    http://stackoverflow.com/questions/4117555/simplest-way-to-detect-a-mobile-device – Janno Aug 02 '16 at 06:05
  • You can check the brwser's header to identify the device, there are libraries like http://mobiledetect.net/ – ka_lin Aug 02 '16 at 06:06

2 Answers2

1

Check out the answer here:

What is the best way to detect a mobile device in jQuery?

Use this script to assign the device type to a hidden form field, then you can post it.

Community
  • 1
  • 1
Shizzle
  • 762
  • 1
  • 7
  • 25
1

you can cheek against the user agent and use some API like useragentstring to get all the data you want

Daniel Miron
  • 430
  • 3
  • 13