1.0.2 • Published 3 years ago

web-performance-analytics v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

web-performance-analytics

WPA

https://www.npmjs.com/package/web-performance-analytics

install

$ yarn add web-performance-analytics
# OR
$ npm i web-performance-analytics

usage

// WebPerformanceAnalytics
import * as WPA from "web-performance-analytics";

const options = {
  // your configs
};

const wpa = WPA.init(options);

wpa.onConnect({
  // options
});

wpa.tracker({
  // options
});

wpa.send({
  // options
});

wpa.post({
  // options
});

wpa.report({
  // options
});

wpa.onError({
  // options
});

wpa.onClose({
  // options
});

demo

// ESM