Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Added previous version to payload.
Mike Cao46174f652caa
diff --git a/scripts/telemetry.js b/scripts/telemetry.jsindex 8f504b886..ee44746a4 100644--- a/scripts/telemetry.js+++ b/scripts/telemetry.js@@ -23,6 +23,7 @@ async function sendTelemetry(action) {const { default: isDocker } = await import('is-docker');const { default: fetch } = await import('node-fetch');+ const upgrade = json.version !== undefined && json.version !== pkg.version;const payload = {action,@@ -33,7 +34,8 @@ async function sendTelemetry(action) {os: `${os.type()} (${os.version()})`,docker: isDocker(),ci: isCI,- upgrade: json.version !== undefined && json.version !== pkg.version,+ prev: json.version,+ upgrade,};await retry(