@atom-ide-community/nuclide-analytics

0.8.3 • Public • Published

@atom-ide-community/nuclide-analytics package

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

Common usage:

import {track} from '@atom-ide-community/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 @atom-ide-community/nuclide-analytics

Weekly Downloads

2

Version

0.8.3

License

BSD-3-Clause

Unpacked Size

22.9 kB

Total Files

8

Last publish

Collaborators

  • aminya
  • atom-community