Add GA to app.js

This commit is contained in:
mjrode
2019-04-13 21:51:24 -05:00
parent f865fcb7e6
commit aca5531e24
+3 -4
View File
@@ -10,12 +10,11 @@ import Plex from './plex/Plex';
import SimilarList from './SimilarList';
import PopularList from './PopularList';
function initializeReactGA() {
ReactGA.initialize('UA-138294820-1');
ReactGA.pageview('/homepage');
}
ReactGA.initialize('UA-138294820-1');
class App extends Component {
componentDidMount() {
ReactGA.pageview(window.location.pathname + window.location.search);
this.props.fetchUser();
}