https://github.com/xgqfrms/web-performance-analytics
web-performance-analytics
https://github.com/xgqfrms/web-performance-analytics
analytics metrics npm performance web web-performance-analytics
Last synced: 2 months ago
JSON representation
web-performance-analytics
- Host: GitHub
- URL: https://github.com/xgqfrms/web-performance-analytics
- Owner: xgqfrms
- License: mit
- Created: 2020-11-10T08:05:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-15T13:33:59.000Z (over 5 years ago)
- Last Synced: 2025-06-22T23:05:33.061Z (about 1 year ago)
- Topics: analytics, metrics, npm, performance, web, web-performance-analytics
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/web-performance-analytics
- Size: 560 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOgS.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# web-performance-analytics
> WPA
https://www.npmjs.com/package/web-performance-analytics
## install
```sh
$ yarn add web-performance-analytics
# OR
$ npm i web-performance-analytics
```
## usage
```js
// 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
```js
// ESM
```