Period reports must always or never include today's statistics
|Reported by:||matt||Owned by:||matt|
Description (last modified by matt)
Reports for weeks, months and year do not include the most recent "today" data. Reports for weeks/month/year are only processed once per day, therefore are not 'real time' as such. This was done for performance optimization in the first place.
more info from Anton: I researched on this problem little more and I found real bug in the logic. Follow instructions below and you will see where the problem is:
- Setup always_archive_data = false
- Make some visits from different browsers and/or machines.
- Query for last day, then last week, month and for last year. You will see the same numbers for visits, actions etc. We are expecting weekly, monthly and yearly statistics do not include today's statistics. BUG.
Actually Piwik can't find archive built for last week, and it build it including today's visits. So Piwik does not follow the same logic. See next...
- Now you have all archives built. Try to make some more visits and query for last day, week, month and year again. You will see new visits in the last day, but you will not see them in last month and year, but you will see it for last week! So it is totally confusing. Now Piwik does not include new visits from today (just like you said in your previous message). But it does it if no archives built in the past.
P.S. If you set always_archive_data = true and ask Piwik for visits for last day, week, month and year again - it will be ok including all today's visits.
So Piwik does not follow your logic described in the previous letter. It seems that the logic is that Piwik checks whether archive is built already and simply does not rebuild it.
It must NEVER include today's statistics... or ALWAYS include today's statistics. We can also contemplate a config file boolean setting include_today_statistics_in_period_archives
Change History (15)
comment:2 Changed 5 years ago by vipsoft (robocoder)
- Milestone changed from RobotRock to DigitalVibes
comment:9 Changed 4 years ago by matt (mattab)
- Milestone changed from 0 - Piwik 0.6.4 to Features requests - after Piwik 1.0
comment:14 Changed 3 years ago by matt (mattab)
- Milestone changed from Feature requests to 1.3 - Piwik 1.3
- Owner set to matt
- Priority changed from low to major