Different Annual Site Data returned from/insights and /visits endpoints
Impacted plugin
Jetpack
Quick summary
/stats/visits?unit=year and stats/insights endpoints return different data for the same data points. It results in differences in numbers shown on Insights or Traffic pages on the web:
- 5437 vs 5462 comments
- 11246 vs 11234 likes
| Insights | Traffic |
|---|---|
Steps to reproduce
- Select a higher-traffic site
- Go to Stats
- Select the Traffic tab
- Change the date range from Days to Years on the chart
- Select a year
- Make a note of "Likes" and "Comments" numbers
- Select the Traffic tab
- Select View all annual insights
- Make a note of "Likes" and "Comments" numbers for the same year
- Notice a difference
A clear and concise description of what you expected to happen.
The same data points should have the same values on different Stats pages (or endpoints).
What actually happened
The same data points have different values on different Stats pages (or endpoints).
Impact
Most (> 50%)
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
No response
Also in #37388.
8154696-zen
Support References
This comment is automatically generated. Please do not edit it.
- [ ] 8154696-zen
- [ ] 8969050-zen
- [ ] 9087001-zen
I have P2'd this in pejTkB-1AX-p2
Similar issue here 8969050-zen
User from this ticket 8969050-zen added that this seems to affect the "Related Posts." I have also checked it, and I can see the issue. The "related posts" is also not showing the missing posts from the "All-time annual insights data."
9087001-zd-a8c is requesting an update on this open issue.
I had a test with previously suggested possible solutions but haven't resolved it: pejTkB-1AX-p2#comment-1838.