From 8ce833c93be08367f16d51b8e1aa6f73b51c0f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20F=C3=A9=20Santos?= Date: Thu, 30 Apr 2026 11:22:30 +0100 Subject: [PATCH] fix: suppress SPA pageview tracking when auto-pageview is disabled The handlePush function was still calling track() on SPA navigations regardless of the auto-pageview setting. Gate that call behind the autoPageview flag while keeping URL state and performance flush active. --- src/tracker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracker/index.js b/src/tracker/index.js index 68b7fe77b..521a1f717 100644 --- a/src/tracker/index.js +++ b/src/tracker/index.js @@ -91,7 +91,7 @@ currentRef = currentUrl; currentUrl = normalize(new URL(url, location.href).toString()); - if (currentUrl !== currentRef) { + if (currentUrl !== currentRef && autoPageview) { setTimeout(track, delayDuration); } };