Skip to content

Commit

Permalink
GA | tracking pathname + hash path
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 4, 2021
1 parent f7f3f31 commit ceb6aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const App = props => {
const setupGA = () => {
/*eslint no-undef: 0*/
ReactGA.initialize(process.env.GA_ACCOUNT_ID);
ReactGA.pageview(window.location.pathname + window.location.search);
ReactGA.pageview(window.location.pathname + window.location.hash);
}

const addLogoutListenerForAllTabs = () => window.addEventListener(
Expand Down

0 comments on commit ceb6aad

Please sign in to comment.