352 react ga pageviews #353

Merged
bones7242 merged 5 commits from 352-react-ga-pageviews into master 2018-02-16 16:58:59 +01:00
Showing only changes of commit d02e59afd6 - Show all commits

View file

@ -1,8 +1,8 @@
import React from 'react'; import React from 'react';
import GoogleAnalytics from 'react-ga'; import GoogleAnalytics from 'react-ga';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
// const config = require('../../../../config/speechConfig.js'); const config = require('../../../config/speechConfig.js');
const googleApiKey = 'UA-60403362-3'; // config.analytics.googleId; const googleApiKey = config.analytics.googleId;
GoogleAnalytics.initialize(googleApiKey); GoogleAnalytics.initialize(googleApiKey);