Why Does Session Replay Go Blank on Salesforce B2B Commerce Pages?
Session replay goes blank on Salesforce B2B Commerce and other dynamic pages when the recording script cannot see or rebuild the content: a security sandbox blocks the script, components sit inside shadow DOM, content loads in iframes, or replay cannot fetch the page's styles, fonts and images because of access rules or CORS.
Last updated December 2, 2026
A blank session replay is one of the most frustrating results in ecommerce analytics. The tool says the session was recorded, the timeline shows clicks and scrolls, and the playback is an empty white page or an unstyled wall of text. It happens most often on modern, component-based storefronts, including Salesforce B2B Commerce and D2C sites built on Lightning Web Components, and on pages that build their content in the browser after load. One B2B ecommerce marketing leader described their replay tool simply: everything is blank right now, because the content is dynamic. This post explains why that happens, which causes apply to Salesforce storefronts in particular and what to check before deciding replay cannot work on your site.
Key takeaways
- Replay records changes to the page and rebuilds them later, so anything the script cannot see or re-fetch plays back blank.
- Salesforce storefronts add two hurdles: Lightning Web Security sandboxes and shadow DOM around components.
- Iframes, canvas elements, blocked assets and CORS rules cause blank or unstyled playback on any platform.
- Check script placement, asset access and CORS headers first; they resolve many blank replays.
Part of: Noibu's CRO agent
How does session replay work, and why can it go blank?
Session replay is not a screen recording. A script on the page captures the structure of the page and every change to it, along with clicks, scrolls and inputs. Later, the replay viewer rebuilds the page from that record and re-loads its stylesheets, fonts and images to make it look the way it did. Blank or broken playback means one of those two halves failed: the script never saw the content, or the viewer could not rebuild it.
Static pages rarely cause trouble, because the content is in the page when it loads. Dynamic pages build much of their content in the browser after load, wrap it in components or load it from other domains. Each of those patterns gives the recording script more chances to miss something. The best session replay tools for ecommerce compares how tools handle this in general.
Why does replay go blank on Salesforce B2B Commerce?
Lightning Web Security sandboxes scripts. Salesforce B2B Commerce and D2C stores on Experience Cloud are built from Lightning Web Components. Salesforce's page on third-party analytics libraries blocked by Lightning Web Security explains that analytics libraries need broad access to the page, while Lightning Web Security keeps code in one namespace from reaching code in another, and prevents third-party analytics scripts from accessing code running inside its sandboxes. The page points Experience Cloud sites to a workaround that relies on adding the scripts to the site's head markup. A replay script installed as a component, rather than in the head, can end up recording very little.
Components sit behind shadow DOM. Salesforce's Trailhead module on shadow DOM in B2B2C Commerce explains that shadow DOM encapsulates each component's HTML, CSS and JavaScript, and that a plain document query cannot reach elements inside a component without going through its shadow root. Recording scripts that only observe the main document can capture the outer frame of the page while every product tile, price and button inside a component plays back as empty space.
Content arrives late and from APIs. B2B storefronts often load pricing, availability and account-specific catalogs after sign-in, through API calls that fill components in place. If the recording script misses those updates, or the session starts after a single-page navigation it does not track, the replay shows the page before the content arrived.
What else causes blank or broken session replays?
Causes of blank or broken session replays
| Cause | What playback looks like | What to check |
|---|---|---|
| Script sandboxed or loaded late | Mostly empty pages, a few clicks on blank space | Install the recording script in the site head, early in the page |
| Shadow DOM components | Page frame visible, component content missing | Whether the tool records inside shadow roots on your framework |
| Iframes and canvas | Empty boxes where chat, maps, forms or payment fields sit | Which widgets load in iframes; accept that some cannot be recorded |
| Assets blocked from the viewer | Unstyled text, missing images | IP, referrer, login or bot rules that block the replay service |
| CORS on fonts and assets | Icons and fonts shown as boxes | Access-Control-Allow-Origin headers for the replay viewer domain |
| Assets removed since the visit | Missing images on older sessions | Whether old CSS and image versions are still served |
Iframes and canvas. Hotjar's troubleshooting FAQ for recordings notes that it cannot track iframe content for security reasons, which affects chatbots, maps and third-party forms, and that canvas content is not exposed to the page structure at all. Payment fields hosted by a payment provider usually load in iframes too, so blank boxes in checkout replays are often expected.
Assets the viewer cannot load. The same Hotjar FAQ says its servers need access to the site's assets to generate recordings, and lists blocking by location, IP, domain, referrer or a missing cookie as common causes of broken playback. Noibu's own session replay troubleshooting guide describes the same pattern: assets that no longer exist, assets behind authentication, security services that block the replay script because its behavior looks like a bot, and cross-origin rules on assets.
CORS on fonts and stylesheets. Fonts are often restricted to the store's own domain. When the replay viewer, running on the tool's domain, tries to load them, the browser blocks the request and icons and text render as boxes. Adding the replay viewer's domain to the Access-Control-Allow-Origin header on those assets resolves it; Noibu's guide gives console.noibu.com as the domain to allow.
How do you get replay working on a dynamic storefront?
Five checks to get session replay working on dynamic pages
- CHECK 1
Check script placement
Install the recording script in the site head so it loads early and outside component sandboxes.
- CHECK 2
Test a known session
Browse a few pages yourself, then find and play back that exact session.
- CHECK 3
Open the viewer console
Look for blocked requests, 403 and 404 errors and CORS errors during playback.
- CHECK 4
Allow the replay service
Allowlist the replay domains in your CDN, bot protection and image hosts.
- CHECK 5
Set CORS headers
Allow the replay viewer domain to load fonts, styles and images.
Start with a session you created yourself, so you know what the page should show. If the replay is blank from the first frame, the problem is usually capture: script placement, a sandbox or shadow DOM. If the structure is there but unstyled, the problem is usually asset access or CORS. If only certain widgets are blank, they are probably iframes or canvas elements, and the practical answer is to rely on click and error data for those parts.
Privacy settings can also make replays look emptier than expected, because masked text and inputs are hidden by design. What session replay should mask and leave visible explains the trade-off, and why analytics tools and session replay never agree on sessions covers a related source of confusion.
Why does working replay matter for conversion work?
Replay is how a team sees what shoppers actually experienced: the size picker that did not respond, the promo banner that covered the add-to-cart button, the B2B price that loaded only after a long wait. Without it, conversion analysis falls back on aggregate numbers that show where shoppers leave but not why. How to get AI to analyze session replays shows how teams review replays at scale once capture works, and why recording every session matters explains why sampling hides rare but costly problems.
How does Noibu's CRO agent use replay and behavior data?
Noibu's CRO agent finds underperforming product pages and rewrites them to convert better, using heatmap, click and scroll context gathered from the store's own sessions. Its input is that behavior data, together with session replays, on the pages where shoppers drop off; its output is a ranked list of pages and a proposed change for each, which a person on the team reviews and edits before anything is published. Noibu's platform supports Salesforce Commerce Cloud among other platforms, and when replays come back blank or unstyled, the session replay troubleshooting guide above covers the asset and CORS settings to check.
The CRO agent works alongside Noibu's Bug Resolution, Performance, ADA, A/B Testing and ROAS agents, in the Noibu console and in Claude, ChatGPT and other AI tools through Noibu MCP. Noibu's CRO agent explains the workflow, and the free website audit shows what the agents find on your own store.
Noibu is AI for ecommerce operations, the always-on optimization system that keeps online stores running at their best. A team of supervised AI agents finds what's broken, slow, or leaking revenue, does the work, and hands results back for human approval. Trusted by retailers like Free People, Guess, Liquid I.V., and Ariat.
Frequently asked questions
Why are my session recordings blank?
The recording script either could not see the content, because it sat in an iframe, a sandbox or shadow DOM, or the replay viewer could not load the page's styles, fonts and images later because of access rules, missing files or CORS.
Why do session replays look unstyled or broken?
Replay viewers usually re-fetch stylesheets, fonts and images when playing a session. If those assets are behind a login, restricted by IP or referrer, removed since the visit or blocked by CORS, the page plays back without styling.
Does session replay work on Salesforce Commerce built with Lightning Web Components?
It can, but placement matters. Salesforce documents that Lightning Web Security blocks third-party analytics scripts from reaching code in its sandboxes, and points Experience Cloud sites to adding scripts in the site head markup.
Can session replay record content inside iframes?
Many tools cannot record iframe content for security reasons, so embedded chat, maps, third-party forms and some payment fields appear as empty boxes in playback.
What should I check first when replays are blank?
Check where the recording script is installed, whether the replay tool can reach your stylesheets, fonts and images, and whether those assets send CORS headers that allow the replay viewer's domain.
