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
fix update-tracker regex repalce
Francis Cao53557f00b49a
diff --git a/scripts/update-tracker.js b/scripts/update-tracker.jsindex fdec11dc0..5c36ec52d 100644--- a/scripts/update-tracker.js+++ b/scripts/update-tracker.js@@ -10,10 +10,7 @@ if (endPoint) {const tracker = fs.readFileSync(file);- fs.writeFileSync(- path.resolve(file),- tracker.toString().replace(/"\/api\/send"/g, `"${endPoint}"`),- );+ fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `"${endPoint}"`));console.log(`Updated tracker endpoint: ${endPoint}.`);}