Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will flathub provide installation statistics? #177

Closed
Jehan opened this issue Dec 7, 2017 · 13 comments
Closed

Will flathub provide installation statistics? #177

Jehan opened this issue Dec 7, 2017 · 13 comments

Comments

@Jehan
Copy link

Jehan commented Dec 7, 2017

In GIMP, we don't have any statistics, especially since that is installed from so many different place.

I think this would be useful information though (even though we'd have to gather them from various sources), as long as these statistics are fully anonymized of course. This point is extremely important.

Will flathub provide any such installation/update statistics?
Thanks!

@TingPing
Copy link
Member

TingPing commented Dec 7, 2017

It is planned and basic numbers can already be extracted from the logs (total downloads/unique IPs per app). This just needs to be exposed in some form which might come after we have a new flathub web store.

@Jehan
Copy link
Author

Jehan commented Dec 7, 2017

Awesome.

@nedrichards
Copy link
Member

In the interim, if you'd like an update on your apps stats, ask on IRC @alexlarsson is happy to share the info!

@sudden6
Copy link

sudden6 commented May 29, 2018

Has there been any progress on this matter?

@ahayzen
Copy link

ahayzen commented May 29, 2018

There is a task here about providing statistics within flathub.org flathub-infra/linux-store-frontend#19

@SilverRainZ
Copy link

How is it going now? :D

@Eonfge
Copy link

Eonfge commented Sep 25, 2019

I've had questions from Upstream projects concerning download statistics. If I can provide them with rough numbers on download statistics, they can judge if Flathub is a worthy platform to support directly.

I think we're missing a big marketing opportunity here towards upstream developers, because they want to serve as many users as possible with as little effort as possible. This will likely be even more important for commercial products, for whom install bases need to be financially viable.

@Jehan
Copy link
Author

Jehan commented Sep 25, 2019

For the record, though Flathub does not have official/easy interface to provide statistics (as far as I know; hence this report is still opened), I did realize they already provide daily statistics file in json format, just waiting to be processed. For our needs (on GIMP, so it's more of curiosity than real needs, since we don't care about "commercial" or "opportunities", it's just fun to see how many people download GIMP) I made a quick shell script to process the json files. It's very basic, and basically just tells you how many people downloaded since the last update (or the update before, or again before…) with a per-arch break.

It's here: https://gitlab.gnome.org/Jehan/gimp-flathub-stats

Example run:

$ ./flathub-stats org.gimp.GIMP
Counting updates between 2019-09-02 20:28:05 +0000 and 2019-09-25 11:52:25+02:00:
........................ done!

x86-64 (98%): 62928 downloads including 61801 updates
i386 (1%): 953 downloads including 783 updates
aarch64 (0%): 56 downloads including 12 updates
Arm (0%): 86 downloads including 46 updates

Total:   64023 downloads in 24 days
Average: 2667 downloads per day

I think this kind of script could be enough for now for people waiting for more. :-)

P.S.: and patches are welcome if anyone wants to improve the script to generate graphs or whatnot.

@ahayzen
Copy link

ahayzen commented Sep 26, 2019

FWIW I have a tool that is able to generate graphs for apps here https://gitlab.com/ahayzen/flathub-api-stats-generator

For example it is able to generate a graph of the downloads of GIMP using the following command python3 main.py --report downloads_by_app --type graph --output out.png --report-args app-id=org.gimp.GIMP this then generates the following graph (note you can set a --cache-dir /tmp/cache-dir --model-skip-today so the model doesn't have to be redownloaded)

gimp

@dreua
Copy link

dreua commented Jun 26, 2020

Can someone clarify what the numbers from https://flathub.org/stats/ mean?
(e.g. "com.github.jeromerobert.pdfarranger": {"x86_64": [392, 377]})
Platform is obvious, but what is the meaning of the two values? My guess would be first: Total downloads including delta downloads; Second: Only delta downloads. Is this correct? Would it be reasonable to call the difference between the two something like "new installations" and plot that instead of delta downloads?

@TingPing
Copy link
Member

@dreua When a user updates it may be a delta update and it may not. We don't know the distinction between new installs and updates always.

@klausenbusk
Copy link

I just spent some time creating a simple javascript stat page: https://klausenbusk.github.io/flathub-stats/ (source here: https://github.com/klausenbusk/flathub-stats).

It is just a simple python script, which pull the stats from https://flathub.org/stats/ and transform them into a json file per ref + a little javascript to show the data. The data is pulled every 12 hour.

@razzeee
Copy link
Member

razzeee commented Jun 18, 2023

I'll close this, as we have been showing this data on flathub.org for some time now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants