diff --git a/src/App.tsx b/src/App.tsx index f34ec9d..329fd25 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,7 +8,11 @@ ReactGA.initialize(TRACKING_ID); function App() { useEffect(() => { - ReactGA.pageview(window.location.pathname + window.location.search); + ReactGA.send({ + hitType: "pageview", + page: window.location.pathname, + title: "Home", + }); }, []); return (