Skip to main content
Availability2017.1 or later

Before You Start

Options and privacy review

Deploy

Wizard, npm or script tag

Validate

Sessions, replay, errors

Troubleshooting

Wizard errors, missing data

Before You Start

This page deploys GermainUX RUM JS into a ReactJS application. For what it monitors, see ReactJS Operational Experience Intelligence.
  • Access to the ReactJS application’s source code, and a way to build and deploy it
  • The URL where users open the application
  • Users’ browsers can reach your GermainUX environment

Monitoring Options

GermainUX provides several monitoring options for ReactJS. Start with RUM JS for standard ReactJS monitoring. Deploy JS Profiler or synthetic monitoring only where the additional capability is required.

Review Privacy

Before production deployment, review the information captured from the ReactJS application. Depending on the application, consider:
  • Form fields
  • User input
  • Usernames
  • URLs
  • Query parameters
  • Request/response content
  • DOM content
  • Session Replay
  • Application-specific sensitive information
Configure masking, anonymization, encryption, or exclusions where required.

Deploy

1

Start the ReactJS wizard

In the left menu, go to Settings > Wizards, and then select ReactJS.The ReactJS Wizard creates the UX Monitoring Profile and provides the appropriate RUM JS installation instructions for the ReactJS application.
Deploy Monitoring for ReactJS: 1. Start the ReactJS Wizard

ReactJS wizard start page - GermainUX

2

Enter the application details

On the Application step, fill in these fields:Use consistent application names across Production, Staging, and other monitored environments.
Deploy Monitoring for ReactJS: 2. Configure the Application

ReactJS application configuration fields - GermainUX

3

Complete the wizard

Review the monitoring configuration and complete the Wizard.The resulting UX Monitoring Profile contains the configuration used by GermainUX RUM JS for the ReactJS application. The wizard then shows the installation instructions for the next step.
UX Monitoring Profiles for ReactJS

UX Monitoring Profiles for ReactJS - GermainUX

4

Add RUM JS to the application

Choose one of the installation options the wizard shows. Each one loads RUM JS in the user’s browser on every page of the application.
Use the npm package when you want RUM JS in your build, installed and versioned like your other dependencies.Install the package:
With yarn, run yarn add @germainapm/germain-webux-sdk instead.Then call germainApm.init() in the application’s entry file, before the application renders:
src/index.jsx
5

Build and deploy the application

Build and deploy the application through your usual process.The RUM JS must load in the user’s browser on the pages where monitoring is required.Once loaded, RUM JS can collect real-user activity and browser telemetry according to the UX Monitoring Profile.
The deployment instructions can be reviewed later from the ReactJS UX Monitoring Profile. In the left menu, go to Settings > Analytics > UX Monitoring Profiles, select the ReactJS profile, and open Installation. Use these instructions whenever the RUM deployment needs to be reviewed or updated.

Add JavaScript Profiling (Optional)

For deeper JavaScript execution analysis, enable GermainUX JavaScript Profiling. In the left menu, go to Settings > Analytics > UX Monitoring Profiles, select the ReactJS profile, and turn on JavaScript Profiling Monitoring. Depending on the browser and deployment model, JavaScript profiling can use:
  • JavaScript Self-Profiling API
  • GermainUX JS Profiler extension
  • Appropriate response-header configuration
JavaScript Profiling is optional and should be enabled where deeper code-level troubleshooting is required. See Deploy Monitoring for JavaScript.

Add Synthetic Monitoring (Optional)

Use GermainUX RPA Bot Recorder to record important ReactJS user journeys. Examples include:
  • Login
  • Search
  • Critical navigation
  • Form submission
  • Checkout
  • Business workflow
Configure the resulting scenario to execute according to the required monitoring schedule. Synthetic monitoring complements RUM by testing critical workflows even when no actual user is executing them. See GermainUX RPA Bot Recorder.

Add Supporting Monitoring (Optional)

Where end-to-end correlation is required, deploy GermainUX monitoring for the technologies supporting the ReactJS application. Examples include:
  • APIs
  • Java
  • Node.js
  • PHP
  • Databases
  • Logs
  • Servers
  • Kubernetes
  • Network
This enables correlation such as:
UserReactJSAPIBackendDatabase

Validate

Open the ReactJS application and generate representative activity. For example:
Open ApplicationNavigateInteract with React ComponentsSubmit ActionCall API

Real User Monitoring

Verify that GermainUX receives:
  • User session
  • Navigation
  • User actions
  • Browser telemetry
  • ReactJS application activity
  • Network activity
Confirm that data is associated with the correct application and environment.

Session Replay

Verify that monitored sessions can be replayed where Session Replay is enabled. Check:
  • Navigation
  • User actions
  • Application state
  • Relevant errors
  • Timeline events
Review privacy settings before enabling Session Replay broadly in production.

Error Monitoring

Generate or use an approved test error and verify that GermainUX detects the expected browser/application condition. Depending on configuration, this can include:
  • JavaScript errors
  • Console errors
  • Resource errors
  • Network failures
  • Application-specific errors
Verify that the error can be associated with the corresponding user session. For what GermainUX captures, see JavaScript Console and Error Monitoring.

Network Monitoring

Exercise functionality that calls backend APIs or external integrations. Verify visibility into:
  • Requests
  • Response time
  • Latency
  • HTTP status
  • Failed requests
Confirm that network activity is associated with the correct ReactJS session. For what GermainUX captures, see Network Requests Monitoring.

Production Deployment

After production deployment, verify:
  • RUM JS loads
  • UX Monitoring Profile is active
  • User sessions are collected
  • Session Replay operates as configured
  • ReactJS activity is captured
  • Errors are detected
  • Network requests are captured
  • Application identification is correct
  • Privacy controls operate as expected
  • Monitoring introduces acceptable browser overhead

Troubleshooting

The Application URL must be a full URL that includes the scheme and host name, such as https://app.example.com. Correct it and run the wizard again.
A UX Monitoring Profile with the same Application Name already exists. Open it from the link the wizard shows and use its installation instructions, or run the wizard again with a different Application Name.
Open the application, and check in the browser’s developer tools that RUM JS loads and sends requests to your GermainUX environment. If the browser blocks the script, add your GermainUX environment to the application’s Content Security Policy. Also check that the profile’s user, IP and bot exclusions don’t exclude your test user.
The application and profile names in germainApm.init() or in the script tag must match the Application Name you entered in the wizard. Correct them, and build and deploy the application again.

Next Steps

Once ReactJS monitoring is operational, configure: For each setting, see Configure Monitoring for ReactJS.

Get Help

You can tailor ReactJS monitoring to the application’s components, user journeys, errors, performance requirements, privacy requirements, APIs, and integrations. The GermainUX team can help you decide which monitoring, analytics and automation capabilities fit your ReactJS environment.

Contact GermainUX Support

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.

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.