Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

How is the model of a mobile device recognized?

Piano Analytics identifies the device model from the User-Agent and the Client Hints sent by the visitor's browser or app. It sends this information to its device detection partner, Device Atlas, which returns the details that fill the device properties. The model can't always be identified precisely: Apple devices in particular only share generic information.

To add precise contextual data, Piano Analytics works with Device Atlas, in particular for device and smartphone detection. The detection uses these elements, depending on which are available:

  • User-Agent: a text string sent by the browser or app that describes the device and software.

  • Client Hints: additional details sent by the browser. See Client Hints.

  • mfmd hit parameter for older implementations

Apple devices restrictions

Piano Analytics can't precisely identify Apple models from the User-Agent that Apple sends, because it is increasingly generic. For example, here is the User-Agent of an iPad:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0.1 Safari/605.1.15

This User-Agent doesn't say it's an iPad. Since iOS 13, Safari no longer includes elements indicating that it runs on iOS, as explained in this article. When a visit uses Safari, the iPad or iPhone User-Agent can't be told apart from the computer version of macOS. Piano Analytics therefore recognizes the device as "Desktop", because the User-Agent doesn't contain the information. There is currently no way to detect iPads or iPhones more precisely.

This only applies to iOS devices. Detection for Android devices is unchanged.

What you see in your reports

In reports on device models, a large share of Apple devices appears under a generic name such as "iPhone" instead of the exact model (for example, iPhone 13). Some Android devices can also show as "Unknown" or "N/A" when the browser shares very little information.

Last updated: