WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

[iOS] Stats: Insights tab show different numbers on iOS and Android

Open staskus opened this issue 3 years ago • 1 comments

Different number of views of the week

Image

Different number of visitors of the week

Image

Different percentages (by one, most probably different rounding)

Image Image

This year - inconsistent rounding. Some places we have decimals on iOS, on other places on Android

Image

Top follower numbers different

Image

Posting activity different colors

Image

staskus avatar Sep 22 '22 13:09 staskus

Thanks for creating this issue @staskus!

Different number of views of the week

Tapping on each data point on the chart gives the daily total for views on that chosen day. Summing these manually gives the weekly total. This matches the total for "this week" that's shown on iOS, but it doesn't match on Android.

Different number of visitors of the week

Same difference as with views.

Different percentages (by one, most probably different rounding)

Could be rounding. For the "Most Popular Time" card, the percentages shown on Android match those on the web while iOS is different. For the "Total Comments" card, when I looked at this for a particular site, there were six comments this week and none last week. On Android, it showed up as an infinity percent increase "+6 (∞%)". On iOS, it showed up as a zero percent increase "+6 (0%)". Instead we could show "+6" or "+6 (n/a %)", but the former feels more correct because a % change shouldn't be provided if the previous period was zero. The latter is also harder to localize.

This year - inconsistent rounding. Some places we have decimals on iOS, on other places on Android

Since this is a presentation issue (not a data issue like some of the above differences), it's not crucial that this match. It would be nice for iOS, Android, and the web to match. However, due to space constraints, it might make sense that mobile uses K to abbreviate thousands while the web doesn't as seems to be the case here. Other differences (e.g. whether to round 0.8 to 1) seem like they should be consistent across all platforms.

Top follower numbers different

Looking at the numbers for the time someone's been a follower, it looks like Android is rounding up (e.g. the ceil() function is applied to the number). So a follower who's been around for 7 months and 5 days is shown as "8 months" on Android. iOS seems to handle this as I would expect and shows "7 months".

Posting activity different colors

On Android, it looks like the week starts on Sunday. On iOS, it looks like the week starts on Monday (same as the web). When I look at which days have more posts (darker green), I see differences between all platforms (iOS is different from Android and Android is different from the web).

guarani avatar Sep 22 '22 23:09 guarani

Thank you for your insights, @guarani!

Since this is a presentation issue (not a data issue like some of the above differences), it's not crucial that this match.

That's a good point.

Other differences (e.g. whether to round 0.8 to 1) seem like they should be consistent across all platforms.

Yes, agree.


All in all, I'll review it a bit further and compare it to the web as well. I imagine it could result in a couple of changes on iOS and a couple of changes on Android.

staskus avatar Sep 23 '22 07:09 staskus

I created 2 issues to address on iOS:

  • https://github.com/wordpress-mobile/WordPress-iOS/issues/19345 - wrong time ranges for Views & Visitors
  • https://github.com/wordpress-mobile/WordPress-iOS/issues/19346 - number rounding & presentation issues

I'm closing this issue as it served as an investigation.

staskus avatar Sep 26 '22 11:09 staskus

Are there any additional bug reports here that we should capture in separate issues? I see mentions of web and Android issues, but I'm not sure if they've been captured or may be lost when this issue is closed.

guarani avatar Sep 26 '22 18:09 guarani

Are there any additional bug reports here that we should capture in separate issues? I see mentions of web and Android issues, but I'm not sure if they've been captured or may be lost when this issue is closed.

I'll create additional issues and will reference them here.

staskus avatar Sep 27 '22 06:09 staskus

Additional issues:

  • https://github.com/wordpress-mobile/WordPress-Android/issues/17211
  • https://github.com/wordpress-mobile/WordPress-Android/issues/17212
  • https://github.com/wordpress-mobile/WordPress-iOS/issues/19355
  • https://github.com/wordpress-mobile/WordPress-iOS/issues/19356
  • https://github.com/wordpress-mobile/WordPress-Android/issues/17213

staskus avatar Sep 27 '22 07:09 staskus

Thanks @staskus!

guarani avatar Sep 27 '22 15:09 guarani