screenType is always mobile


I am use piwik API in my application and need to show the number of mobile users in proportion to desktop users. For this purpose i m use Live.getLastVisitsDetails API method and filter data by the field ‘screenType’. But the problem is that every record in API response contains field screenTye=‘mobile’ although browsers and OS are not mobile (Windows 7, Firefox and so on). Can anybody help me with this problem? Can be this because of some wrong piwik installation or i need something do to track mobile clients or something else?


(Matthieu Aubry) #2

the screentype is only based on the resolution width/height ratio

Maybe to select mobile devices you could write a segment that matches OS == Android OR OS == Iphone etc. ?

if you manage to find the segment to write please put it here as it is interesting :slight_smile: