Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 38eeda3

Browse files
RickRalexspence
authored andcommitted
Only check for production mode for GA. Fixes #143
1 parent 37cb39a commit 38eeda3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class App extends Component {
1111
}
1212

1313
componentDidMount() {
14-
if (process.env.NODE_ENV === 'production' && process.env.GA_TRACKER_ID) {
15-
ReactGA.initialize(process.env.GA_TRACKER_ID);
14+
if (process.env.NODE_ENV === 'production') {
15+
ReactGA.initialize('UA-75642413-1', { debug: false });
1616
this.history.listen((location) => {
1717
ReactGA.set({ page: location.pathname });
1818
ReactGA.pageview(location.pathname);

0 commit comments

Comments
 (0)