feat: medusa-telemetry (#328)

* feat: adds a telemetry package to collect anonymous usage data

* fix: update telemetry host

* fix: adds medusa telemetry --disable

* fix: add tracking of link,login,new

* fix: interactively collect db credentials

* fix: require seed file

* fix: removes tracking from reporter
This commit is contained in:
Sebastian Rindom
2021-08-05 12:23:05 +02:00
committed by GitHub
parent f07cc0fa40
commit cfe19f7f9d
29 changed files with 6509 additions and 58 deletions
@@ -0,0 +1,13 @@
try {
const showAnalyticsNotification = require(`./util/show-notification`)
const Store = require(`./store`)
const eventStorage = new Store()
const disabled = eventStorage.disabled_
const enabledInConfig = eventStorage.getConfig(`telemetry.enabled`)
if (enabledInConfig === undefined && !disabled) {
showAnalyticsNotification()
}
} catch (e) {
// ignore
}