builtin:rum.web.custom-injection-rules)
Define custom injection rules to control when and where RUM is automatically injected into your application's pages.
builtin:rum.web.custom-injection-rules
group:rum-injection
APPLICATION
- Web applicationGET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules |
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.
enabled
operator
Example:
For the URL:
http://www.example.com:8080/lorem/ipsum.jsp?mode=desktop
A rule can be specified on the URL pattern:
/lorem/ipsum.jsp
Using the operator:
URL ends with
Result:
If URL ends with .jsp do not inject the JavaScript library
AllPages
Equals
Starts
Ends
Contains
urlPattern
rule
Automatic
BeforeSpecificHtml
AfterSpecificHtml
DoNotInject
htmlPattern