Skip to content

Commit

Permalink
remove location from init dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Mar 28, 2024
1 parent 824f2ae commit 1a58dce
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/app/base/hooks/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,11 @@ export const useGoogleAnalytics = (): boolean => {
});
ReactGA.send({
hitType: "pageview",
page: location.pathname + location.search,
title: location.pathname,
page: window.location.pathname + window.location.search,
title: window.location.pathname,
});
}
}, [
allowGoogleAnalytics,
authUser,
uuid,
version,
location.pathname,
location.search,
]);
}, [allowGoogleAnalytics, authUser, uuid, version]);

useEffect(() => {
ReactGA.send({
Expand Down

0 comments on commit 1a58dce

Please sign in to comment.