Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

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

Open staskus opened 5 months ago

staskus commented 5 months ago

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:

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

jeherve commented 4 months ago

Also in #37388.

8154696-zen

github-actions[bot] commented 4 months ago

Support References

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

annacmc commented 1 month ago

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