PerfixinJS Usage Install the library with npm install --save perfixin Inside your main javascript file import perfixin from 'perfixin'; perfixin(); You can use it anywhere in your website. It's gonna wait until DOM loads and then sends the metrics to your API.