GET OneAgent JavaScript tag

  • Reference

Returns the most recent OneAgent JavaScript tag for manual insertion into your web application code. It includes configuration and a reference to the monitoring code.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/rum/oneAgentJavaScriptTag/{applicationId}
Environment and Cluster ActiveGate (default port 9999)https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/oneAgentJavaScriptTag/{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

Response

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