Monday 4 March 2024

How to integrate New Relic, A Real User Monitor Tool into ReactJS Web Application

 What is New Relic

As per their official docs, New Relic is a web-based software used for full-stack monitoring. It allows you to monitor applications, infrastructure, web browsers, and other components on a single platform. This tool tracks and provides your web application performance details in real time.

Today, we are going to look, how we can integrate New Relic Browser Monitoring tool into ReactJS Web Application. 

It provides a real user monitoring (RUM) solution. It measures speed and performance as your end users navigate to your site through different web browsers, devices, operating systems, and networks. But browser monitoring goes far beyond providing information about the initial page load. Use it to measure full page life cycle data and start getting the info you need to help ensure customer satisfaction.


New Relic lets you monitor the data from browser activity and optimize performance across your entire stack. Use browser monitoring to help ensure successful deployments and quickly troubleshoot customer-visible problems. Monitor your stack at a glance and make sure all your entities are operating as they should. Visualize application speed and performance, JavaScript errors, AJAX requests, and more. Spend less time trying to chase down issues and more time delivering a perfect digital experience to customers.


Step 1: 


Signup to the New Relic Free Account, https://newrelic.com/signup



Step 2:


After Signup, You will be redirected to their dashboard Screen





Step 3:


From Side menu, Click 'Browser', You will be requested to create an Application by selecting the respective Frontend programming language (Angular, ReactJS & Javascript).


Enter Application Name and Pick the programming language as ReactJS.


Step 4:


Copy the Javscript code snippet and put in your ReactJS Web Application index.html, before closing <head> tag.


Once it is done, Refresh your web application and navigate to others pages. You will see real time monitoring data will be reflected in the New Relic Dashboard.











No comments:

Post a Comment