iFrames
LogRocket supports playback of same-domain iFrames as part of your session recordings.
In order to view iFrame playback within your session recording, you must include a LogRocket.init()
call within your iFrame code as well as your main application code.
Then, within both LogRocket.init()
calls, you must include the option mergeIframes: true
:
LogRocket.init(
mergeIframes: true;
)
See here for more information on the mergeIframes
option.
Playback Details
The network requests and logging information from within the iFrame will be recorded and shown as normal within the developer pane during session playback.
Subdomains
LogRocket supports recording and playback of iFrames running on subdomains.
Follow the instructions here to include the rootHostname
in your init()
call. This should be included in both the main application as well as the iFrame code.
Please note that iFrames running on a different or third-party domain are not supported.
Updated over 4 years ago