Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelOverseer committed Aug 6, 2023
1 parent 91992c7 commit 7039de1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="App">
Expand Down

0 comments on commit 7039de1

Please sign in to comment.