{"_id":"analytics-reporter","_rev":"37-33f9345092e83cb4eadec5cfe744f537","name":"analytics-reporter","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","dist-tags":{"latest":"1.2.2"},"versions":{"0.1.0":{"name":"analytics-reporter","version":"0.1.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"report":"./bin/report","all-reports":"./bin/all-reports"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"body-parser":"~1.8.1","express":"~4.9.0","googleapis":"^1.0.21","mongoose":"^3.8.19","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*"},"gitHead":"45f99031075450f8615b951700055a6945de8a11","_id":"analytics-reporter@0.1.0","_shasum":"d762f227d3394b16a1b479233db32c1debea214b","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"d762f227d3394b16a1b479233db32c1debea214b","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.1.0.tgz","integrity":"sha512-t+77Fqhuq6Zz6jmBUgdTIKtIVruyS6T2wbx6u3bz6yiot2IPiNz+KEc8xAA2YKlW4tOxf8v4Nu405wAb7B/5kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwpBOb3QBPYQbOLoWuesDz7EBOfdTtsK/XCvSHIz0b3AiBKDO1dvSRS0qhhicVZXf85Y1Qjxpu+6qzmY0SZAzLRjA=="}]},"directories":{}},"0.1.1":{"name":"analytics-reporter","version":"0.1.1","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"report":"./bin/report","all-reports":"./bin/all-reports"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"9e32168ab801935a8534392d724dfcaa5ed4a02d","_id":"analytics-reporter@0.1.1","_shasum":"5ad229231377d38598dfac3ea2087dd2954adee7","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"5ad229231377d38598dfac3ea2087dd2954adee7","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.1.1.tgz","integrity":"sha512-o730RJHcl9WA97HjyWMCN1LpIUEJ+8hCb7yIe5m2RZlGi5blTqjtDqdO5Rm8+milofIwwBVVrRgnf48HMw5a5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICC1im95QlNhm5eVCJJKLjNhtwUEErFYGMd0twDmySzVAiEAyNyt6WuysD/1hnu1XFdlOhOYrq7iLoXK2AVnWdcZzbk="}]},"directories":{}},"0.1.2":{"name":"analytics-reporter","version":"0.1.2","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"4e8d1cda387bda08e1a7fae50cb19f89ca0912cd","_id":"analytics-reporter@0.1.2","_shasum":"53043af4652a5d6932df81927c357ac7e3a4470d","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"53043af4652a5d6932df81927c357ac7e3a4470d","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.1.2.tgz","integrity":"sha512-sks5p8at9pJNtDRR9/+jxaVyG4Ank8TyPaCtXHLW1s9VC4wQO2K7GrhsVpcnsxX4oR+okHUcCy0epgZxwuZiBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUBKHBvnNhyUDpnsCohvyuEA31bJevdjPqA5Vd/htMTwIgNiiuCaeVnHI5MH2qQNpBJ7xMcFjzmzrx9lpmsW/brFo="}]},"directories":{}},"0.1.3":{"name":"analytics-reporter","version":"0.1.3","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"c9a8e34fc74c0a939b61549abcb886e6a0c722e5","_id":"analytics-reporter@0.1.3","_shasum":"8315002e0f861dbeadc561787a43d7d5adc84e0c","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"8315002e0f861dbeadc561787a43d7d5adc84e0c","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.1.3.tgz","integrity":"sha512-A3qyw65TovBdKFf/BKFrT56/nuprPEsBqbOkVlzCGv0QkprToZ6WMWQ+KNUV5a6gG6v2A6IE1VE6c7SnXKsUeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKsFeYaUbsx7D4t4N6Txb344Y3pwDcBCRdJ1csJiuIRwIhAJmHAW4PvapgB6Of8gFPhY4IGfA+CB/GspwzLHwpXTCn"}]},"directories":{}},"0.2.0":{"name":"analytics-reporter","version":"0.2.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"013017eacb2ec364bc38cf5b991b8436a075a65d","_id":"analytics-reporter@0.2.0","_shasum":"ce313bca088f281aa947c875ae56eea9d201ca78","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"ce313bca088f281aa947c875ae56eea9d201ca78","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.2.0.tgz","integrity":"sha512-mdYi9cyWh5WEPH3KnP4dJgpRRAEbM3uCwe/CGl4+B5VLHB3UCTbc3RQY4UZZygJGD9ynfS/SGgDlSfyFNISWBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfG9jjmeCl55i99HvEP+KWbLXXqgXW4NGjz3PULz7BkgIgH8qt0efNwQm4tLpkJeygp/TkcWcoRNsM9CBJOND3ft0="}]},"directories":{}},"0.3.0":{"name":"analytics-reporter","version":"0.3.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"d77edce2de50391e6b5e5f34c5a3cddc3c785bcf","_id":"analytics-reporter@0.3.0","_shasum":"409e6f2affb5f6997441c46840ed9488477c880d","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"409e6f2affb5f6997441c46840ed9488477c880d","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.3.0.tgz","integrity":"sha512-Mdj664E+Sr7Z2bBgHHBFFKKcZELB0b88mO5Nuf0DyBZve7kOuUAo0Zga96nmyMcOVE7B+Y1AdcKdqe92oSPm+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ5bGKgi2ybOFo0Aaq83ztDHPZ9kTRLDWq1hD3tPOakAIgTIWJ5Hmp86b/cdkBPKxtMmfdj8Uy37tR7TFgUToR0Mw="}]},"directories":{}},"0.4.0":{"name":"analytics-reporter","version":"0.4.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"37b7c9ccadb3e355a409922683f1eb8b907c31b1","_id":"analytics-reporter@0.4.0","_shasum":"308c5b2655546d187b741772a161159adfc3694a","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"308c5b2655546d187b741772a161159adfc3694a","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.4.0.tgz","integrity":"sha512-o6LtASNRxcXe9lpdFywUsVYfZoS7nnJqVTGiGgLZ7+4Gj84saVOVYuWSUZb2j6o2++O02CYa7DRa62fgx78yew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF5coLSqDoMO25xVA/fm0BflZN8ugtu/PAJVZzFjfuFgIhAOJTRpwZexYUHawFTZofKv2QTwdX8U+X7piLXbHGeRoB"}]},"directories":{}},"0.4.1":{"name":"analytics-reporter","version":"0.4.1","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"16d7f9069302ffbb4574bf7d76f44518be64f365","_id":"analytics-reporter@0.4.1","_shasum":"fee429f828605939100924cd71ef4911934fd330","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"fee429f828605939100924cd71ef4911934fd330","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.4.1.tgz","integrity":"sha512-gI5kSmeBbQTNLrDOwclmVkk+x1mH06U7gKvf6tnhtbEtmfUI4vRUWObplImNiKAPZQWE7qcp3+EA76F7vW54aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMbUBXtzG18D8IQoYlc2G0rPMPkSFD1iDqsGYO+JNbzAiBIbpDrpztLjgqKctJHQCMfS149O8ZI86B8hu7QGV1gTA=="}]},"directories":{}},"0.4.2":{"name":"analytics-reporter","version":"0.4.2","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"544f7e3b4daba849121cafae0f2cf09ccc8f2902","_id":"analytics-reporter@0.4.2","_shasum":"2fdf10e4bf772a3d0ec4336a0b5d6bf50e6380bc","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"2fdf10e4bf772a3d0ec4336a0b5d6bf50e6380bc","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.4.2.tgz","integrity":"sha512-bupuuTOm10rPuwhIPqHAjrbwiIMuY+XWubv30fa3WhuzA1739aeDoAKOv8inSc6ASFhpsUEVSneGBz1ifLXuqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGtFvDCURMn30Lo3vIhmLN5UTKDgI3BbGG5RZYVtguYQIhAJwZ7GI6XS9if+KWbC2C67Yt++IgEQ08MSHjbH2LzvAZ"}]},"directories":{}},"0.4.3":{"name":"analytics-reporter","version":"0.4.3","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","mongoose":"^3.8.19"},"gitHead":"af0a55133c7ccf1070e3f648fd8a9d7307d56c54","_id":"analytics-reporter@0.4.3","_shasum":"985bdcbc3ae6a0184b399d49019e49bb360f2e43","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"985bdcbc3ae6a0184b399d49019e49bb360f2e43","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.4.3.tgz","integrity":"sha512-8boktje+TBmE6XrvGfCjVx+IMnjfy9Lji49exYS29rV+oCEPCVt94FPthY818YZW8PCryoR6yBlOBUI2bD5IWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXin6yF7MQJ1qyKrurqNaLQG78aHktymCukVzPeu+5+AiEA6WPcP4IsESt+ZxkjBakQKyN0GjcbJq5HozJY1nwOfR4="}]},"directories":{}},"0.5.0":{"name":"analytics-reporter","version":"0.5.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","analytics.js","config.js","reports.json","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"a370c7f58e90913c3472ec407bdec12fbab5f858","_id":"analytics-reporter@0.5.0","_shasum":"62f5942da1dcccd6c9c650215e8b9b30cfc35dc7","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"62f5942da1dcccd6c9c650215e8b9b30cfc35dc7","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.5.0.tgz","integrity":"sha512-zDBYjwH0Fi641egV5HxEcwvlWAaOHpsnndvhs1CwuI7Mc7MvhIbduz6WV9eKU3hcFcZ1/kNniJ69+xJzOvP8AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsChe33HnOVfJmh35G9mgLobhUDe8IZYmEdwbp3+VWOAiEA4y+tphI5qccCDJuT8SEnYWzRUJDW2mWdh72BKZFm9EE="}]},"directories":{}},"0.5.1":{"name":"analytics-reporter","version":"0.5.1","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18f/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"}],"files":["bin","test","reports","analytics.js","config.js","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18f/analytics-reporter.git"},"bugs":{"url":"https://github.com/18f/analytics-reporter/issues"},"dependencies":{"googleapis":"^1.0.21","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"ed458e68f050c9e11d3bd77e95581e7cacd9485f","_id":"analytics-reporter@0.5.1","_shasum":"5117047d977cdc9c5beabf9a25b931ddec553974","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"dist":{"shasum":"5117047d977cdc9c5beabf9a25b931ddec553974","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-0.5.1.tgz","integrity":"sha512-WhfC+hpQF4ykmGXTXbecLhl84gYPjGTLBF6aHV3DlUL/pEzgUBSh8MhtCDG0HgoDnryN8hik2j3O/iWzl6gxIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjy5+iF9RRz4vNWutFKB5itSANe0jv3x/VsGBHZgnoqQIgXFJPRhYTDCH5Bziy/7E6fuBAIP4mNdvlZtutF13nCrQ="}]},"directories":{}},"1.0.0":{"name":"analytics-reporter","version":"1.0.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18F/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"}],"files":["bin","test","reports","analytics.js","config.js","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"dependencies":{"googleapis":"^2.1.5","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"282592f3c2f5a20924229e8784b42fc046c1cbc2","_id":"analytics-reporter@1.0.0","_shasum":"fd2bf460a112fbe4c3743c18185f35c7995140c7","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"dist":{"shasum":"fd2bf460a112fbe4c3743c18185f35c7995140c7","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-1.0.0.tgz","integrity":"sha512-GJH4dsHM3Ysr9s7/z3XO+UWVwuP2X/byQ9EIs8pM7cYp9OuM9/ThXlpMQ77zpnHUAwiOCjJlQzBTwTVe+BX/9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFclO2OI+umid3CsXEjCPKLrOzzu+7Vprd0ZuFor7Qq5AiEAr1CiskBFqxWuwUfpUbI0QPySd0JBjEBbp1WIcvNOmkg="}]},"maintainers":[{"name":"konklone","email":"eric@konklone.com"}],"directories":{}},"1.1.0":{"name":"analytics-reporter","version":"1.1.0","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18F/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"}],"files":["bin","test","reports","analytics.js","config.js","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"dependencies":{"googleapis":"^2.1.5","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"4e39f4ad128782b903cf882b3e40d9ab5e48b210","_id":"analytics-reporter@1.1.0","_shasum":"8500dce903ea561b8845005a71557407eabcfb0c","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"gramirez","email":"gabriel.e.ramirez@gmail.com"},"dist":{"shasum":"8500dce903ea561b8845005a71557407eabcfb0c","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-1.1.0.tgz","integrity":"sha512-U+q3BORwDLgdbFNmmNbPm/MCW0/Qydq72WiWYC3xt9SQ7okOJRCyugRC78hDEjLGARy/25t9/srbYgFdYzlMCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4hiCcGK3jGebeMN4iEaxU6aQSmAcJxSh3AxBGqH1igwIhAPU+Bbd8Ej1lE0LFHVBL3/JtaKmWaNz95V9dqgQ0CBI6"}]},"maintainers":[{"name":"gramirez","email":"gabriel.e.ramirez@gmail.com"},{"name":"konklone","email":"eric@konklone.com"}],"directories":{}},"1.1.1":{"name":"analytics-reporter","version":"1.1.1","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18F/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"}],"files":["bin","test","reports","analytics.js","config.js","package.json","*.md"],"engines":{"node":">=0.10.0"},"os":["!win32"],"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"dependencies":{"googleapis":"^2.1.5","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"*"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"c7a27dd8143366cc8548af9609c334df3032c37b","_id":"analytics-reporter@1.1.1","_shasum":"fd166ed199ec01cc479c2a0a0d6705394d7c5f06","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"dist":{"shasum":"fd166ed199ec01cc479c2a0a0d6705394d7c5f06","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-1.1.1.tgz","integrity":"sha512-ayFI+OAWnOd3jDVNvjtZSDFLNG1PKHl94qowoHMwrLqyqevNKsQznzkfVpzYLOnwoBsfJa/5z3p4MUYMsjxNyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNHw+YpecCtyFXn0r293jgaASkr472UmnIKGtdePXhgAiEAv8nVjDOp3xELcLrxrLq4l3c0K2j9sIqKOVrVLBWXeJU="}]},"maintainers":[{"name":"gramirez","email":"gabriel.e.ramirez@gmail.com"},{"name":"konklone","email":"eric@konklone.com"}],"directories":{}},"1.1.2":{"name":"analytics-reporter","version":"1.1.2","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18F/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"node test/*"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"}],"files":["bin","test","reports","analytics.js","config.js","package.json","*.md"],"engines":{"node":">=0.10.0"},"preferGlobal":true,"main":"analytics","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"dependencies":{"googleapis":"^2.1.5","node-schedule":"^0.1.13","minimist":"*","async":"*","aws-sdk":"*","fast-csv":"*","lodash":"^3.10.1"},"devDependencies":{"body-parser":"~1.8.1","express":"~4.9.0","ejs":"~2.3.1"},"gitHead":"263cb6b6cfd281c539db594f1d1086a455bd6371","_id":"analytics-reporter@1.1.2","_shasum":"b672674d994b7fd9b2d295d07e7deabe250768e5","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.10.0","_npmUser":{"name":"konklone","email":"eric@konklone.com"},"dist":{"shasum":"b672674d994b7fd9b2d295d07e7deabe250768e5","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-1.1.2.tgz","integrity":"sha512-8vgHzCUwSCRCV7EjBlrNu83D6KUHnEc8gwMT7xrP+bOty+URglLPyEFnu1VmWak+wWYWWvUOiYT+Y6TY2RoKvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8tVV3dGQYKWXvlbV0kWfj5UIPxkJ5KoqjL3VKTuPurAIhAN3ysbScIg5/+TzhvDP7fGZzt/KwTE6BofsPfadaET9l"}]},"maintainers":[{"name":"gramirez","email":"gabriel.e.ramirez@gmail.com"},{"name":"konklone","email":"eric@konklone.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/analytics-reporter-1.1.2.tgz_1460581078147_0.49791274475865066"},"directories":{}},"1.2.2":{"name":"analytics-reporter","version":"1.2.2","description":"A lightweight command line tool for reporting and publishing analytics data from a Google Analytics account.","keywords":["analytics","google analytics"],"homepage":"https://github.com/18F/analytics-reporter","license":"CC0-1.0","scripts":{"start":"node app.js","test":"`npm bin`/mocha test/*.test.js test/**/*.test.js"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"},{"name":"Eric Schles","email":"eric.schles@gsa.gov"}],"files":["bin","src","test","reports","index.js","newrelic.js","package.json","*.md"],"engines":{"node":">=7.0.0"},"preferGlobal":true,"main":"index","bin":{"analytics":"./bin/analytics"},"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"dependencies":{"async":"*","aws-sdk":"*","fast-csv":"*","googleapis":"^2.1.5","lodash":"^3.10.1","minimist":"*","moment-timezone":"^0.5.11","node-schedule":"^0.1.13","winston-color":"^1.0.0","knex":"^0.12.6","newrelic":"^1.36.1","pg":"^6.1.2"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","proxyquire":"^1.7.11"},"optionalDependencies":{"knex":"^0.12.6","newrelic":"^1.36.1","pg":"^6.1.2"},"gitHead":"5dbb3fa9c24b6658d6f4208cbc7383d9b39a4ace","_id":"analytics-reporter@1.2.2","_shasum":"fca450c1d104987eeb09c816c677236889f23845","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"jmhooper","email":"jon9820@gmail.com"},"dist":{"shasum":"fca450c1d104987eeb09c816c677236889f23845","tarball":"https://registry.npmjs.org/analytics-reporter/-/analytics-reporter-1.2.2.tgz","integrity":"sha512-RqUWNBMgoSObxwT0dxdXD/eWnfZez5j6zzwFkCxGNlsfPUz8iNq+ot53oq4Mk8ie2/M3ogxPtHXKX5krU3fiSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbpPrgPAGPJn7auWwl5gLIwINtczJBaRI6JdmT2c6qUgIhAMrMkSlBeX18BUvJAspJzNRCVAJrGQ2+asnn77ikmIUs"}]},"maintainers":[{"name":"jmhooper","email":"jon9820@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/analytics-reporter-1.2.2.tgz_1492789865806_0.865375884110108"},"directories":{}}},"readme":"[![Build Status](https://travis-ci.org/18F/analytics-reporter.png)](https://travis-ci.org/18F/analytics-reporter)  [![Dependency Status](https://gemnasium.com/badges/github.com/18F/analytics-reporter.svg)](https://gemnasium.com/github.com/18F/analytics-reporter)\n\n## Analytics Reporter\n\nA lightweight system for publishing analytics data from Google Analytics profiles. Uses the [Google Analytics Core Reporting API v3](https://developers.google.com/analytics/devguides/reporting/core/v3/) and the [Google Analytics Real Time API v3](https://developers.google.com/analytics/devguides/reporting/realtime/v3/).\n\nThis is used in combination with [18F/analytics.usa.gov](https://github.com/18F/analytics.usa.gov) to power the government analytics hub, [analytics.usa.gov](https://analytics.usa.gov).\n\nAvailable reports are named and described in [`reports.json`](reports/reports.json). For now, they're hardcoded into the repository.\n\n\n### Installation\n\n### Docker\n\n* To build the docker image on your computer, run:\n\n````bash\nexport NODE_ENV=development # just needed when developing against the image\nexport NODE_ENV=production # to build an image for production\ndocker build --build-arg NODE_ENV=${NODE_ENV} -t analytics-reporter .\n````\n\nThen you can create an alias in order to have the analytics command available:\n\n```bash\nalias analytics=\"docker run -t -v ${HOME}:${HOME} -e ANALYTICS_REPORT_EMAIL -e ANALYTICS_REPORT_IDS -e ANALYTICS_KEY analytics-reporter\"\n```\n\nTo make this command working as expected you should export the env vars as follows:\n\n```bash\nexport ANALYTICS_REPORT_EMAIL=  \"your-report-email\"\nexport ANALYTICS_REPORT_IDS=\"your-report-ids\"\nexport ANALYTICS_KEY=\"your-key\"\n```\n\n### NPM\n\n* To run the utility on your computer, install it through npm:\n\n```bash\nnpm install -g analytics-reporter\n```\n\nIf you're developing locally inside the repo, `npm install` is sufficient.\n\n### Setup\n\n* Create an API service account in the [Google developer dashboard](https://console.developers.google.com/apis/).\n\n* Visit the \"APIs\" section of the Google Developer Dashboard for your project, and enable it for the \"Analytics API\".\n\n* Go to the \"Credentials\" section and generate \"service account\" credentials using a new service account.\n\n* Download the **JSON** private key file it gives you.\n\n* Grab the generated client email address (ends with `gserviceaccount.com`) from the contents of the .json file.\n\n* Grant that email address `Read, Analyze & Collaborate` permissions on the Google Analytics profile(s) whose data you wish to publish.\n\n* Set environment variables for your app's generated email address, and for the profile you authorized it to:\n\n```bash\nexport ANALYTICS_REPORT_EMAIL=\"YYYYYYY@developer.gserviceaccount.com\"\nexport ANALYTICS_REPORT_IDS=\"ga:XXXXXX\"\n```\n\nYou may wish to manage these using [`autoenv`](https://github.com/kennethreitz/autoenv). If you do, there is an `example.env` file you can copy to `.env` to get started.\n\nTo find your Google Analytics view ID:\n\n  1. Sign in to your Analytics account.\n  1. Select the Admin tab.\n  1. Select an account from the dropdown in the ACCOUNT column.\n  1. Select a property from the dropdown in the PROPERTY column.\n  1. Select a view from the dropdown in the VIEW column.\n  1. Click \"View Settings\"\n  1. Copy the view ID.  You'll need to enter it with `ga:` as a prefix.\n\n* You can specify your private key through environment variables either as a file path, or the contents of the key (helpful for Heroku and Heroku-like systems).\n\nTo specify a file path (useful in development or Linux server environments):\n\n```\nexport ANALYTICS_KEY_PATH=\"/path/to/secret_key.json\"\n```\n\nAlternatively, to specify the key directly (useful in a PaaS environment), paste in the contents of the JSON file's `private_key` field **directly and exactly**, in quotes, and **rendering actual line breaks** (not `\\n`'s) (below example has been sanitized):\n\n```\nexport ANALYTICS_KEY=\"-----BEGIN PRIVATE KEY-----\n[contents of key]\n-----END PRIVATE KEY-----\n\"\n```\n\nIf you have multiple accounts for a profile, you can set the `ANALYTICS_CREDENTIALS` variable with a JSON encoded array of those credentials and they'll be used to authorize API requests in a round-robin style.\n\n```\nexport ANALYTICS_CREDENTIALS='[\n  {\n    \"key\": \"-----BEGIN PRIVATE KEY-----\\n[contents of key]\\n-----END PRIVATE KEY-----\",\n    \"email\": \"email_1@example.com\"\n  },\n  {\n    \"key\": \"-----BEGIN PRIVATE KEY-----\\n[contents of key]\\n-----END PRIVATE KEY-----\",\n    \"email\": \"email_2@example.com\"\n  }\n]'\n```\n\n* Make sure your computer or server is syncing its time with the world over NTP. Your computer's time will need to match those on Google's servers for the authentication to work.\n\n* Test your configuration by printing a report to STDOUT:\n\n```bash\n./bin/analytics --only users\n```\n\nIf you see a nicely formatted JSON file, you are all set.\n\n* (Optional) Authorize yourself for S3 publishing.\n\nIf you plan to use this project's lightweight S3 publishing system, you'll need to add 6 more environment variables:\n\n```\nexport AWS_REGION=us-east-1\nexport AWS_ACCESS_KEY_ID=[your-key]\nexport AWS_SECRET_ACCESS_KEY=[your-secret-key]\n\nexport AWS_BUCKET=[your-bucket]\nexport AWS_BUCKET_PATH=[your-path]\nexport AWS_CACHE_TIME=0\n```\n\nThere are cases where you want to use a custom  object storage server compatible with Amazon S3 APIs, like [minio](https://github.com/minio/minio), in that specific case you should set an extra env variable:\n\n```\nexport AWS_S3_ENDPOINT=http://your-storage-server:port\n```\n\n\n### Other configuration\n\nIf you use a **single domain** for all of your analytics data, then your profile is likely set to return relative paths (e.g. `/faq`) and not absolute paths when accessing real-time reports.\n\nYou can set a default domain, to be returned as data in all real-time data point:\n\n```\nexport ANALYTICS_HOSTNAME=https://konklone.com\n```\n\nThis will produce points similar to the following:\n\n```json\n{\n  \"page\": \"/post/why-google-is-hurrying-the-web-to-kill-sha-1\",\n  \"page_title\": \"Why Google is Hurrying the Web to Kill SHA-1\",\n  \"active_visitors\": \"1\",\n  \"domain\": \"https://konklone.com\"\n}\n```\n\n### Use\n\nReports are created and published using the `analytics` command.\n\n```bash\nanalytics\n```\n\nThis will run every report, in sequence, and print out the resulting JSON to STDOUT. There will be two newlines between each report.\n\nA report might look something like this:\n\n```javascript\n{\n  \"name\": \"devices\",\n  \"query\": {\n    \"dimensions\": [\n      \"ga:date\",\n      \"ga:deviceCategory\"\n    ],\n    \"metrics\": [\n      \"ga:sessions\"\n    ],\n    \"start-date\": \"90daysAgo\",\n    \"end-date\": \"yesterday\",\n    \"sort\": \"ga:date\"\n  },\n  \"meta\": {\n    \"name\": \"Devices\",\n    \"description\": \"Weekly desktop/mobile/tablet visits by day for all sites.\"\n  },\n  \"data\": [\n    {\n      \"date\": \"2014-10-14\",\n      \"device\": \"desktop\",\n      \"visits\": \"11495462\"\n    },\n    {\n      \"date\": \"2014-10-14\",\n      \"device\": \"mobile\",\n      \"visits\": \"2499586\"\n    },\n    {\n      \"date\": \"2014-10-14\",\n      \"device\": \"tablet\",\n      \"visits\": \"976396\"\n    },\n    // ...\n  ],\n  \"totals\": {\n    \"devices\": {\n      \"mobile\": 213920363,\n      \"desktop\": 755511646,\n      \"tablet\": 81874189\n    },\n    \"start_date\": \"2014-10-14\",\n    \"end_date\": \"2015-01-11\"\n  }\n}\n```\n\n#### Options\n\n* `--output` - Output to a directory.\n\n```bash\nanalytics --output /path/to/data\n```\n\n*Note that when using the docker image you have to use the absolute path, for example \"/home/youruser/path/to/data\"*\n\n* `--publish` - Publish to an S3 bucket. Requires AWS environment variables set as described above.\n\n```bash\nanalytics --publish\n```\n\n* `--write-to-database` - write data to a database. Requires a postgres configuration to be set in environment variables as described below.\n\n* `--only` - only run one or more specific reports. Multiple reports are comma separated.\n\n```bash\nanalytics --only devices\nanalytics --only devices,today\n```\n\n* `--slim` -Where supported, use totals only (omit the `data` array). Only applies to JSON, and reports where `\"slim\": true`.\n\n```bash\nanalytics --only devices --slim\n```\n\n* `--csv` - Gives you CSV instead of JSON.\n\n```bash\nanalytics --csv\n```\n\n* `--frequency` - Limit to reports with this 'frequency' value.\n\n```bash\nanalytics --frequency=realtime\n```\n\n* `--debug` - Print debug details on STDOUT.\n\n```bash\nanalytics --publish --debug\n```\n\n### Saving data to postgres\n\nThe analytics reporter can write data is pulls from Google Analytics to a\nPostgres database. The postgres configuration can be set using environment\nvariables:\n\n```bash\nexport POSTGRES_HOST = \"my.db.host.com\"\nexport POSTGRES_USER = \"postgres\"\nexport POSTGRES_PASSWORD = \"123abc\"\nexport POSTGRES_DATABASE = \"analytics\"\n```\n\nThe database expects a particular schema which will be described in the API\nserver that consumes this data.\n\nTo write reports to a database, use the `--write-to-database` option when\nstarting the reporter.\n\n### Deploying to GovCloud\n\nThe analytics reporter runs on :cloud:.gov. Please refer to the `manifest.yml`\nfile at the root of the repository for application information.\n\nEnsure you're targeting the proper `org` and `space`.\n\n```shell\ncf target\n```\n\nDeploy the application with the following command.\n\n```shell\ncf push -f manifest.yml\n```\n\nSet the environmental variables based on local `.env` file.\n\n```shell\ncf set-env analytics-reporter AWS_ACCESS_KEY_ID 123abc\ncf set-env analytics-reporter AWS_SECRET_ACCESS_KEY 456def\n# ...\n```\n\nRestage the application to use the environment variables.\n\n```shell\ncf restage analytics-reporter\n```\n\n### Public domain\n\nThis project is in the worldwide [public domain](LICENSE.md). As stated in [CONTRIBUTING](CONTRIBUTING.md):\n\n> This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).\n>\n> All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.\n","maintainers":[{"email":"eric@konklone.com","name":"konklone"},{"email":"jon9820@gmail.com","name":"jmhooper"}],"time":{"modified":"2022-06-13T02:47:23.630Z","created":"2015-01-08T20:27:32.443Z","0.1.0":"2015-01-08T20:27:32.443Z","0.1.1":"2015-01-09T00:08:28.548Z","0.1.2":"2015-01-09T01:09:09.153Z","0.1.3":"2015-01-09T02:29:52.753Z","0.2.0":"2015-01-13T23:59:20.632Z","0.3.0":"2015-01-14T02:37:43.359Z","0.4.0":"2015-01-14T05:24:07.251Z","0.4.1":"2015-01-14T19:54:17.505Z","0.4.2":"2015-01-19T04:55:24.558Z","0.4.3":"2015-01-19T06:31:00.597Z","0.5.0":"2015-07-10T15:25:09.998Z","0.5.1":"2015-07-10T15:48:57.155Z","1.0.0":"2015-10-16T20:28:37.387Z","1.1.0":"2015-10-20T20:16:22.563Z","1.1.1":"2015-10-20T21:31:08.292Z","1.1.2":"2016-04-13T20:57:59.944Z","1.2.0":"2017-04-21T15:36:29.278Z","1.2.1":"2017-04-21T15:42:45.410Z","1.2.2":"2017-04-21T15:51:07.873Z"},"homepage":"https://github.com/18F/analytics-reporter","keywords":["analytics","google analytics"],"repository":{"type":"git","url":"git://github.com/18F/analytics-reporter.git"},"contributors":[{"name":"Gabriel Ramirez","email":"gabriel.ramirez@gsa.gov"},{"name":"Eric Mill","email":"eric.mill@gsa.gov"},{"name":"Lauren Ancona","email":"lauren.ancona@phila.gov"},{"name":"Eric Schles","email":"eric.schles@gsa.gov"}],"bugs":{"url":"https://github.com/18F/analytics-reporter/issues"},"license":"CC0-1.0","readmeFilename":"README.md","users":{"rifaqat":true}}