Configure APM Browser Agent Injection using APM Dotnet Agent
The APM Dotnet Agent can be configured to automatically inject the APM Browser Agent in the HTML content served by ASP.NET or ASP.NET Core web servers running on IIS.
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 Dotnet 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 Dotnet 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: