16 Jul 2025 03:25 AM
I would like to understand the specific method for capturing Business Events from RUM.
The following documentation does not provide any detailed configuration steps:
https://docs.dynatrace.com/docs/observe/business-analytics/ba-events-capturing#send-business-event-r...
I also checked Dynatrace University, but the video simply says, “Please refer to the documentation,” without further explanation.
Would anyone be able to share the actual configuration steps?
Best Regards,
Kohei Otsuka
Solved! Go to Solution.
16 Jul 2025 03:20 PM - edited 16 Jul 2025 03:21 PM
Hello @kohtsuka ,
All the information you need should be found here: https://docs.dynatrace.com/docs/shortlink/ba-business-events-capturing#report-business-event-rum
To send business events with the RUM javascript, you must first create an variable JSON object (in the example below, we are using let attributes, but the name can be anything.).
Then once you decide what data you would like, use the dynatrace.sendBizEvent(type: string, fields: JSONObject) to send the data back to Dynatrace.
Example from Docs:
let attributes = {
"event.name": "Confirmed Booking",
"page": "booking-confirmation",
"product": "Danube Anna Hotel",
"amount": 358.35,
"currency": "USD",
"reviewScore": 4.8,
"arrivalDate": "2022-11-05",
"departureDate": "2022-11-15",
"journeyDuration": 10,
"adultTravelers": 2,
"childrenTravelers": 0
};
dynatrace.sendBizEvent('com.easytravel.funnel.booking-finished', attributes);
For more information on sendBizEvent(type: string, fields: JSONObject), you can read more here:
I hope that helps! 😁
-- Aaron Schultz