GET JavaScript tag

  • Reference

Returns the most recent JavaScript tag for manual insertion into your web application code. It includes a reference to an external file that contains both the monitoring code and its configuration.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/rum/javaScriptTag/{applicationId}
Environment and Cluster ActiveGate (default port 9999)https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/javaScriptTag/{applicationId}

Authentication

To execute this request, you need an access token with rumManualInsertionTags.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
applicationIdstring

The ID of the web application.

pathRequired
scriptExecutionAttributestring

Specifies the script execution attribute: async, defer, or none. If specified, this overrides the configured value.

The element can hold these values
  • ASYNC
  • DEFER
  • NONE
queryOptional
crossOriginAnonymousboolean

Indicates whether to add the crossorigin="anonymous" attribute to the tag. If specified, this overrides the configured value.

queryOptional

Response

The response includes a text/plain payload containing the most recent version of the JavaScript tag for the specified application.