performance-analytics-js
v1.1.6
Published
Library to measure performance metrics.
Readme
Perfanalytics
A simple web metric collector for any web application.
Usage
Install the package
- npm
npm install performance-analytics-js- yarn
yarn add performance-analytics-jsImport initPerfAnalytics function and call it from your root file. This function will collect the necessary metrics and push them to perfanalytics-api.
React Example
import { initPerfAnalytics } from "performance-analytics-js";
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import "./index.css";
initPerfAnalytics();
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root"),
);
To view your metrics visit => https://perfanalyticsdashboard.herokuapp.com/
