modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
509 stars 73 forks source link

Analytics downloads are higher then downloads on project page #881

Open DeDiamondPro opened 4 months ago

DeDiamondPro commented 4 months ago

Describe the bug

I noticed that the download count in modrinth's analytics are higher than the data I am tracking myself using the api. Modrinth's data is about 20% higher. image

To further verify this I took the data for the past year (longer than my project has existed) and calculated the sum of all download counts, this is higher than the download count reported on my project page (191982 vs 172480) imageimage

Steps to reproduce

  1. Go to the analytics' download page
  2. Select a time frame that is higher than the age of the project you want to check
  3. Download the data
  4. Calculate the sum of all downloads
  5. Compare with download count on project page

Expected behavior

The download count of the analytics matches the download count displayed on the project page

Additional context

No response

MicrocontrollersDev commented 4 months ago

This also affects user profile pages where my profile says I have ~310k total downloads while analytics tells me I have ~340k total downloads in the past 2 years.

I've also noticed this goes further than just download count. My analytics revenue is 6 cents higher than what it shows in the revenue tab and in my dashboard current balance. They used to be synced until recently so this could just be connected to Modrinth pausing payouts though. (Edit: now ~70 cents different)