Google Analytics 'Mobile Device Model' and Android's Build.MODEL

Is there any way to obtain 'Mobile Device Model' parameter on Android that is posted to Google Analytics? Build.MODEL constant mismatches 'Mobile Device Model', that is displayed on Google Analytics web page in certain cases. For example, for Huawei Nova, 'Mobile Device Model' is 'CAN-L11', and Build.MODEL equals 'Huawei CAN-L11'.

Thanks in advance!


This cool and small library returns the commercial name based on the Build.MODEL and Build.DEVICE. https://github.com/jaredrummler/AndroidDeviceNames

Internally it uses this Google's maintained list with over 10K devices (which probably uses GA as well): https://support.google.com/googleplay/answer/1727131?hl=en

In case there is no automatic way to get the build model string used by Google Analytics, you might create your own solution using these sources.


Seems 'Mobile Device Model' is unusable in my case. The only way to get Google Analytics to work correctly is using events labels with Build.MODEL. You shoot two rabbits at once: reports become more detailed (earlier with 'Mobile Device Model' reports contained only 10% of overall collected data) and you get reusable data.

链接地址: http://www.djcxy.com/p/40444.html

上一篇: Java Streams:预处理中的distinct()

下一篇: Google Analytics的“移动设备模型”和Android的Build.MODEL