Image not showing in session replay, Thats limitation or I need to add any prop?
Hi Anjali N., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> 👋
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
By default, Mixpanel Session Replay does not show images – they are blocked for privacy, and rendered as empty placeholder boxes. [Session privacy]
So this is expected behavior unless you explicitly change the configuration. It’s not a hard limitation; you need to adjust your Session Replay settings:
- Web (JavaScript SDK): images are blocked by default via record_block_selector: "img, video". To allow images, override this in mixpanel.init (for example, remove img from the selector or set your own):
``` js mixpanel.init('YOUR_PROJECT_TOKEN', { record_sessions_percent: 100, record_block_selector: 'video' // images no longer blocked });
LBKSor use `record_block_class` / `record_block_selector` only for elements you **do** want blocked. [[JS init options](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript/javascript-replay#init-options); [Blocking elements](https://docs.mixpanel.com/docs/session-replay/session-replay-privacy-controls#blocking-elements)]
- **Mobile (iOS / Android / React Native):** all images are masked/blocked by default via `autoMaskedViews`. You can unmask them by changing `autoMaskedViews` in your Session Replay config. [[iOS privacy](https://docs.mixpanel.com/docs/tracking-methods/sdks/swift/swift-replay#privacy); [Android privacy](https://docs.mixpanel.com/docs/tracking-methods/sdks/android/android-replay#privacy); [RN privacy](https://docs.mixpanel.com/docs/tracking-methods/sdks/react-native/react-native-replay#privacy--data-masking)]
If you tell me which platform (Web, iOS, Android, React Native) you’re using, I can show the exact config snippet you should use.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Thanks
