Telemetry

Summary

Lifecycle

if isDendronWorkspace {
	setupSegmentWithCacheFlush
		setupSegmentClient
	...
	identify
	track(InitializeWorkspace)
}
showWelcome
showWelcome { 
	track(Install)
}

Common

setupSegmentClient {
	segment = SegmentClient.instance
}

../packages/common-server/src/analytics.ts (Private)

instance { 
	new SegmentClient
}
constructor {
	status = getStatus
	return if @_hasOptedOut

	uuidPath := readOrCreate
}
getStatus {
	if getDisableConfigPath return "disabled"
	config = readConfig {
		read "$HOME/.dendron.telemetry"
	}

	if !config return "enabled"
	return config.status
}

Reference

Cook

Past Tasks


Backlinks