wombyte_tracker
v1.0.7
Published
A application used for sending statistics data.
Downloads
29
Readme
Wombyte Tracker
This package is a tracker for Wombyte platform.
Usage Example
import {wombyteTracker} from "wombyte_tracker";
const tracker = wombyteTracker()
.setRemote("hostname", "api_token", "api_secret")
// Path to the intermediate buffer files is optional
// if not provided, the memory buffer will be used
.build("app_name", "./path/to/intermediate/buffer/files");
await tracker.track("event_name")
.addNumbers({num_attr_one: 1, num_attr_two: 1})
.addStrings({str_attr_foo: "foo", str_attr_bar: "bar"})
.send();
await tracker.flush()