Browser monitoring's page load timing feature can track sessions by using the sessionStorage API that can store a simple session identifier.
Here is the basic process for session tracking:
- A session begins when a user visits a website where New Relic's browser monitoring is installed and the privacy setting for tracking is enabled.
- As the user's page is loaded, our browser monitoring script sets a simple session identifier in the browser.
- The script then reads the ID on subsequent page loads, reloads and restores, within the same tab.
- The same session will continue until the user's tab/window is closed.
Session tracking will not work properly in these situations:
- If users have DOM Storage disabled in their browser.
- If the browser or page is configured to not allow loading and execution of third-party origin scripts through security policies or other means (which naturally means the agent as a whole will not function).
At New Relic, we take data privacy seriously. By default, we do not retain any personal data collected by our browser agent, and you can control session tracking. If you want to enable or disable session tracking on web browsers of visitors to your website:
- Go to one.newrelic.com > Browser > (select an app) > Settings > Application settings.
- In your app's Privacy settings, toggle Session tracking.