> ## Documentation Index
> Fetch the complete documentation index at: https://docs.germainux.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Real User Monitoring for Salesforce

> Deploy the RUM Extension or RUM JS through the Germain RUM Agent, add the CSP Trusted Sites, and confirm that Salesforce sessions arrive.

Components
[`RUM JS`](https://docs.germainux.com/deploy/germain-ux-rum-js)
[`RUM Extension`](https://docs.germainux.com/deploy/germain-ux-rum-extension)

Availability
2017.1 or later

> [card] [Before You Start](#before-you-start)
>
> Browsers, permissions, network

> [card] [Deploy](#deploy)
>
> RUM JS or RUM Extension

> [card] [Validate](#validate)
>
> First sessions and replays

> [card] [Troubleshooting](#troubleshooting)
>
> No data arrives

## Overview

Real User Monitoring records what Salesforce users do and see in the browser, and feeds Session Replay. This page covers the browser side of a Salesforce deployment. For the Engine side, see [Deploy Engine Monitoring for Salesforce](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-engine-monitoring-deployment.md). For what Salesforce monitoring gives you, see [Salesforce Operational Experience Intelligence](https://docs.germainux.com/integrations/salesforce-monitoring.md).

## Choose an Option

The RUM Extension is the recommended option for Salesforce. It covers the pages RUM JS can't, such as Setup, Salesforce Classic and pages outside the Lightning app, and it starts monitoring with the page load.

RUM JS through the **Germain RUM Agent** is the alternative for Salesforce Lightning when browser extensions can't be deployed to your users. It needs no extension, but it only monitors the Lightning apps whose utility bar loads it. See the limits below.

Both options use the **Salesforce** UX Monitoring Profile. For what it captures, see [Salesforce Browser Monitoring Data](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-browser-monitoring-data.md).

| Deployment option | Benefits | Limits / considerations |
| - | - | - |
| **RUM JS** | • Does not require installing or maintaining a Chrome/Edge browser extension for every Salesforce user. • Delivered through a Salesforce Aura package installed into the Salesforce Lightning Utility Bar. | • The Utility Bar must be allowed and enabled on every Salesforce page or app that needs monitoring. • No monitoring is captured when users navigate to areas where the Utility Bar cannot be configured or loaded, including Setup and anything under it, such as Object Manager, App Manager, and permission sets. • No monitoring is captured for builder tools launched from Setup, including Lightning App Builder, Flow Builder, Experience Builder, and Email Template Builder. • Salesforce Classic is not supported; RUM JS through this deployment applies to Lightning Experience only. • Pages outside the Lightning app container are not covered, including Lightning Out, Lightning components embedded in Visualforce, and Visualforce pages accessed directly by URL, such as `/apex/MyPage`. • Login, logout, and other unauthenticated pages are not monitored, including login-failure monitoring. • Cross-origin iframe content is not present in Session Replay. This includes Visualforce pages rendered in Lightning Experience on a different host, such as `*--c.vf.force.com` versus `*.lightning.force.com`, including Visualforce sections on page layouts, Visualforce quick actions, Visualforce tabs, and Visualforce console components. • Web tabs and custom links that frame external URLs in Salesforce are not captured inside replay. • Container components, including `lightning-container` for LWC and `lightning:container` for Aura, host bundled third-party apps from static resources inside iframes, so their content is not present in replay. • Browser crashes cannot be detected. • The first few seconds of the first page load are missing from replay, including most performance metrics and first network requests, because Utility Bar components load last. |
| **RUM Extension** | • Recommended when browser-extension deployment is preferred or already managed centrally. • Can cover scenarios that RUM JS cannot cover through the Lightning Utility Bar, including Salesforce Classic coverage and extension-based browser access requirements. • Can be provided by the Germain Team as a prefilled/preconfigured extension on request, so no manual configuration change is needed. | • The Chrome/Edge extension must be deployed and maintained for all Salesforce users who need monitoring. • Requires browser-extension governance, rollout, updates, and user/device coverage management. |

### Comparison

| Area | RUM JS | RUM Extension |
| - | - | - |
| Deployment | Salesforce Aura package and Lightning Utility Bar configuration. | Browser extension deployment to users’ browsers. |
| Primary fit | Salesforce Lightning environments. | Salesforce Classic, extension-managed deployments, or cases requiring browser-extension access. |

## Before You Start

Before deploying Salesforce Real User Monitoring, confirm the following:

| Requirement | Details |
| - | - |
| **Salesforce edition and interface** | Salesforce Classic or Lightning can be monitored. Lightning Experience must be enabled when using the Lightning-component configuration method. |
| **Salesforce domain** | Configure and use your organization’s Salesforce domain. |
| **Salesforce permissions** | Administrators deploying the Germain RUM Agent need permission to deploy metadata or install packages, and to edit Lightning applications. |
| **CSP Trusted Sites** | Administrators must be able to manage Salesforce CSP Trusted Sites. |
| **Supported browsers** | Use a supported, current version of Google Chrome, Microsoft Edge, or Mozilla Firefox. |
| **Browser configuration** | JavaScript and cookies must be enabled. |
| **Private browsing** | Incognito and other private-browsing modes are not supported. |
| **Network access** | Browsers must be able to send outbound HTTPS traffic to the GermainUX environment. |
| **Enterprise extension policy** | If extensions are centrally controlled, the GermainUX extension must be approved and deployed through the organization’s browser-management policy. |
| **Security and privacy** | Configure [masking](https://docs.germainux.com/management/compliance-privacy-and-security/data-privacy.md#masking), [anonymization](https://docs.germainux.com/management/compliance-privacy-and-security/data-privacy.md#anonymization), and [exclusions](https://docs.germainux.com/management/compliance-privacy-and-security/data-privacy.md#exclusion) before production rollout. |

## Deploy

### Option 1: Deploy RUM JS Through the Salesforce Lightning Utility Bar

RUM JS is loaded by the **Germain RUM Agent**, an Aura utility item that you deploy into your Salesforce org. When a user opens a Lightning app with the utility item, the agent loads its monitoring script from your GermainUX instance and starts monitoring. The GermainUX team provides the Germain RUM Agent, either as a package installation URL or as a Salesforce DX project to deploy with the Salesforce CLI.

Before you start, make sure that:

* You can edit Lightning apps in the target org
* Browsers can reach your GermainUX instance
* To deploy with the CLI, the Salesforce CLI (`sf`) is installed

1. Install the Germain RUM Agent:
   * **From a package**: open the package installation URL from the GermainUX team and install the package. When it completes, confirm that the package appears under **Installed Packages**.

     ![Install GermainUX Salesforce Aura package](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/1.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=4620e7446e4a97aebac9e0fa1f5027e1)

     Install GermainUX Salesforce Aura package - GermainUX

     ![GermainUX package listed under Installed Packages](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/3.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=26e16026cccc851a8251b5d846f9108c)

     GermainUX package listed under Installed Packages - GermainUX
   * **With the Salesforce CLI**: log in to the org, then deploy the project from its folder.
     ```bash theme={null}
     sf org login web -a targetOrg
     sf project deploy start -d force-app -o targetOrg
     ```
     A production org also runs the Apex tests during deployment:
     ```bash theme={null}
     sf project deploy start -d force-app -o targetOrg --test-level RunLocalTests
     ```
2. In Salesforce Setup, open **App Manager**.
3. Edit the target Lightning app, such as **Service Console**.

   ![Edit target Lightning app in App Manager](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/4.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=74439cb710b25645aebccbcfec2e716a)

   Edit target Lightning app in App Manager - GermainUX
4. Open **Utility Items (Desktop Only)**.

   ![Utility Items configuration in Lightning app](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/5.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=38f355328025babcddf40c9bce566835)

   Utility Items configuration in Lightning app - GermainUX
5. Select **Add Utility Item**, then choose **GUX**, the Germain RUM Agent component. Keep its label **GUX**, or give it a label your users recognize.
6. Enable **Start automatically**, and save the app. Without it, the agent only loads once a user opens the utility panel.

   ![Configure GUX utility item properties with Start automatically enabled](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/6.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=2771dcc2061356fd03f9455c1a1fb0d2)

   Configure GUX utility item properties with Start automatically enabled - GermainUX
7. Open the app, click **GUX** (or the label you gave it) in the utility bar, enter these values, and click **Apply**:

   | Field | Value |
   | - | - |
   | **Germain instance URL** | The root URL of your GermainUX instance, such as `https://abc.cloud.germainux.com` |
   | **Monitoring profile name** | The UX Monitoring Profile to use. Default: `Salesforce` |
   | **Web application name** | The application name the data is reported under. Default: `SFDC` |

   ![GUX utility panel open from the Salesforce utility bar, with the Germain instance URL, Monitoring profile name (Salesforce) and Web application name (SFDC) fields and the Apply button](https://mintcdn.com/germain-ux/-y4lkVLc1-6hkkiz/images/main/salesforce-monitoring-deployment/germain-rum-agent-settings.png?fit=max\&auto=format\&n=-y4lkVLc1-6hkkiz\&q=85\&s=d1761d67a2da6829d9d2f21a03485bed)

   Germain RUM Agent Settings in the Utility Bar - GermainUX

The settings apply to the whole org, so one administrator configures them once for all users. **Apply** reloads the agent with the new settings, with no redeployment.

Add the Germain RUM Agent to the utility bar of every Lightning app you want to monitor.

#### Germain RUM Agent Constraints

* The agent runs at Salesforce API version 39.0, which keeps Lightning Locker off for the component so it can load RUM JS. Don't raise its API version.
* Salesforce retires API versions 31.0 to 40.0 in June 2028, so this deployment method has a known end date.
* The GermainUX team distributes the agent directly, not through AppExchange.
* It only runs in Lightning apps with a utility bar.

### Option 2: Deploy the RUM Extension

The RUM Extension is the recommended option for Salesforce Lightning and Salesforce Classic. Use it unless browser extensions can't be deployed to your users.

#### Organization-Wide Deployment

Use enterprise browser-management policies, such as Windows Group Policy, to deploy the extension to all applicable Salesforce users.

This approach is recommended for managed production environments because it provides:

* Consistent installation
* Centralized upgrades
* Reduced user involvement
* Controlled extension permissions
* Reliable monitoring coverage

See [Deploy the GermainUX RUM Extension for All Users](https://docs.germainux.com/deploy/germain-ux-rum-extension.md#enterprise-deployment).

#### Individual Deployment

Install the extension manually for selected users when:

* Running a proof of concept
* Testing a new configuration
* Troubleshooting a specific user issue
* Monitoring a small user group

See [Deploy the GermainUX RUM Extension for an Individual User](https://docs.germainux.com/deploy/germain-ux-rum-extension.md#individual-installation).

### Configure the RUM Extension

After installation, configure the extension using one of these methods:

| Method | Best suited for |
| - | - |
| **Automatic configuration through a Salesforce Lightning component** | Centrally configuring the extension and reducing end-user involvement |
| **Manual configuration in the extension** | Proofs of concept, selected users, and cases where users may enable or disable monitoring |

Salesforce CSP Trusted Sites must also be configured for either approach.

#### Automatic Extension Configuration

On request, the Germain Team can provide a prefilled/preconfigured extension so no manual configuration changes are needed.

#### Manual Extension Configuration

Use manual configuration when selected users should control whether Salesforce monitoring is active.

**1. Open the extension settings**

Click the GermainUX RUM Extension icon in the browser toolbar to open its settings.

**2. Enter your GermainUX URL**

In the URL field at the top, enter the base URL of your GermainUX environment, such as `https://abc.cloud.germainux.com`.

**3. Add the Salesforce org**

Click **Add New Website**, and fill in the **New Website** form:

| Field | Value |
| - | - |
| **Website URL** | Base URL of the Salesforce organization, beginning with `https://` |
| **Application Name** | Application name configured in GermainUX, such as `Salesforce` |
| **Profile Name** | Corresponding UX monitoring profile, such as `Salesforce` |

![GermainUX RUM Extension settings with website and profile configuration](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/image-20230329-124009.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=b0f7367323a4e4e92beec136b578be0e)

GermainUX RUM Extension settings with website and profile configuration - GermainUX

Click **Save**. The org appears under **Monitored Websites**.

**4. Reload Salesforce**

Reload the open Salesforce tabs, so the extension starts monitoring them. To check the result, see [Validate](#validate).

## Configure CSP Trusted Sites

Configure CSP Trusted Sites whether the extension is configured automatically or manually.

In Salesforce:

1. Open **Setup**.
2. Search for **Trusted URLs**.
3. Add the required origins.
4. Set each entry to **Active**.
5. Select the appropriate Salesforce context.
6. Enable only the CSP directives required by the integration.

   ![Configure Salesforce CSP Trusted Sites for GermainUX origins](https://mintcdn.com/germain-ux/BTxCucYnGj_ffpsA/images/main/salesforce-monitoring-deployment/image-20260908-064116.png?fit=max\&auto=format\&n=BTxCucYnGj_ffpsA\&q=85\&s=f08e6c46341d56a6996417a09d716426)

   Configure Salesforce CSP Trusted Sites for GermainUX origins - GermainUX

The current deployment requires the following origins:

| Trusted-site name | URL |
| - | - |
| `GermainUX` | GermainUX root origin, such as `https://abc.cloud.germainux.com` |
| `SalesforceDomain` | Salesforce organization origin, such as `https://company.my.salesforce.com` |
| `SalesforceLightningDomain` | Lightning origin, such as `https://company.lightning.force.com` |
| `SalesforceContentDomain` | Content domain used by the organization |

The original configuration selects **All** contexts and CSP directives. For production, your Salesforce security team should apply the least-privilege set supported by the GermainUX deployment and validate the resulting monitoring coverage.

The `GermainUX` entry needs at least the **connect-src** directive. The browser loads its monitoring configuration from GermainUX and sends monitoring data to `/ingestion/beacon/fact` on that origin.

Do not add URL paths, wildcards, or unrelated domains unless specifically required.

## Validate

After deployment:

**1. Open Salesforce in a supported non-private browser window**

**2. Confirm that the RUM Extension is installed and enabled**

**3. Confirm that the Salesforce website appears in the extension configuration**

**4. Perform several Salesforce actions:**

* Navigate to another page.
* Open a record.
* Click a button.
* Run a search.
* Complete a monitored workflow step.

1. In GermainUX, verify that:

* A user session appears.
* User clicks and navigation are captured.
* Page and interaction durations are available.
* The correct application and profile are assigned.
* Session Replay opens and contains the expected activity.
* Sensitive values are masked or excluded as designed.

## Troubleshooting

If no data appears, check:

* Browser extension policies
* CSP Trusted Sites
* Network access to GermainUX
* Application and profile names
* Salesforce origin matching
* Browser console and extension errors
* Private-browsing status

## Next Steps

> [card] [Deploy Engine Monitoring](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-engine-monitoring-deployment.md)
>
> Event logs, debug logs, limits and audit through the API

> [card] [Browser Monitoring Data](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-browser-monitoring-data.md)
>
> What the Salesforce profile captures

## Get Help

> [card] [Contact GermainUX Support](https://docs.germainux.com/getting-started/support.md)
>
> The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

> [card] Can't Find What You Need?
>
> Search all GermainUX docs with **Ctrl + K**, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.