From 5f21f4c270592315f73ee707cfc2307c18fdf6d1 Mon Sep 17 00:00:00 2001 From: JAMES ZHANG Date: Wed, 20 Apr 2016 10:35:48 -0500 Subject: [PATCH] add google analytics to as env var --- app.js | 3 +++ views/index.ejs | 9 +++++++++ 2 files changed, 12 insertions(+) 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 @@ +