Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix bug: bfcache pageviews not firing (#5082)

RobertJoonasc91fb8c105b2
diff --git a/tracker/src/plausible.js b/tracker/src/plausible.js
index dd4926d4b5..3d5f68f11a 100644
--- a/tracker/src/plausible.js
+++ b/tracker/src/plausible.js
@@ -275,7 +275,7 @@
function page(isSPANavigation) {
{{#unless hash}}
- if (lastPage === location.pathname) return;
+ if (isSPANavigation && lastPage === location.pathname) return;
{{/unless}}
{{#if pageleave}}