From e55f326be8961d729b8e330c1ebfb3f6b997e85c Mon Sep 17 00:00:00 2001 From: Tingan Ho Date: Tue, 14 Apr 2015 12:08:42 +0800 Subject: [PATCH] Removed install reportage --- binaries/install-report.js | 41 -------------------------------------- package.json | 3 +-- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 binaries/install-report.js diff --git a/binaries/install-report.js b/binaries/install-report.js deleted file mode 100644 index 74deffba..00000000 --- a/binaries/install-report.js +++ /dev/null @@ -1,41 +0,0 @@ - -var qs = require('querystring'); -var osName = require('os-name'); -var pkg = require('../package.json'); -var http = require('http'); - -function getRequestOptions(path) { - var now = Date.now(); - - var _qs = { - v: 1, // GA Measurement Protocol API version - t: 'pageview', // hit type - aip: 1, // anonymize IP - tid: 'UA-51369650-5', - cid: Math.floor(Date.now() * Math.random()), // random UUID - cd1: osName(), - // GA custom dimension 2 = Node Version, scope = Session - cd2: process.version, - // GA custom dimension 3 = App Version, scope = Session (temp solution until refactored to work w/ GA app tracking) - cd3: pkg.version, - dp: path, - qt: 0, // queue time - delta (ms) between now and track time - z: now // cache busting, need to be last param sent - }; - - return { - hostname: 'ssl.google-analytics.com', - port: 80, - path: '/collect', - method: 'POST', - // GA docs recommends body payload via POST instead of querystring via GET - body: qs.stringify(_qs) - } -} - -var options = getRequestOptions('/install') -var req = http.request(options) -req.write(options.body); -req.end(); - - diff --git a/package.json b/package.json index 2949cf8f..78b9419a 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ "node": "*" }, "scripts": { - "test": "binaries/test", - "install": "node binaries/install-report.js" + "test": "binaries/test" }, "cldr-data-coverage": "full", "dependencies": {