PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
21.94k stars 1.32k forks source link

Iframe content doesn't show in recordings #13411

Closed raziele closed 6 months ago

raziele commented 1 year ago

Bug description

Hi!

We have a webapp embedded into our website as an Iframe.

For some reason, the content of the embedded frame doesn't show in our recordings: SCR-20221219-pen

example recording

To compare, we were able to record the same Iframe with FullStory with no issues. Here's an example screenshot: SCR-20221219-p4u

Environment

dfrho commented 1 year ago

Same issue here. Here's how FS addresses in their public-facing documentation. Not sure how the capture script handles 'owned and operated' iframes out of the box.

https://help.fullstory.com/hc/en-us/articles/360020622514-Can-FullStory-capture-content-that-is-presented-in-iframes-#h_01F1G32T05WMNM8TRR1TFDFP2Z

marandaneto commented 6 months ago

@raziele sorry for the long delay. Did you check https://posthog.com/docs/session-replay/iframes#recording-cross-origin-iframes ? Or was it same origin?

raziele commented 6 months ago

Hi @marandaneto it was the same origin. A lot has happened since then; now the iframes are shown, however they are viewed many times as their own "tab" or "screen", which effectively causes a jitter effect that makes it hard to watch recordings. However, this specific issue is resolved.

marandaneto commented 6 months ago

feel free to raise a new issue/reach out to customer support about this other problem, thanks.