Scoop-Core icon indicating copy to clipboard operation
Scoop-Core copied to clipboard

Optional Google Analytics

Open Ash258 opened this issue 4 years ago • 1 comments

As soon as shovel.ash258.com is ready and fully finished in these 2 months, it will be easy to combine and provide analytics for bucket maintainers and other interested entities. No specific user tracking. Just anonymous environment data for future development and manifests usage.

config SHOVEL_ANALYTICS default to $true|1. Environment SHOVEL_DISABLE_ANALYTICS to 1

Gathered data:

  • Installations/downloads
    • Number of downloads (install/update/download) commands
    • Failed
    • Successful
      • Bucket/app@version
      • Architecture
      • URL/Bucket/local?
  • Environment
    • OS - Useragent
      • powershell version@architecture
    • Proxy used?
    • Download method aria/normal/other in future
  • Lessmsi/msiexec

Homebrew has it ideally and on point. Similar will be implemented. https://docs.brew.sh/Analytics

Required implementation:

  • I like the idea about unique UUID stored in git config of $SCOOP_HOME
  • Differentiation from installations in CI and user is needed as main usage of Shovel should be Ci scenarios
  • Notify user while running first command after update
  • Public API for analytics consumers
  • Web UI to show them

Ash258 avatar Oct 24 '21 13:10 Ash258

In theory, additional layer of detailed information could be provided if user would want to take part. Will see after the initial implementation

Ash258 avatar Oct 24 '21 13:10 Ash258