diff --git a/src/App.tsx b/src/App.tsx index 936110d..76bb772 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,7 +13,7 @@ import Search from './features/search/Search'; const AppMain: React.FC = () => { const location = useLocation(); React.useEffect(() => { - ReactGA.send('pageview'); + ReactGA.send({ hitType: 'pageview', page: location.pathname }); }, [location]); return (