2.0.1 • Published 9 years ago

jam3-install-analytics v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

jam3-install-analytics

Tracking our npm installs. Only tested on UNIX shells.

This is used internally; if you are interested in something similar see npm-install-analytics.

Install

npm install -g jam3-install-analytics

This will provide a couple of global tools.

Setup

Once installed, you need to configure a rc file. Run the following:

jam3-install-analytics-setup

It will prompt for a username and the relevant tracking ID. Once these are set, we shouldn't change them.

Alias

This step is optional, but recommended.

You can add the following alias to ~/.bash_profile if you would like to alias the command:

alias npm='jam3-install-analytics'

Now when you re-start bash, typing npm install will silently send information to Google Analytics with your username.

Other commands, like npm view, should be unaffected.

License

MIT, see LICENSE.md for details.