Skip to content

Commit e415c72

Browse files
committed
🐛 (lp) Fix trackPageView not being called on first route change
1 parent ae1898c commit e415c72

File tree

2 files changed

+49
-45
lines changed

2 files changed

+49
-45
lines changed

apps/landing-page/src/hooks/useTrackPageViewQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const useTrackPageViewQuery = ({ enabled }: Props) => {
2323
if (!enabled) return;
2424

2525
const routerSub = router.subscribe("onLoad", (event) => {
26-
if (event.pathChanged && event.fromLocation)
26+
if (event.pathChanged)
2727
trackPageView({
2828
data: getPageViewBodyProps(),
2929
});

0 commit comments

Comments
 (0)