Solved

Is there any way to get user device type?

  • 19 February 2024
  • 2 replies
  • 57 views

Hello!

Is there any way to get the user device type using Amplitude's Web SDK?

I need to identify if the user device type is an "Apple iPhone 14 Pro Max", for example. I noticed that this information is available on the Amplitude dashboard but i couldn't find a method to get this information on the front-end from the server.


Thank you in advance!

icon

Best answer by Saish Redkar 22 February 2024, 20:05

View original

2 replies

Userlevel 7
Badge +10

Hi @Doris 

Are you looking for a function to get this info from the Web SDK?

I don’t think they make it available readily but they have some notes here regarding the device family value - https://www.docs.developers.amplitude.com/data/sdk-troubleshooting-and-debugging/#device-family-is-not-appropriate

The only explicit mention in their SDK doc is the ability to opt out of device tracking here - https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/#optional-tracking

Thank you Saish! Makes sense, now. They're using the user agent to match to a device – this are not reliable at all.

Thanks!

Reply