plugged config file in for ga code

This commit is contained in:
bill bittner 2018-02-15 18:08:53 -08:00
parent 08e6e2cacd
commit d02e59afd6

View file

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