Skip to content

Custom measurements

Overview

Use the Custom Measurements feature to send performance metrics tailored to your application requirements. This API enables tracking of custom events, interactions, and load times, providing deeper insights into user behavior and application performance.

Configuration

Use  cx_rum.custom_measurement_context.name to name your custom entry. Then, enter cx_rum.custom_measurement_context.value to provide its numeric value.

Examples

Send the loading time of the web page.

CoralogixRum.sendCustomMeasurement('my-page-load', 1000);

Forward the measurement of the total amount users have spent on the website.

CoralogixRum.sendCustomMeasurement('amount-money-spent', 1200);