The browser agent for collecting web performance metrics.
You'll need a Request Metrics account to use this agent. If you don't have one, why not start a free trial today?
- Signup for Request Metrics and get your token.
- Add a dependency on Request Metrics with
npm i @request-metrics/browser-agent --save
- Install the agent in your app:
import { RM } from '@request-metrics/browser-agent';
RM.install({ token: 'YOUR_TOKEN_HERE' });
- Test it out by loading any page in your website. You'll see calls to
in.requestmetrics.com
. - You should see traffic on Request Metrics within a few seconds.
You can find more information about how to install and configure the agent in
the Request Metrics Documentation. If you run into any
trouble, let us know right away at hello@requestmetrics.com