This sensor does not support OneAgent.
To edit the System Profile specific settings, right click you System Profile, and select Edit System Profile > Agent Group/tier > Sensor Configuration and then select the User Experience item in the Sensor Configuration list.
JS Tag Example
When you use this sensor on a Java application server, you can optimize the servlet filter chain injection point using the following options:
- Inject before outermost HttpServletResponse: Injection works in most cases, but it may not work if one of the servlet filters compresses the HTML response body. In this case, the Java Agent wraps the
HttpServletResponseobject passed to the outermost servlet filter.
- Inject before innermost HttpServletResponse: Injection works in most cases, but it may not work if one of the servlet filters parses the HTML and removes the script tag previously injected by the Java Agent. In this case, the Java Agent wraps the
HttpServletResponseobject passed to the outermost servlet filter and wraps again whenever some other servlet filter wraps our own object.
- Inject in a specific servlet or filter: Use this option as a fallback when none of the automatic options work for all requests. In this case, the Java Agent only wraps the response in the specified filter or servlet.
- Condition and URI pattern specifies any conditions or URI patterns to use for filtering. For example, you specify that the rule should only apply to pages starting with /community/display. Wildcards like * or ? are not supported, but for matching any URI you could use contains /.
- Injection Rule and HTML pattern specify the desired injection behavior:
<head>at delivery of the web page
- do not inject on this agent: Equivalent setting the Injection Point to off. Agents matching other agent groups may take over and perform an injection themselves.
- before specific HTML: Inject before a specific piece of HTML source code known to occur in the page, such as
<link rel="icon" type="image/png" href="/s/620/3/_/images/common-icons/favicon.png">. Specify the code in the HTML pattern field. You can just paste any piece of your HTML source code.
- after specific HTML: Inject after a specific piece of HTML source code known to occur in the page, such as
<BASE HREF="[https://www.example.com/approot/](https://www.example.com/approot/)">Specify the code in the HTML pattern field. You can just paste any piece of your HTML source code.
- do not inject on this and subsequent agents: Same as do not inject on this agent, plus this rule prevents sensor properties set on other (outermore) agents from overriding this choice and performing the injection there.
For rules other than before specific HTML and after specific HTML the contents of the HTML pattern column is ignored. The rule list is evaluated top-down, so that if a page matches multiple URI-specific rules, the topmost rule is applied.
The after specific HTML rule provides a slightly better performance than the before specific HTML rule.