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:
@@ -91,7 +91,7 @@
|
||||
currentRef = currentUrl;
|
||||
currentUrl = normalize(new URL(url, location.href).toString());
|
||||
|
||||
if (currentUrl !== currentRef) {
|
||||
if (currentUrl !== currentRef && autoPageview) {
|
||||
setTimeout(track, delayDuration);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user