Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Mobile device

Avatar

Level 3

Hi,

on my implementation regarding a mobile App (iOS and Android), I'm able to collect a detail about mobile device for Android, not able for iOS, I have only Apple iPhone or Apple iPad, for Android I have further details.

Is it something intrinsic in  Adobe Analytics or do we need perform some additional settings?

 

devicetype.png 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

@aleber  Solution of your problem statement has been listed in below blog :  https://experienceleaguecommunities.adobe.com/t5/adobe-antics-questions/devices-report-not-showing-b...

Avatar

Level 3

Hi @aleber 

Mobile devices report their firmware version in the user agent string, not the device version. For example, a current-gen iPhone contains an identical user agent as its last generation iPhone if they are on the same firmware version. Since there is no way to determine an iPhone’s device version using JavaScript, all iPhones belong in the same bucket. Mobile dimensions are strictly based on lookups that reference user agent, so you’ll find that all iPhones report a mobile screen size of 320 x 480.

If you want to collect iPhone device version, there are two ways that you can circumvent this limitation:

  • Use the iOS SDK: The mobile SDK contains dimensions that expose the device version for use in reporting. This method is more ideal for mobile apps than websites.
  • Use other variables available through Javascript: Some variables, such as screen.height and screen.width, can be used to infer device version. For example, you could use the following snippet of code on your site:
    if (navigator.userAgent.indexOf('iPhone') > -1) {
    s.eVarXX = screen.width + "x" + screen.height;
    }
    This code block first detects if the device is an iPhone. If it is, the code uses JavaScript to pull the screen resolution into an eVar. This method allows you approximately detect the device version if screen resolutions are unique.