cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Capture Business Events from RUM – Detailed Configuration Steps Needed

kohtsuka
Participant

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

1 REPLY 1

Aaron_Schultz
Dynatrace Participant
Dynatrace Participant

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:

https://www.dynatrace.com/support/doc/javascriptapi/doc/interfaces/dynatrace-types.DynatraceApi.html...

I hope that helps! 😁

 

-- Aaron Schultz

Featured Posts