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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user