diff --git a/src/components/templates/RouteTracker/index.tsx b/src/components/templates/RouteTracker/index.tsx index 0d8cfe9..eee72d5 100644 --- a/src/components/templates/RouteTracker/index.tsx +++ b/src/components/templates/RouteTracker/index.tsx @@ -13,6 +13,10 @@ const RouteTracker = () => { analytics.page() }, [analytics, location]) + useEffect(() => { + window.scrollTo(0, 0) + }, [location]) + return }