Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit a46e059

Browse files
committed
fix(page): prevent fake / events with pageviewOnLoad when router is not ready
1 parent 0809338 commit a46e059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function autoTracking () {
8080
return
8181
}
8282

83-
if (autoTracking.pageviewOnLoad) {
83+
if (autoTracking.pageviewOnLoad && router.history.ready) {
8484
trackRoute(router.currentRoute)
8585
}
8686

0 commit comments

Comments
 (0)