---
title: Update JavaScript for session replay
source: https://docs.newrelic.com/docs/browser/browser-monitoring/browser-pro-features/session-replay/configuration/update-javascript-for-session-replay
---

## (For copy/paste deployed agents) Manually update the JavaScript snippet [#update-snippet]

If you use the copy/paste method to deploy your browser agent, you may need to manually update the JavaScript snippet to include session replay capabilities. This update ensures your application is correctly configured to capture and store replay data.

To update your agent code:

1.  Go to the **Application Settings** page and copy the JavaScript snippet.

    ![Screenshot of the application settings page.](https://docs.newrelic.com/images/browser_screenshot-full_Application-settings-page.webp "Copy/paste installation method")

2.  Paste it in your code where the old snippet was.

3.  Deploy your app.
