You can create custom metrics to use in Nimvue reports. These are based on the event key you pass in the payload when using custom events. Custom metrics are defined in Settings > Custom Metrics, where you’ll see a list of existing metrics along with their aggregation type. To create a new custom metric:
  1. Enter the Event Key - e.g. booking_revenue
  2. Choose an Aggregation - e.g. Count, Sum, Average
  3. Add a Friendly Name - e.g. “Booking Revenue” or “Avg Booking Revenue”
Once created, the metric will be available to use in your reports.
Note: Certain keywords are reserved for internal use + standard dimensions/metrics. You will not be able to create dimensions and metrics using these names.

Example

Sum aggregation
  • Event Key: booking_revenue
  • Aggregation: Sum
  • Metric Name: Booking Revenue
This will sum all booking_revenue values for the selected dimension(s) in a report. Average aggregation
  • Event Key: booking_revenue
  • Aggregation: Average
  • Metric Name: Avg Booking Revenue
This will calculate the average booking revenue across matching events. Count aggregation
  • Event Key: booking_revenue
  • Aggregation: Count
  • Metric Name: Bookings
This will count occurences of booking_revenue.
Tip: You can use the same event key multiple times with different aggregations to provide deeper insights.