From d12bf5c9e213d11b1fffb2a84c6f9e0a1fcbef8f Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Mon, 25 May 2026 21:47:34 +0900 Subject: [PATCH] fix(app): use proper ReactGA pageview API with hitType and page params --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (