Skip to content

Commit

Permalink
Merge pull request #120 from mobeigi/ga-4-no-custom-title
Browse files Browse the repository at this point in the history
Google GA4: Don't include custom title
  • Loading branch information
mobeigi authored Nov 26, 2023
2 parents 3f74a3e + 52d9e8d commit 7542e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const App = () => {

// Fired on every route change
useEffect(() => {
ReactGA.send({ hitType: 'pageview', page: location.pathname + location.search, title: document.title });
ReactGA.send({ hitType: 'pageview', page: location.pathname + location.search });
}, [location]);

return (
Expand Down

0 comments on commit 7542e34

Please sign in to comment.