1.1.6 • Published 3 years ago
performance-analytics-js v1.1.6
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-js
Import 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/