Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatographite

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatographite

Fetch Google Analytics statistics and send them to Graphite

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Push Google Analytics data to Graphite

Build status

Fetch your Google Analytics data and send it to Graphite, massive love to https://github.com/etsy/GoogleAnalyticsToGraphite for inspiration.

If you prefer Docker, you can use the Docker image: https://registry.hub.docker.com/u/sitespeedio/gatographite/

Setup your Google Account and setup everything

To fetch the metrics from Google Analtics, we use the Google API v3. To get it up and running, it needs a couple of things. I'll add the steps asap but if you follow these http://www.bentedder.com/server-to-server-authorization-for-google-analytics-api-with-node-js/ instructions for now, it will hopefully work :)

Configuration

You can either feed the script with params (check cli.js, I'll add docs later) or add your values to the export.sh file and source it, then all values are fetched from the environment variables.

Choosing which data to fetch

Metrics that you can fetch is the one in the Google Analytics API: https://developers.google.com/analytics/devguides/reporting/core/dimsmets

You choose that by giving a comma separated list to metrics like this:

gatographite --metrics ga:pageviews,ga:sessions,ga:avgTimeOnSite,ga:domContentLoadedTime

Run

// Fetch data from yesterday and send to Graphite
gatographite
// Fetch data from three days back -> today and send to Graphite
gatographite 3
// Send data for a specific date
gatographite 2015-06-01

Install

npm install -g gatographite

Keywords

FAQs

Package last updated on 03 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc