builtin:rum.web.manual-insertion)
Manually insert one of the snippet formats below into the pages of your application. Learn more about the different snippet formats. All formats are also available via the API, allowing you to automate their insertion as part of your build process.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:rum.web.manual-insertion |
| APPLICATION - Web application |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.manual-insertion |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:rum.web.manual-insertion | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.manual-insertion |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Property | Type | Description | Required |
---|---|---|---|
Javascript tagjavascriptTag | javascriptTag | JavaScript tag references an external file containing monitoring code and configuration. Due to its dynamic update mechanism, it is recommended for most use cases. | required |
OneAgent JavaScript TagoneagentJavascriptTag | oneagentJavascriptTag | OneAgent JavaScript tag includes configuration and a reference to an external file containing the monitoring code. It needs to be updated after configuration changes and monitoring code updates. | required |
OneAgent JavaScript Tag with SRIoneagentJavascriptTagSRI | oneagentJavascriptTagSRI | OneAgent JavaScript tag with SRI includes configuration, a reference to an external file containing the monitoring code, and a hash that allows the browser to verify the integrity of the monitoring code before executing it. It needs to be updated after configuration changes and monitoring code updates. | required |
Code SnippetcodeSnippet | codeSnippet | Code snippet is a piece of inline code that implements basic functionality and loads the full functionality either synchronously or deferred. Even though it implements an update mechanism, regular updates are still required to guarantee compatibility. | required |
javascriptTag
objectProperty | Type | Description | Required |
---|---|---|---|
Cache monitoring code and configuration forcacheDuration | enum |
| required |
Script execution attributescriptExecutionAttribute | enum | Add the Add the
| optional |
Add crossorigin=anonymous attributecrossoriginAnonymous | boolean | Add the | required |
oneagentJavascriptTag
objectProperty | Type | Description | Required |
---|---|---|---|
Script execution attributescriptExecutionAttribute | enum | Add the Add the
| optional |
oneagentJavascriptTagSRI
objectProperty | Type | Description | Required |
---|---|---|---|
Script execution attributescriptExecutionAttribute | enum | Add the Add the
| optional |
codeSnippet
objectProperty | Type | Description | Required |
---|---|---|---|
Load the monitoring codecodeSnippetType | enum |
| required |