📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
track previous page in submitPageView
Blue Mouse0ff394d785ad
diff --git a/src/Lib.ts b/src/Lib.tsindex f3c0e58b7..420d757a3 100644--- a/src/Lib.ts+++ b/src/Lib.ts@@ -417,10 +417,8 @@ export class Lib {const perf = this.getPerformanceStats()- const prev = this.getPreviousPage()-this.activePage = pg- this.submitPageView({ pg, prev }, unique, perf, true)+ this.submitPageView({ pg }, unique, perf, true)}submitPageView(@@ -429,6 +427,7 @@ export class Lib {perf: IPerfPayload | {},evokeCallback?: boolean,): void {+ const prev = this.getPreviousPage()const privateData = {pid: this.projectID,perf,@@ -442,6 +441,7 @@ export class Lib {so: getUTMSource(),me: getUTMMedium(),ca: getUTMCampaign(),+ prev,...payload,}