Configure APM Browser Agent Injection using APM Java Agent

The APM Java Agent can be configured to automatically inject the APM Browser Agent in the HTML content served by Servlets running on supported Application Servers.

It adds a small javascript to every page in the application. This is a useful approach in applications where it is not possible for an Application Administrator to add the APM Browser Agent to a page manually. An example of this scenario might be the packaged applications where the source code is not available.

By default the APM Java Agent is configured to carefully identify and inject the APM Browser Agent in only valid HTML pages. It has logic to avoid injecting in non-HTML content.

The APM Browser Agent injection using the APM Java Agent feature supports many different applications, but not all applications are created equally, some pages may be adversely affected by the automatic injection. It’s important to evaluate the application before enabling this feature to avoid any issues with the application functionality. Fine grained exclusion of pages can be configured to address issues with individual pages.

This section covers the following topics:

Note

For more information about APM Browser Agent, see Configure APM Browser Agent.