Configure the Ruby agent's browser monitoring settings to control page load timing injection and Content Security Policy nonce support.
Browser Monitoring
The page load timing feature (sometimes referred to as real user monitoring or RUM) gives you insight into the performance real users are experiencing with your website. This is accomplished by measuring the time it takes for your users' browsers to download and render your web pages by injecting a small amount of JavaScript code into the header and footer of each page.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT
If true, enables auto-injection of the JavaScript header for page load timing (sometimes referred to as real user monitoring or RUM).
If true, enables auto-injection of Content Security Policy Nonce in browser monitoring scripts. For now, auto-injection only works with Rails 5.2+.
Type
String
Default
""
Environ variable
NEW_RELIC_BROWSER_MONITORING_VERSION
Pin the version of the browser agent loader that New Relic injects, such as 1.317.0. When unset, New Relic injects the latest available version. See the browser agent EOL policy for which versions are currently available and supported.