From 60c96ec104bccb95764d502a045f297c229e98ed Mon Sep 17 00:00:00 2001 From: Justin Grevich Date: Sun, 25 Oct 2015 14:34:06 -0700 Subject: [PATCH] Update SSL endpoint hostname According to the current developer reference it looks like this is using the wrong SSL endpoint: https://developers.google.com/analytics/devguides/collection/protocol/v1/reference#endpoint --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index e081e7a..6149daf 100644 --- a/app.js +++ b/app.js @@ -89,7 +89,7 @@ app.post('/collect', function(req, res){ console.log(JSON.stringify(data)); console.log(req.body); //Make Post Request - request.post("https://www.google-analytics.com/collect?" + qs.stringify(data), + request.post("https://ssl.google-analytics.com/collect?" + qs.stringify(data), function(error, resp, body){ console.log(error); })