fix(app): use proper ReactGA pageview API with hitType and page params
This commit is contained in:
+1
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user