npm

nuclide-analytics

0.0.35 • Public • Published

nuclide-analytics package

Provides a standard API that packages can use to send analytics, in a consistent way, to arbitrary providers.

Common usage:

const {track} = require('nuclide-analytics');
 
const booleanState = false;
const numericState = 42;
const stringState = 'foobar';
 
function doStuff(arg: string) {
  // Note that all metadata values on the second argument must be strings.
  track('example-package-doStuff', {
    bool: String(booleanState),
    num: String(numericState),
    str: stringState,
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i nuclide-analytics

Weekly Downloads

4

Version

0.0.35

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • fb