Skip to content

📈 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!

sending previous page for SPA apps

Blue Mousee8ff2dbbbf02
diff --git a/src/Lib.ts b/src/Lib.ts
index 0e0dde23a..dfa57c834 100644
--- a/src/Lib.ts
+++ b/src/Lib.ts
@@ -218,7 +218,6 @@ export class Lib {
if (this.checkIgnore(pg)) return
- this.activePage = pg
const perf = this.getPerformanceStats()
const data = {
@@ -232,8 +231,10 @@ export class Lib {
unique,
pg,
perf,
+ prev: this.activePage,
}
+ this.activePage = pg
this.sendRequest('', data)
}