PostHog can capture network requests and their performance that occur during the browser session, so you can see the effect of slow network requests or errors on the user experience.
You can enable network recording from your project settings:
To remove sensitive information from the URL, these network requests can be modified before being captured like so:
posthog.init('<ph_project_api_key>', {session_recording: {maskNetworkRequestFn: (request) => {// For example: ignoring a request entirelyif (request.url.includes('example.com')) {return null}// ... or remove the query string from the URLrequest.url = request.url.split('?')[0]return request}}})