The current behavior is:
If a user opt in during onboarding, we will log it in MobileWikiAppDailyStats with appInstallAgeDays = 0
If a user opt in in the setting, we will NOT log it in MobileWikiAppDailyStats with the current appInstallAgeDays, but only when appInstallAgeDays changes
Expected behavior:
When a user opt in in the setting, we log it in MobileWikiAppDailyStats with the current appInstallAgeDays
Steps to reproduce
1, Set a break point in WMFDailyStatsLoggingFunnel
2, Erase all content and settings in simulator
3, Build and Install the app, write down the appInstallID when the app is initialized and make sure daysInstalledNumber=0
4, Turn on "Send usage reports"
5, Launch the app several times later
6, Query the appInstallID in MobileWikiAppDailyStats ~2h later
Actual Result
We did not see any record for this appInstallID
See also T193908