From d02e59afd638c04d91d3f849f85d33edded1515f Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 15 Feb 2018 18:08:53 -0800 Subject: [PATCH] plugged config file in for ga code --- react/components/GAListener/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/components/GAListener/index.js b/react/components/GAListener/index.js index c66d1f94..f388e2a0 100644 --- a/react/components/GAListener/index.js +++ b/react/components/GAListener/index.js @@ -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);