@atom-ide-community/nuclide-analytics
v0.8.3
Published
Provides a standard API for packages to send analytics to arbitrary providers.
Downloads
52
Readme
@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,
});
}