RUM Javascript API

Hi Fin_Ubels,

Thanks for you reply, this is really useful. But i just want to understand a little more:

1. Understand that the javascript snippet is still required, but how does this API works? Does it store these action data as a variable and pass them to Dynatrace using the javascript snippet?

2. Custom user action, from the documentation (and also appended below), actionName is not an optional field, but i will still be able to leave it as empty? How will it show up in the Dynatrace portal? like “Click on <DIV> on page /home”?

would love to test this out myself, but unfortunately my trial account has expired.

Thanks for your help so far and look forward to hearing back from you.

  • enterAction(actionName: string, actionType?: string, startTime?: number, sourceUrl?: string): number

  • Enters a new custom action. Use to set the load start event for a new custom action. Needs to be called before leaveAction, which closes the custom action.

    see

    leaveAction

    Parameters

    • actionName: string

      Name of the action

    • Optional actionType: string

      DEPRECATED: not used any more and has no effect if provided

    • Optional startTime: number

      Timestamp in milliseconds. if null, current time is used.

    • Optional sourceUrl: string

      Source url for the action