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
Add data-auto-pageview attribute to tracker script
Manuel Fé Santos790354d3ac7b
diff --git a/src/tracker/index.js b/src/tracker/index.jsindex 85ad2ffea..68b7fe77b 100644--- a/src/tracker/index.js+++ b/src/tracker/index.js@@ -37,6 +37,7 @@const domain = config('domains') || '';const credentials = config('fetch-credentials') || 'omit';const perf = config('performance') === _true;+ const autoPageview = config('auto-pageview') !== _false;const domains = domain.split(',').map(n => n.trim());const host =@@ -197,7 +198,7 @@const init = () => {if (!initialized) {initialized = true;- track();+ if (autoPageview) track();handlePathChanges();handleClicks();if (perf) initPerformance();