Skip to main content
Availability2017.1 or later

Before You Start

RUM JS already deployed

Configure

Replay, profiling, exclusions

Validate

Check activity and overhead

Troubleshooting

Missing replays and users

Before You Start

Configure

The ReactJS UX Monitoring Profile controls what RUM JS collects. This section covers the settings you change most for a ReactJS application. Browser monitoring features that work the same in every web application are listed under Other Browser Monitoring Features, with links to their pages.

Open the UX Monitoring Profile

In the left menu, go to Settings > Analytics > UX Monitoring Profiles. Select the UX Monitoring Profile used by the ReactJS application. The profile controls the browser-side monitoring behavior for the application. Verify that monitored activity is associated with the correct application. Use consistent application and environment names across:
  • Production
  • Staging
  • Development
  • Other monitored environments
Correct application identification is important for analytics and correlation with backend and infrastructure telemetry.
UX Monitoring Profiles list with the myReactApp profile selected and the Installation tab showing npm, yarn and script tag options

UX Monitoring Profiles list, including a ReactJS application profile - GermainUX

Session Replay

Session Replay is controlled by the ReactJS UX Monitoring Profile. In the left menu, go to Settings > Analytics > UX Monitoring Profiles, open the ReactJS profile, and turn Session Replay Monitoring on or off. Session Replay can be configured to control:
  • Whether sessions are recorded
  • Session duration
  • Session timeout
  • User/session behavior
  • Privacy
  • Exclusions
  • Timeline events
Use replay to investigate the context surrounding ReactJS performance, errors, and user friction. Session duration. GermainUX supports settings such as settings.constants.maxSessionDurationMillis to limit the maximum recording duration. Session timeout can also be configured globally through Settings > System > UX/Session Replay Settings. Users who change. For environments where multiple users may authenticate through the same browser, set settings.constants.createNewSessionIfUsernameChanges to create a new monitored session when the username changes:
For all Session Replay settings, see User Monitoring and Session Replay Configuration.

JavaScript Profiling

For deeper JavaScript performance analysis, go to Settings > Analytics > UX Monitoring Profiles in the left menu, open the ReactJS profile, and turn on JavaScript Profiling Monitoring. GermainUX supports JavaScript profiling through the available browser profiling mechanisms. Use profiling selectively where code-level execution analysis is required. Advanced profiling behavior is available through settings.plugins.jsProfiling. Configuration options include:
  • functionMinStackHits
  • maxSampleBufferSize
  • maxProfileDuration
  • profileOnPageReady
  • sampleIntervalMillis
  • useSelfProfilingAPI
  • excludedUsernames
  • includedUsernames
Use these settings only when the standard profiling configuration needs to be customized. See Configure Monitoring for JavaScript.

ReactJS Component Analysis

Configure analytics for ReactJS component activity captured from the application. Use component analysis to identify:
  • Component usage
  • Rendering performance
  • Slow-performing components
  • Components associated with poor user experience
Analyze component performance together with the affected user session rather than in isolation.

Exclusions

To keep bots, test traffic and automated users out of ReactJS user analytics and Session Replay, configure these settings in the ReactJS profile (Settings > Analytics > UX Monitoring Profiles):

Phrases of Interest

Configure Phrases of Interest to detect important text appearing in the ReactJS application. Examples include:
  • Error messages
  • Warnings
  • Confirmation messages
  • Out-of-stock messages
  • Compliance messages
  • Application-specific conditions
Phrases can be exact text or regular expressions. When detected, GermainUX creates the corresponding insight and can mark it within Session Replay.

Data Privacy

Review the data collected from the ReactJS application. GermainUX supports privacy controls to exclude, mask, anonymize or encrypt data where applicable. Review:
  • Form fields
  • User input
  • DOM content
  • URLs
  • Query parameters
  • Usernames
  • Session identifiers
  • Request/response information
Collect only the information required for the monitoring objective. See Data Privacy and Form Privacy.

Other Browser Monitoring Features

RUM JS monitors a ReactJS application the same way as any web application, so these features are configured on their Browser Monitoring pages:

Analytics, Alerts and Automation

Once data arrives, set up the analytics and alerting for the ReactJS conditions important to the application. Configure thresholds, recipients and schedules according to expected application behavior and operational ownership.

Validate

Generate representative ReactJS activity and verify: Also verify that monitoring introduces acceptable browser overhead and does not collect unapproved sensitive information.

Troubleshooting

Check that Session Replay Monitoring is turned on in the ReactJS profile, and that the users are not excluded (see Exclusions).
Check the profile’s Excluded Usernames, Excluded IP Ranges and Included IP Ranges. If the test runs in an automated or headless browser, check Exclude Headless Browsers too.
Set settings.constants.createNewSessionIfUsernameChanges = true;, so GermainUX starts a new session when the username changes. See Session Replay.

Advanced Configuration

Advanced ReactJS monitoring should use the underlying GermainUX RUM JS and JavaScript configuration rather than duplicating all browser configuration on this page. Use the corresponding technical configuration references for:

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.