For pages in which the JavaScript Agent was injected manually, you can disable the agent programmatically by adding a script to the header.

To disable Browser Monitoring add the snippet below before adrum.js agent is injected.

window["adrum-disable"] = true
JS

For example:

<head>
    <script type='text/javascript' charset='UTF-8'>
        // before adrum.js 
        window["adrum-disable"] = true
    </script>
   
    <script>
        window["adrum-start-time"] = new Date().getTime();
    </script>
     <!-- adrum.js injection -->
    <script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script>
    ...
</head>
XML

Old Browser Monitoring data is preserved, but no new monitoring data is collected while the agent is disabled.

You can re-enable monitoring by removing the disable script statement.