---
title: Ruby agent browser monitoring settings
source: https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration-browser-monitoring-settings
---

Configure the Ruby agent's browser monitoring settings to control page load timing injection and Content Security Policy nonce support.

## Browser Monitoring [#browser-monitoring]

The browser monitoring [page load timing](https://docs.newrelic.com/docs/browser/new-relic-browser/page-load-timing/page-load-timing-process) 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.

**browser_monitoring.auto_instrument**

| TypeBoolean                                                  |
| ------------------------------------------------------------ |
| Defaulttrue                                                  |
| Environ variableNEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT |

If `true`, enables [auto-injection](https://docs.newrelic.com/docs/browser/new-relic-browser/installation-configuration/adding-apps-new-relic-browser#select-apm-app) of the JavaScript header for page load timing (sometimes referred to as real user monitoring or RUM).

**browser_monitoring.content_security_policy_nonce**

| TypeBoolean                                                                |
| -------------------------------------------------------------------------- |
| Defaulttrue                                                                |
| Environ variableNEW_RELIC_BROWSER_MONITORING_CONTENT_SECURITY_POLICY_NONCE |

If `true`, enables auto-injection of [Content Security Policy Nonce](https://content-security-policy.com/nonce/) in browser monitoring scripts. For now, auto-injection only works with Rails 5.2+.

**browser_monitoring.version**

| TypeString                                           |
| ---------------------------------------------------- |
| Default""                                            |
| Environ variableNEW_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](https://docs.newrelic.com/docs/browser/browser-monitoring/getting-started/browser-agent-eol-policy/) for which versions are currently available and supported.
