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.
This commit is contained in:
Manuel Fé Santos
2026-04-30 11:22:30 +01:00
parent 790354d3ac
commit 8ce833c93b
+1 -1
View File
@@ -91,7 +91,7 @@
currentRef = currentUrl;
currentUrl = normalize(new URL(url, location.href).toString());
if (currentUrl !== currentRef) {
if (currentUrl !== currentRef && autoPageview) {
setTimeout(track, delayDuration);
}
};