Try it free

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.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/rum/javaScriptTag/{applicationId}
GETEnvironment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/javaScriptTag/{applicationId}

Authentication

Api-Token:

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

One of the following permissions is required for personal access tokens:

  • environment:roles:manage-settings

To learn how to obtain and use it, see Personal access tokens.

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.