perfops-rom
Include the code in your website
1s delay
<script async src="https://cdn.jsdelivr.net/npm/perfops-rom/dist/rom.min.js"></script>
3s delay
<script async src="https://cdn.jsdelivr.net/npm/perfops-rom"></script>
provide client id in the collected metrics:
<script async>
(function (a, m) {
window.rum = function (k) { window.rum.key = k; }; a = document.createElement('script'); m = document.getElementsByTagName('script')[0];
a.async = 1; a.src = 'https://cdn.jsdelivr.net/npm/perfops-rom'; m.parentNode.insertBefore(a, m);
})();
rum('<CLIENT-ID-HERE>');
</script>
Stored data
- user country
- request duration:
(timing.responseEnd - timing.requestStart).toFixed(2)