diff --git a/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay.mdx b/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay.mdx index c10c0f16264..4175d43a9d7 100644 --- a/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay.mdx +++ b/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay.mdx @@ -1,10 +1,10 @@ --- title: "Session replay" metaDescription: "Play back user interactions to debug faster and improve page performance." -freshnessValidatedDate: 2024-04-23 +freshnessValidatedDate: 2024-11-11 --- -Session replay plays back user interactions on your web app and maps other telemetry data to help you understand your user's journeys. Session replay can be used for troubleshooting and improving the end-user experience, such as: +Session replay captures interactions on your web app and maps other telemetry data to help you understand your user's journeys. Session replay can be used for troubleshooting and improving the end-user experience, such as: * **Troubleshooting JavaScript errors**: Troubleshoot the cause of an error by seeing what the user was doing when the error occurred. For example, if an end user receives an error while trying to complete an ecommerce transaction, you can use session replay to see which steps they took and what data they entered before the error occurred. This can help you quickly identify and fix the root cause of the problem. * **Improving the user experience**: Discover areas of your web app that are causing users frustration. For example, you might see that users are getting lost in your navigation or clicking on buttons that don't do anything. @@ -249,6 +249,30 @@ For more details on session replay, see the following sections: ``` + + ### Problem + + Session replay feature is enabled, but you're not seeing replay data for iframe content. + + ### Solution + + The behavior of session replay in iframe scenarios depends on the origin of the iframe and the placement of the browser agent. + + Assuming a web page consists of a top-level window with a child iframe, here are some possible fixes: + * **Same-origin iframes**: + * If you place the browser agent in the top-level window, session replay captures both the window and the iframe. + * If you place the browser agent in the iframe, session replay only captures what's in the iframe. + * If you place the browser agent in both the top-level window and iframe, session replay captures what's happening independently in both the window and iframe, resulting in two separate sessions. + * **Cross-origin iframes**: + * If you place the browser agent in the top-level window, session replay only captures what's in the window. The iframe will appear blank in session replay. + * If you place the browser agent in the top-level iframe, session replay only captures what's in the iframe. + + Session replay is **not** compatible with `` elements. + + ## Manually record session replays [#manual-replays]