Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jam3-install-analytics

Jam319MIT2.0.1

Tracking our npm installs. Only tested on UNIX shells.

readme

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.