Real User Monitoring JavaScript code API

The Real User Monitoring JavaScript code API helps you to set up and maintain your manually injected applications. You can:

GET the list of manually injected applications

Lists all of your manually injected applications, along with their metadata.

The request produces application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/manualApps
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/manualApps

GET the most recent version of the Real User Monitoring JavaScript code

Returns the most recent version of the Real User Monitoring JavaScript code version available for your environment.

The version is a natural number, a higher number indicates a newer version. You can check the version you actually use by executing the GET the current version of the Real User Monitoring JavaScript code request.

If a newer version is available we recommend you to update the RUM JavaScript code in your applications. You can get the most recent code either as HTML tag or inline code.

The request produces plain/text payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/jsLatestVersion
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/jsLatestVersion

GET the current version of the Real User Monitoring JavaScript code

Returns the current version of the Real User Monitoring JavaScript code version injected into specified application.

The version is a natural number; a higher number indicates a newer version. You can check the most recent available version by executing the GET the most recent version of the Real User Monitoring JavaScript code request.

If a newer version is available we recommend you to update the RUM JavaScript code in your applications. You can get the most recent code either as HTML tag or inline code.

The request produces plain/text payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/appRevision/{applicationid}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/appRevision/{applicationid}

GET Real User Monitoring JavaScript code—tag

Returns the HTML tag for the most recent RUM JavaScript code. You can also obtain it as an inline code.

HTML tag and inline code of the RUM JavaScript code are functionally equivalent.

The request produces plain/text payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/jsTag/{applicationid}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/jsTag/{applicationid}

GET Real User Monitoring JavaScript code—inline code

Returns the inline code for the most recent RUM JavaScript code. You can also obtain it as an HTML tag.

HTML tag and inline code of the RUM JavaScript code are functionally equivalent.

The request produces plain/text payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/jsInlineScript/{applicationid}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/jsInlineScript/{applicationid}

Customize RUM

You can customize your Real User Monitoring with the JavaScript API. See JavaScript API to customize Real User Monitoring to learn how.