Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Stats: Insights tab show different numbers on iOS, Android and Web #19337

Closed
staskus opened this issue Sep 22, 2022 · 7 comments
Closed

Comments

@staskus
Copy link
Contributor

staskus commented Sep 22, 2022

Different number of views of the week

Created issues:

Inside views & visitors details view:

  • iOS: Although Sept 19 - Sept 25 are selected, the diagram starts from Sept 17 (incorrect) 🔴
  • iOS. Shows 825, the correct number for a 7 day period (correct) ✅
  • Android: The diagram and selection starts on Sept 19 (correct) ✅
  • Android: Shows 814, the wrong number (incorrect) 🔴
  • Web: Starts Sept 19 and shows 782 (correct) ✅

image

Inside views & visitors details view (If we pick the previous week):

  • iOS shows 924 (correct) ✅
  • Android shows 950 (incorrect) 🔴
  • Web shows 924 (correct) ✅

previous week

In Insights tab:

  • iOS shows 825 (correct number for 7-day period) ✅
  • Android shows 1026 (incorrect number for 7-day period) 🔴
  • Either naming of "This week" is misleading or the graph should only represent this week.

image

Counting day by day

  • If we add all days one by one from Monday (Sept 19 to Today), we get 782. It matches what the Web is showing
  • If we add all days one by one for one week period (Sept 17 to Today), we get 825. It matches what iOS is showing.

Different number of visitors of the week

Inside views & visitors details view:

Created issues:

Stats:

  • Web: Starts Sept 19 and shows 57 (correct - it only shows unique visitor numbers) ✅
  • iOS: Although Sept 19 - Sept 25 are selected, the diagram starts from Sept 17 (incorrect) 🔴
  • iOS. Shows 131 (incorrect - it adds up all the daily visitors for the last 7 days) 🔴
  • Android: The diagram and selection starts on Sept 19 (correct) ✅
  • Android: Shows 125 the wrong number (incorrect) 🔴

insights tab visiors

Inside views & visitors details view (If we pick the previous week):

All platforms differ in numbers:

  • Web (Sept 12 to Sept 28), 106 ✅
  • iOS (Sept 12 to Sept 18), we get 192 (incorrect - it adds up all the daily visitors for the last 7 days) 🔴
  • Android (Sept 12 to Sept 28), 199 (doesn't match day by day numbers) 🔴

different number of visitos of the week

In Insights tab:

  • Web shows 57 (correct) ✅. Web doesn't just add all the daily numbers, it only counts unique visitors
  • iOS shows 131 (incorrect) - iOS adds up all the daily visitors creating visitor duplicated 🔴
  • Android shows 174 (incorrect) 🔴

This year stats (2021)

Created issues:

Stats:

  • iOS and Android match
  • Web doesn't match

💡 Do we pick up a little bit different start date based on the time zone? Or is there any other issue here?

image

Different percentages (by one, most probably different rounding) #19346

Image
Image

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

Image

Top follower numbers different

Image

Note: not worth fixing since there'll be a change in the design #18602

Posting activity in different colors

Image

@guarani
Copy link
Contributor

guarani commented Sep 22, 2022

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).

@staskus
Copy link
Contributor Author

staskus commented Sep 23, 2022

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 staskus changed the title [iOS] Stats: Insights tab show different numbers on iOS and Android [iOS] Stats: Insights tab show different numbers on iOS, Android and Web Sep 23, 2022
@staskus staskus self-assigned this Sep 23, 2022
@staskus
Copy link
Contributor Author

staskus commented Sep 26, 2022

I created 2 issues to address on iOS:

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

@staskus staskus closed this as completed Sep 26, 2022
@guarani
Copy link
Contributor

guarani commented Sep 26, 2022

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.

@staskus
Copy link
Contributor Author

staskus commented Sep 27, 2022

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.

@guarani
Copy link
Contributor

guarani commented Sep 27, 2022

Thanks @staskus!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants