This procedure is part of a lab that teaches you how to troubleshoot your web app with New Relic browser.
Each procedure in the lab builds upon the last, so make sure you've completed the last procedure, Set up your lab environment, before starting this one.
Your React app is now up and running in the browser. You want to make sure your users always have the best experience on your site. For that, you need insights into your users' experiences, such as their page load times.
To achieve this goal, you need to install our browser agent.
Navigate to New Relic, and sign in with your account.
On the right side of the upper navigation bar, click Add data.
Scroll down to Browser & mobile and select Browser monitoring.
This opens Get Started with New Relic Browser, which guides you through installing our browser agent.
Scroll down to Name your app, select No. (Name your standalone app), name your app Reliqstaurant, and click Enable.
Save this code snippet at a place where you could easily find it later. You re-use this code snippet to enable browser monitoring for your application in next procedures.
Open your app in the IDE of your choice.
Your application is now instrumented with our browser agent.
Now that you've instrumented your application, it's time to restart your local server.
$npm run build$npm run newstart
Restart your load generator, as well.
Make sure you're running these commands in the correct terminal windows. If you no longer have those windows, follow the steps in the setup procedure.
Your app is now sending browser data to New Relic. View this data in New Relic, under Browser.
Navigate to New Relic, select Browser from the top navigation, and select Reliqstaurant.
Here, you see Core web vitals, User time on the site, Initial page load and route change, and other performance data from your app.
You've instrumented your application to send browser data to New Relic using our browser agent. You also see your performance data in New Relic. Next, you use this data to troubleshoot front-end errors with your site.
This procedure is part of a lab that teaches you how to troubleshoot your web app with New Relic browser. Now that you've instrumented your application with our browser agent, debug errors.