diff --git a/app.js b/app.js index 942913f7..0dde7da4 100755 --- a/app.js +++ b/app.js @@ -34,6 +34,9 @@ var toneAnalyzer = watson.tone_analyzer({ app.get('/', function(req, res) { res.render('index'); + res.render('index', { + ga: process.env.GOOGLE_ANALYTICS + }); }); app.post('/api/tone', function(req, res, next) { diff --git a/views/index.ejs b/views/index.ejs index 43d95e62..edf0e727 100755 --- a/views/index.ejs +++ b/views/index.ejs @@ -337,6 +337,15 @@ +