jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Different Annual Site Data returned from/insights and /visits endpoints

Open staskus opened this issue 1 year ago • 2 comments

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
Different numbers 2022

Steps to reproduce

  1. Select a higher-traffic site
  2. Go to Stats
  3. Select the Traffic tab
  4. Change the date range from Days to Years on the chart
  5. Select a year
  6. Make a note of "Likes" and "Comments" numbers
  7. Select the Traffic tab
  8. Select View all annual insights
  9. Make a note of "Likes" and "Comments" numbers for the same year
  10. 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

staskus avatar Mar 29 '24 10:03 staskus

Also in #37388.

8154696-zen

jeherve avatar May 15 '24 07:05 jeherve

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 8154696-zen
  • [ ] 8969050-zen
  • [ ] 9087001-zen

github-actions[bot] avatar May 15 '24 07:05 github-actions[bot]

I have P2'd this in pejTkB-1AX-p2

annacmc avatar Aug 06 '24 03:08 annacmc

Similar issue here 8969050-zen

rosepajaroja avatar Nov 12 '24 06:11 rosepajaroja

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

rosepajaroja avatar Nov 13 '24 12:11 rosepajaroja

9087001-zd-a8c is requesting an update on this open issue.

ktyfuller604 avatar Dec 03 '24 15:12 ktyfuller604

I had a test with previously suggested possible solutions but haven't resolved it: pejTkB-1AX-p2#comment-1838.

dognose24 avatar Mar 27 '25 15:03 dognose24