mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-05-08 05:29:09 -05:00
Add GA to app.js
This commit is contained in:
@@ -10,12 +10,11 @@ import Plex from './plex/Plex';
|
|||||||
import SimilarList from './SimilarList';
|
import SimilarList from './SimilarList';
|
||||||
import PopularList from './PopularList';
|
import PopularList from './PopularList';
|
||||||
|
|
||||||
function initializeReactGA() {
|
ReactGA.initialize('UA-138294820-1');
|
||||||
ReactGA.initialize('UA-138294820-1');
|
|
||||||
ReactGA.pageview('/homepage');
|
|
||||||
}
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
ReactGA.pageview(window.location.pathname + window.location.search);
|
||||||
this.props.fetchUser();
|
this.props.fetchUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user