Disable automatic injection of Browser monitoring snippet on specific pages.
Compatible with all agent versions.
Must be called inside a transaction.
Add this call to disable the automatic injection of Browser monitoring scripts on specific pages. You can also add an optional override to disable both manual and automatic injection. In either case, put this API call as close as possible to the top of the view in which you want Browser disabled.
GetBrowserTimingHeader(), which adds the Browser script to the page.
This example disables only the automatic injection of the snippet:
This example disables both automatic and manual injection of the snippet:
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.